|
|
||||||||||
| 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
public abstract class AbstractClassServerDelegate
Abstract implementation of the client end of the JPPF distributed class loader.
| Field Summary | |
|---|---|
protected String |
appUuid
Unique identifier for this class server delegate, obtained from the local JPPF client. |
protected boolean |
closed
Indicates whether this socket handler is closed, which means it can't handle requests anymore. |
protected boolean |
handshakeDone
Determines if the handshake with the server has been performed. |
protected ResourceProvider |
resourceProvider
Reads resource files from the classpath. |
protected boolean |
stop
Indicates whether this socket handler should be terminated and stop processing. |
| Fields inherited from class org.jppf.client.AbstractClientConnectionHandler |
|---|
host, listeners, name, owner, port, socketClient, socketInitializer, status |
| Constructor Summary | |
|---|---|
protected |
AbstractClassServerDelegate(JPPFClientConnection owner)
Default instantiation of this class is not permitted. |
| Method Summary | |
|---|---|
String |
getName()
Get the name of this delegate. |
protected void |
handshake()
Perform the handshake with the server. |
void |
initSocketClient()
Initialize this delegate's resources. |
boolean |
isClosed()
Determine whether the socket connection is closed |
protected JPPFResourceWrapper |
readResource()
Read a resource wrapper object from the socket connection. |
void |
setName(String name)
Set the name of this delegate. |
protected void |
writeResource(JPPFResourceWrapper resource)
Write a resource wrapper object to the socket connection. |
| Methods inherited from class org.jppf.client.AbstractClientConnectionHandler |
|---|
addClientConnectionStatusListener, createSocketInitializer, 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.ClassServerDelegate |
|---|
close |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Methods inherited from interface org.jppf.client.ClientConnectionHandler |
|---|
getSocketClient, init |
| Methods inherited from interface org.jppf.client.event.ClientConnectionStatusHandler |
|---|
addClientConnectionStatusListener, getStatus, removeClientConnectionStatusListener, setStatus |
| Field Detail |
|---|
protected boolean stop
protected boolean closed
protected ResourceProvider resourceProvider
protected String appUuid
protected boolean handshakeDone
| Constructor Detail |
|---|
protected AbstractClassServerDelegate(JPPFClientConnection owner)
owner - the client connection which owns this connection delegate.| Method Detail |
|---|
public boolean isClosed()
isClosed in interface ClassServerDelegateClassServerDelegate.isClosed()public String getName()
getName in interface ClassServerDelegateClassServerDelegate.getName()public void setName(String name)
setName in interface ClassServerDelegatename - the name as a string.ClassServerDelegate.setName(java.lang.String)
public void initSocketClient()
throws Exception
initSocketClient in interface ClientConnectionHandlerException - if an error is raised during initialization.ClientConnectionHandler.initSocketClient()
protected JPPFResourceWrapper readResource()
throws Exception
JPPFResourceWrapper instance.
Exception - if any error is raised.
protected void writeResource(JPPFResourceWrapper resource)
throws Exception
resource - a JPPFResourceWrapper instance.
Exception - if any error is raised.
protected void handshake()
throws Exception
Exception - if any error occurs.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||