许多JNI方法都通过返回值来指示调用成功与否。
Many JNI methods have a return value that indicates whether the call succeeded or not.
函数调用成功时返回零,失败时返回非零的错误代码。
This call either returns zero on success or a non-zero error code on failure.
调用成功时返回值0,否则返回一错误代码。
如果调用成功,您应该看到带有这个意思的信息,如图9所示。
If the invocation is successful, you should see a message to that effect, as shown in Figure 9.
如果服务器一切正常(创建了 201 条消息),则调用成功。
The call succeeds if all is OK with the server, which responds with 201 Created.
如果调用成功(返回HTTP 200),则会调用update函数。
If the call is successful (returning an HTTP 200), the update function is called. Listing 15 USES Prototype for the Ajax call.
调用成功将返回文件描述符,它是进程尚未打开的序号最小的文件描述符。
The file descriptor returned by a successful call will be the lowest-numbered file descriptor not currently open for the process.
前两个服务调用成功,但是当第三个服务返回故障时,这个事务就被回滚。
The first two service invocations were successful, but when the third returned a fault, the transaction was rolled back.
同样,如果调用成功,上海当前的天气信息将以中文显示,如图26所示。
In the same way, if the invocation is successful, the current weather in Shanghai will be displayed in Chinese, as shown in Figure 26.
如果函数调用成功,返回值指定导致函数返回的事件。下表为可能的返回值。
If the function succeeds, the return value indicates the event that caused the function to return. The following table shows possible values.
与未检测异常相似,这也存在一个缺陷,即代码未检测返回值却假定调用成功而继续运行。
A common pitfall, similar to not checking for exceptions, is to fail to check the return value and for the code to proceed on the assumption that the call was successful.
如果Ajax调用成功应该如何动作(启用和选择第一个选项卡,由索引0标识)
What to do when the Ajax call succeeds (enable and select the first tab, identified by its index of 0)
然后您发出请求,不出意外,这个记录ID将返回,这是Web服务方法调用成功执行的标志。
You then make the request, and look for the record id to be returned to you as a sign of a successful result of the Web service method call.
在此报告中,您会看到多少用户完成了,测试执行了多久,执行了多少调用,以及多少调用成功了。
In this report, you see how many users completed, how long the test took to execute, how many calls were executed, and how many calls were successful.
如果调用成功,返回下一个未使用的文件描述符;否则,返回 -1 并相应地设置errno。
The next unused file descriptor is returned if the call is successful; otherwise, -1 is returned and errno is set accordingly.
这个报告默认情况下显示了Web服务调用成功的的百分比,以及您的测试套件中验证点的通过率。
This report, by default, shows the percentage of Web service calls that were successful, and the pass percentage for each type of verification point you have in your suite.
为了使调用成功,Web服务必须在使用者调用端点时可用,而且必须在使用者超时之前进行响应。
For the invocation to succeed, the Web service must be operational when the consumer invokes the endpoint and must respond before the consumer times out.
如果调用成功,该Web服务将返回一个0,并且您将在web页面的Result框架中看到调用结果。
If the invocation is successful, the Web service will return a 0, and you will see the result of the invocation in the result frame of the Web page.
只有在两条 SQL语句都能够成功更新表的情况下,事务才会得到成功调用。
This transaction can only be called successful if both SQL statements were able to update the table successfully.
一次成功的创建调用将返回新配置对象的ID。
A successful creation call returns the ID of a new configuration object.
要使操作成功完成,调用栈中的每个类必须有必需的许可权。
Each class in the calling stack must have the required permissions for the operations to complete successfully.
成功完成这些调用之后,用户空间会话就有了一个新密钥。
Upon successful completion of these calls, the user-space session has a new key.
通常,通过查找超类并确保存在匹配的超级构造函数,类型检查器确保这些超级构造函数调用会成功。
Normally, the type checker ensures that these super-constructor calls will succeed by looking up the superclass and making sure that a matching super-constructor exists.
在一个函数中进行调用之后,如果成功的话,这个调用处理库中找到的该函数的第一个副本。
This call, should it succeed, yields the address of the first copy of the function found in a library after the one in which the call occurs.
尽管如此,使用定制化错误消息体仍然要求服务消费者做额外的客户端处理程序来解析响应消息从而判断调用是否成功。
However use of custom error payloads require the service consumer do additional client side handling to parse response messages to determine if the invocation could be determined to be successful.
成功调用后,会将属性直接输出到控制台视图中的系统日志(图6)。
A successful invocation simply outputs the attributes to the system log in the Console view (Figure 6).
理想情况下,服务调用总能成功完成并返回需要的结果。
In the ideal world service invocation always completes successfully and returns required results.
验证JSP是否成功调用了业务流程。
Verify that the JSP actually did call the business process successfully.
在调用这个URL时,如果成功,就会隐式地返回状态码200。
When this URL is invoked, it implicitly returns a 200 status code when it succeeds.
成功调用后,将显示以下结果页。
After successful invocation, the following result page is displayed.
应用推荐