org.apache.xmlrpc.common
Interface XmlRpcWorker

All Known Implementing Classes:
XmlRpcClientWorker, XmlRpcServerWorker

public interface XmlRpcWorker

An object, which executes requests on the controllers behalf. These objects are mainly used for controlling the clients or servers load, which is defined in terms of the number of currently active workers.


Method Summary
 java.lang.Object execute(XmlRpcRequest pRequest)
          Performs a synchronous request.
 XmlRpcController getController()
          Returns the workers controller.
 

Method Detail

getController

XmlRpcController getController()
Returns the workers controller.

Returns:
The controller, an instance of XmlRpcClient, or XmlRpcServer.

execute

java.lang.Object execute(XmlRpcRequest pRequest)
                         throws XmlRpcException
Performs a synchronous request. The client worker extends this interface with the ability to perform asynchronous requests.

Parameters:
pRequest - The request being performed.
Returns:
The requests result.
Throws:
XmlRpcException - Performing the request failed.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.