Package org.jppf.node
Class AbstractNodeConnection<C>
java.lang.Object
org.jppf.node.AbstractNodeConnection<C>
- Type Parameters:
C- the type of communication channel used by this connection.
- All Implemented Interfaces:
NodeConnection<C>
- Direct Known Subclasses:
AbstractClassLoaderConnection
Abstract impelementation of
ClassLoaderConnection.- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CThe channel used to communicate witht he driver.protected final AtomicBooleanDetermines whether this connection is initializing.protected final ReentrantLockUsed to synchronize access to the communication channel from multiple threads. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the communication channel for this connection.voidreset()Reset this connection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.node.NodeConnection
close, init
-
Field Details
-
channel
The channel used to communicate witht he driver. -
lock
Used to synchronize access to the communication channel from multiple threads. -
initializing
Determines whether this connection is initializing.
-
-
Constructor Details
-
AbstractNodeConnection
public AbstractNodeConnection()
-
-
Method Details
-
getChannel
Description copied from interface:NodeConnectionGet the communication channel for this connection.- Specified by:
getChannelin interfaceNodeConnection<C>- Returns:
- an object representing the channel.
-
reset
Description copied from interface:NodeConnectionReset this connection.- Specified by:
resetin interfaceNodeConnection<C>- Throws:
Exception- if any error occurs.
-