|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.client.AbstractJPPFClientConnection
org.jppf.jca.work.JPPFJcaClientConnection
public class JPPFJcaClientConnection
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.
| Field Summary |
|---|
| Fields inherited from class org.jppf.client.AbstractJPPFClientConnection |
|---|
appUuid, classServerPort, client, connectionUuid, credentials, delegate, host, isShutdown, job, listeners, name, port, priority, status, statusLock, taskServerConnection, totalTaskCount |
| Constructor Summary | |
|---|---|
JPPFJcaClientConnection(String uuid,
String name,
JPPFConnectionInformation info,
JPPFJcaClient client)
Initialize this client with a specified application UUID. |
|
| Method Summary | |
|---|---|
List<JPPFJob> |
close()
Shutdown this client and retrieve all pending executions for resubmission. |
protected SocketInitializer |
createSocketInitializer()
Create a socket initializer. |
JPPFJcaClient |
getClient()
Get the JPPF client that manages connections to the JPPF drivers. |
String |
getName()
Get the name assigned tothis client connection. |
protected String |
getSerializationHelperClassName()
Get the name of the serialization helper implementation class name to use. |
void |
init()
Initialize this client connection. |
void |
sendTasks(ClassLoader cl,
JPPFTaskBundle header,
JPPFJob job)
Send tasks to the server for execution. |
void |
sendTasks(JPPFTaskBundle header,
JPPFJob job)
Send tasks to the server for execution. |
void |
submit(JPPFJob job)
Submit a JPPFJob for execution. |
String |
toString()
Get a string representation of this client connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFJcaClientConnection(String uuid,
String name,
JPPFConnectionInformation info,
JPPFJcaClient client)
uuid - the unique identifier for this local client.name - configuration name for this local client.info - the connection properties for this connection.client - the JPPF client that owns this connection.| Method Detail |
|---|
public void init()
AbstractJPPFClientConnection
init in interface JPPFClientConnectioninit in class AbstractJPPFClientConnectionJPPFClientConnection.init()
public void sendTasks(ClassLoader cl,
JPPFTaskBundle header,
JPPFJob job)
throws Exception
cl - classloader used for serialization.header - the task bundle to send to the driver.job - the job to execute remotely.
Exception - if an error occurs while sending the request.
public void sendTasks(JPPFTaskBundle header,
JPPFJob job)
throws Exception
sendTasks in class AbstractJPPFClientConnectionheader - the task bundle to send to the driver.job - the job to execute remotely.
Exception - if an error occurs while sending the request.
public void submit(JPPFJob job)
throws Exception
job - the job to execute.
Exception - if an error occurs while sending the job for execution.JPPFClientConnection.submit(org.jppf.client.JPPFJob)protected String getSerializationHelperClassName()
getSerializationHelperClassName in class AbstractJPPFClientConnectionSerializationHelper implementation.AbstractJPPFClientConnection.getSerializationHelperClassName()public List<JPPFJob> close()
close in interface JPPFClientConnectionclose in class AbstractJPPFClientConnectionJPPFJob instances to resubmit.JPPFClientConnection.close()public String getName()
getName in interface JPPFClientConnectiongetName in class AbstractJPPFClientConnectionJPPFClientConnection.getName()public String toString()
toString in class AbstractJPPFClientConnectionObject.toString()protected SocketInitializer createSocketInitializer()
createSocketInitializer in class AbstractJPPFClientConnectionSocketInitializerImpl.AbstractJPPFClientConnection.createSocketInitializer()public JPPFJcaClient getClient()
getClient in class AbstractJPPFClientConnectionJPPFJcaClient instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||