|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.client.AbstractJPPFClientConnection
org.jppf.client.JPPFClientConnectionImpl
public class JPPFClientConnectionImpl
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 | |
|---|---|
JPPFClientConnectionImpl(JPPFClient client,
String uuid,
String name,
JPPFConnectionInformation info)
Initialize this client with a specified application UUID. |
|
| Method Summary | |
|---|---|
List<JPPFJob> |
close()
Shutdown this client and retrieve all pending executions for resubmission. |
void |
connect()
Connect to the driver. |
protected SocketInitializer |
createSocketInitializer()
Create a socket initializer. |
JMXDriverConnectionWrapper |
getJmxConnection()
Get the object that provides access to the management functions of the driver. |
ReentrantLock |
getLock()
Get the lock used to synchronize request submissions performed by mutliple threads. |
void |
init()
Initialize this client connection. |
void |
initializeJmxConnection()
Initialize the jmx connection using the specifed jmx server id. |
void |
submit(JPPFJob job)
Deprecated. job submissions should be performed via the JPPFClient directly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFClientConnectionImpl(JPPFClient client,
String uuid,
String name,
JPPFConnectionInformation info)
client - the JPPF client that owns this connection.uuid - the unique identifier for this local client.name - configuration name for this local client.info - the connection properties for this connection.| Method Detail |
|---|
public void init()
init in interface JPPFClientConnectioninit in class AbstractJPPFClientConnectionJPPFClientConnection.init()public void connect()
public void initializeJmxConnection()
public void submit(JPPFJob job)
throws Exception
JPPFClient directly.
job - the job to execute remotely.
Exception - if an error occurs while sending the request.JPPFClientConnection.submit(org.jppf.client.JPPFJob)public List<JPPFJob> close()
close in interface JPPFClientConnectionclose in class AbstractJPPFClientConnectionJPPFJob instances to resubmit.JPPFClientConnection.close()protected SocketInitializer createSocketInitializer()
createSocketInitializer in class AbstractJPPFClientConnectionSocketInitializerImpl.AbstractJPPFClientConnection.createSocketInitializer()public ReentrantLock getLock()
ReentrantLock instance.public JMXDriverConnectionWrapper getJmxConnection()
JMXConnectionWrapper instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||