org.apache.xmlrpc.common

Interface XmlRpcWorker

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
Objectexecute(XmlRpcRequest pRequest)
Performs a synchronous request.
XmlRpcControllergetController()
Returns the workers controller.

Method Detail

execute

public Object execute(XmlRpcRequest pRequest)
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.

getController

public XmlRpcController getController()
Returns the workers controller.

Returns: The controller, an instance of {@link org.apache.xmlrpc.client.XmlRpcClient}, or {@link org.apache.xmlrpc.server.XmlRpcServer}.

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.