Package org.jppf.classloader
Class AsyncLocalClassLoaderConnection
java.lang.Object
org.jppf.node.AbstractNodeConnection<C>
org.jppf.classloader.AbstractClassLoaderConnection<AsyncLocalNodeClassloaderContext>
org.jppf.classloader.AsyncLocalClassLoaderConnection
- All Implemented Interfaces:
ClassLoaderConnection<AsyncLocalNodeClassloaderContext>,NodeConnection<AsyncLocalNodeClassloaderContext>
public class AsyncLocalClassLoaderConnection
extends AbstractClassLoaderConnection<AsyncLocalNodeClassloaderContext>
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jppf.utils.concurrent.ThreadSynchronizationObject used to synchronize threads when reading/writing the node message.protected final org.jppf.utils.concurrent.ThreadSynchronizationObject used to synchronize threads when reading/writing the server message.Fields inherited from class org.jppf.classloader.AbstractClassLoaderConnection
requestHandler, uuidFields inherited from class org.jppf.node.AbstractNodeConnection
channel, initializing, lock -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this connection with the specified channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this connection.org.jppf.utils.concurrent.ThreadSynchronizationGet the object used to synchronize threads when reading/writing the node resource.org.jppf.utils.concurrent.ThreadSynchronizationGet the object used to synchronize threads when reading/writing the server resource.voidinit()Initialize this connection.toString()Methods inherited from class org.jppf.classloader.AbstractClassLoaderConnection
getRequestHandler, loadResource, performCommonHandshake, reset, sendCloseChannelCommandMethods inherited from class org.jppf.node.AbstractNodeConnection
getChannelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.node.NodeConnection
getChannel
-
Field Details
-
nodeLock
protected final org.jppf.utils.concurrent.ThreadSynchronization nodeLockObject used to synchronize threads when reading/writing the node message. -
serverLock
protected final org.jppf.utils.concurrent.ThreadSynchronization serverLockObject used to synchronize threads when reading/writing the server message.
-
-
Constructor Details
-
AsyncLocalClassLoaderConnection
Initialize this connection with the specified channel.- Parameters:
uuid- this node's uuid.channel- the communication channel with the driver.
-
-
Method Details
-
init
Description copied from interface:NodeConnectionInitialize this connection.- Throws:
Exception- if any error occurs.
-
close
public void close()Description copied from interface:NodeConnectionClose this connection. -
getNodeLock
public org.jppf.utils.concurrent.ThreadSynchronization getNodeLock()Get the object used to synchronize threads when reading/writing the node resource.- Returns:
- a
ThreadSynchronizationinstance.
-
getServerLock
public org.jppf.utils.concurrent.ThreadSynchronization getServerLock()Get the object used to synchronize threads when reading/writing the server resource.- Returns:
- a
ThreadSynchronizationinstance.
-
toString
- Overrides:
toStringin classAbstractClassLoaderConnection<AsyncLocalNodeClassloaderContext>
-