|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.client.AbstractClientConnectionHandler
org.jppf.client.AbstractClassServerDelegate
org.jppf.jca.work.JcaClassServerDelegate
public class JcaClassServerDelegate
Wrapper around an incoming socket connection, whose role is to receive the names of classes to load from the classpath, then send the class files' contents (or bytecode) to the remote client.
Instances of this class are part of the JPPF dynamic class loading mechanism. They enable remote nodes to dynamically load classes from the JVM that run's the class server.
| Field Summary |
|---|
| Fields inherited from class org.jppf.client.AbstractClassServerDelegate |
|---|
appUuid, closed, handshakeDone, resourceProvider, stop |
| Fields inherited from class org.jppf.client.AbstractClientConnectionHandler |
|---|
host, listeners, name, owner, port, socketClient, socketInitializer, status |
| Constructor Summary | |
|---|---|
JcaClassServerDelegate(String name,
String uuid,
String host,
int port,
JPPFJcaClient client,
JPPFJcaClientConnection owner)
Initialize class server delegate with a spceified application uuid. |
|
| Method Summary | |
|---|---|
void |
close()
Close the socket connection. |
protected SocketInitializer |
createSocketInitializer()
Create a socket initializer for this delegate. |
void |
init()
Initialize this delegate's resources. |
void |
performConnection()
Establish a connection and perform the inital shakedown with the JPPF driver. |
void |
release()
This method does nothing. |
void |
run()
Main processing loop of this delegate. |
| Methods inherited from class org.jppf.client.AbstractClassServerDelegate |
|---|
getName, handshake, initSocketClient, isClosed, readResource, setName, writeResource |
| Methods inherited from class org.jppf.client.AbstractClientConnectionHandler |
|---|
addClientConnectionStatusListener, fireStatusChanged, getSocketClient, getStatus, removeClientConnectionStatusListener, setStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.client.ClientConnectionHandler |
|---|
getSocketClient |
| Methods inherited from interface org.jppf.client.event.ClientConnectionStatusHandler |
|---|
addClientConnectionStatusListener, getStatus, removeClientConnectionStatusListener, setStatus |
| Constructor Detail |
|---|
public JcaClassServerDelegate(String name,
String uuid,
String host,
int port,
JPPFJcaClient client,
JPPFJcaClientConnection owner)
throws Exception
name - the name given to this this delegate.uuid - the unique identifier for the local JPPF client.host - the name or IP address of the host the class server is running on.port - the TCP port the class server is listening to.client - the JPPF client that owns this class server delegate.owner - the connection that owns this class server delegate.
Exception - if the connection could not be opended.| Method Detail |
|---|
public final void init()
throws Exception
init in interface ClientConnectionHandlerException - if an error is raised during initialization.ClientConnectionHandler.init()public void run()
run in interface RunnableRunnable.run()
public void performConnection()
throws Exception
Exception - if the conenction could not be established.public void close()
close in interface ClassServerDelegateclose in interface ClientConnectionHandlerClassServerDelegate.close()protected SocketInitializer createSocketInitializer()
createSocketInitializer in class AbstractClientConnectionHandlerSocketInitializer instance.public void release()
release in interface WorkWork.release()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||