|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.client.AbstractJPPFClient
org.jppf.client.AbstractGenericClient
org.jppf.jca.work.JPPFJcaClient
public class JPPFJcaClient
This class provides an API to submit execution requests and administration commands,
and request server information data.
It has its own unique identifier, used by the nodes, to determine whether classes from
the submitting application should be dynamically reloaded or not, depending on whether
the uuid has changed or not.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jppf.client.AbstractGenericClient |
|---|
AbstractGenericClient.ConnectionInitializer |
| Field Summary |
|---|
| Fields inherited from class org.jppf.client.AbstractGenericClient |
|---|
availableConnections, config, executor, loadBalancer, receiverThread |
| Fields inherited from class org.jppf.client.AbstractJPPFClient |
|---|
allConnections, credentials, listeners, pools, totalTaskCount, uuid |
| Constructor Summary | |
|---|---|
JPPFJcaClient(String uuid,
String configuration)
Initialize this client with a specified application UUID. |
|
| Method Summary | |
|---|---|
void |
close()
Close this client and release all the resources it is using. |
protected AbstractJPPFClientConnection |
createConnection(String uuid,
String name,
JPPFConnectionInformation info)
Create a new driver connection based on the specified parameters. |
JPPFSubmissionManager |
getSubmissionManager()
Get the submission manager for thsi JPPF client. |
protected void |
initConfig(Object configuration)
Initialize this client's configuration. |
void |
setSubmissionManager(JPPFSubmissionManager submissionManager)
Set the submission manager for thsi JPPF client. |
void |
statusChanged(ClientConnectionStatusEvent event)
Invoked when the status of a client connection has changed. |
List<JPPFTask> |
submit(JPPFJob job)
Submit a JPPFJob for execution. |
| Methods inherited from class org.jppf.client.AbstractGenericClient |
|---|
addRequestClassLoader, getAvailableConnections, getConfig, getExecutor, getLoadBalancer, getRequestClassLoader, handleAvailableConnection, handleAvailableConnection2, hasAvailableConnection, initPools, isLocalExecutionEnabled, newConnection, removeRequestClassLoader, setLocalExecutionEnabled |
| Methods inherited from class org.jppf.client.AbstractJPPFClient |
|---|
addClientListener, connectionFailed, getAllConnectionNames, getAllConnections, getClientConnection, getClientConnection, getClientConnection, getClientConnection, getUuid, initCredentials, removeClientListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFJcaClient(String uuid,
String configuration)
uuid - the unique identifier for this local client.configuration - the object holding the JPPF configuration.| Method Detail |
|---|
public List<JPPFTask> submit(JPPFJob job)
throws Exception
submit in class AbstractJPPFClientjob - the job to execute.
JPPFTask instances for a blocking job, or null if the job is non-blocking.
Exception - if an error occurs while sending the job for execution.AbstractJPPFClient.submit(org.jppf.client.JPPFJob)public void close()
close in class AbstractGenericClientpublic void statusChanged(ClientConnectionStatusEvent event)
statusChanged in interface ClientConnectionStatusListenerstatusChanged in class AbstractGenericClientevent - the event to notify of.ClientConnectionStatusListener.statusChanged(org.jppf.client.event.ClientConnectionStatusEvent)public JPPFSubmissionManager getSubmissionManager()
JPPFSubmissionManager instance.public void setSubmissionManager(JPPFSubmissionManager submissionManager)
submissionManager - a JPPFSubmissionManager instance.
protected AbstractJPPFClientConnection createConnection(String uuid,
String name,
JPPFConnectionInformation info)
createConnection in class AbstractGenericClientuuid - the uuid of the JPPF client.name - the name of the connection.info - the driver connection information.
AbstractJPPFClientConnection.protected void initConfig(Object configuration)
initConfig in class AbstractGenericClientconfiguration - an object holding the JPPF configuration.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||