Public Member Functions | Protected Member Functions | Private Attributes
org.apache.xmlrpc.common.XmlRpcWorkerFactory Class Reference
Inheritance diagram for org.apache.xmlrpc.common.XmlRpcWorkerFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

XmlRpcController getController ()
synchronized int getCurrentRequests ()
synchronized XmlRpcWorker getWorker () throws XmlRpcLoadException
synchronized void releaseWorker (XmlRpcWorker pWorker)
 XmlRpcWorkerFactory (XmlRpcController pController)

Protected Member Functions

abstract XmlRpcWorker newWorker ()

Private Attributes

final XmlRpcController controller
int numThreads
final List pool = new ArrayList()
final XmlRpcWorker singleton = newWorker()

Detailed Description

A factory for XmlRpcWorker instances.

Definition at line 27 of file XmlRpcWorkerFactory.java.


Constructor & Destructor Documentation

Creates a new instance.

Parameters:
pControllerThe client controlling the factory.

Definition at line 36 of file XmlRpcWorkerFactory.java.


Member Function Documentation

Returns the factory controller.

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

Definition at line 50 of file XmlRpcWorkerFactory.java.

Returns the number of currently running requests.

Returns:
Current number of concurrent requests.

Definition at line 95 of file XmlRpcWorkerFactory.java.

Returns a worker for synchronous processing.

Returns:
An instance of XmlRpcWorker, which is ready for use.
Exceptions:
XmlRpcLoadExceptionThe clients maximum number of concurrent threads is exceeded.

Definition at line 60 of file XmlRpcWorkerFactory.java.

Creates a new worker instance.

Returns:
New instance of XmlRpcWorker.

Implemented in org.apache.xmlrpc.client.XmlRpcClientWorkerFactory, and org.apache.xmlrpc.server.XmlRpcServerWorkerFactory.

Called, when the worker did its job. Frees resources and decrements the number of concurrent requests.

Parameters:
pWorkerThe worker being released.

Definition at line 80 of file XmlRpcWorkerFactory.java.


Member Data Documentation

Definition at line 29 of file XmlRpcWorkerFactory.java.

Definition at line 31 of file XmlRpcWorkerFactory.java.

final List org.apache.xmlrpc.common.XmlRpcWorkerFactory.pool = new ArrayList() [private]

Definition at line 30 of file XmlRpcWorkerFactory.java.

Definition at line 28 of file XmlRpcWorkerFactory.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50