客户机代理代码的使用非常简单。
最好是代理代码中已经设置了断点。
It is a good idea to already have your break point set in the agent code.
接下来让我们看看服务器端代理代码。
代理代码很简单。
代理方法在每个分区上运行(在reduce代理代码中)。
Agent methods are run on each partition (in reduce agent code).
注意:此处的代理代码片段仅展示了ToggleStatus活动。
Note: the agent code fragment here only shows the ToggleStatus action.
再次对客户机执行聚合(也是在reduce代理代码中)。
Aggregation is performed back on the client again (also in reduce agent code).
请参见清单9,了解将在每个分区上运行的reduce代理代码(图3)。
See Listing 9 for the reduce agent code you are going to run on each partition (Figure 3). The logic is very intuitive.
表示一个类,该类可从数据结构的XML表示形式生成代理代码。
Represents a class that can generate proxy code from an XML representation of a data structure.
这些代码代表了需要用来访问部署在适配器内的任意web服务的代理代码。
This code represents the proxy code needed to access any Web service deployed within the adapter.
这种代理代码非常灵活,因为如果应用得当,它可以从HTTP头确定实际的目的地。
This proxy code is very flexible because, if used correctly, it can determine the actual destination from the HTTP headers.
现在您已经生成了桥的代理代码,就可以用eclipse中标准的build菜单创建桥了。
Now that you've generated the bridge proxy code, you can build the bridge with the standard build menu in Eclipse.
c是与afsfuse_server代码进行链接的服务器存根代码(代理代码)。
Afsfuse.ss.c is the server stub code (proxy code) to be linked with your afsfuse_server code.
通过此句柄,您可以获取AgentManager,它提供了请求网格执行您的代理代码的方法。
From this, you can get an AgentManager, which provides the methods for asking the grid to execute your agent code.
您也许会发现,检查代理代码以确定它如何完成其数据库访问任务会很有用,不过这超出了本文的范围。
You may find it useful to look at the agent code to see how it does its database access task, but that goes beyond the scope of this article.
从Stubby文档的samplecode附签上,复制所生成的示例代理代码,然后粘贴到代理中。
From the sample code TAB on the Stubby document, copy the example agent code that was generated and paste it into the agent.
在创建类之后,就可以输入剩余的代理代码,从而使其看起来与DominoDesigner示例中的代理一样。
After you create the class, you can enter the rest of the agent code so that it looks like the agent from the Domino Designer example.
是否想要生成Web服务的客户端代理代码,如果您将编写一个客户端应用程序来使用Web服务,那么它会是很有用的。
Whether you want to generate client proxy code for the Web service, which is useful if you are going to write a client application to use your Web service.
在本系列接下来的文章中,我们将考察会影响应用程序性能的代理和代码。
In the next article in this series, we look at agents and code that can influence application performance.
我们研究每个代理的代码片段,解释每个片段所做的工作。
We examine code snippets for each agent, explaining what each snippet is doing.
将之前复制的代码粘贴到这个新代理中。
使用代理不需要对代码进行修改。
我们将在本文后面部分讲述此代理的代码。
第三和第四行运行简单代理,就像前面的代码示例中做的那样。
The third and fourth lines run the simple proxy as I did in the previous code example.
若要部署两个代理,则需要修改模式和代码。
To deploy two agents the schema and code require modification.
代理的字节代码一变更,旧的用户签名就变成无效的了。
As soon as the byte codes of the agent change, the old user signature becomes invalid.
示例代码实现一个单独的代理。
您需要为代理提供代码,作为您愿意异步执行的业务逻辑。
You provide the code for the agent, which is business logic that you would like executed asynchronously.
代理:实际执行在原处计算的代码。
Agents: the code that actually performs the in situ computation.
该代理的代码如下所示。
应用推荐