|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ThreadSynchronization
org.jppf.server.nio.AbstractChannelWrapper<T>
org.jppf.server.nio.AbstractLocalChannelWrapper<S,T>
S - The type of message handled by this channel wrapper.T - The type of context used by the channel on the server side of the communication.public class AbstractLocalChannelWrapper<S,T extends AbstractNioContext>
Channel wrapper and I/O implementation for the class loader of an in-VM node.
| Field Summary | |
|---|---|
protected AtomicInteger |
keyOps
This channel's key ops. |
protected SimpleObjectLock |
nodeLock
Object used to synchronize threads when reading/writing the node message. |
protected S |
nodeResource
The resource passed to the node. |
protected AtomicInteger |
readyOps
This channel's ready ops. |
protected SimpleObjectLock |
serverLock
Object used to synchronize threads when reading/writing the server message. |
protected S |
serverResource
The resource passed to the server. |
| Fields inherited from class org.jppf.server.nio.AbstractChannelWrapper |
|---|
channel, id, selector |
| Fields inherited from class org.jppf.utils.ThreadSynchronization |
|---|
stopped |
| Constructor Summary | |
|---|---|
AbstractLocalChannelWrapper(T context)
Initialize this I/O handler with the specified context. |
|
| Method Summary | |
|---|---|
NioContext |
getContext()
Get the AbstractNioContext attached to the channel. |
int |
getKeyOps()
Get the operations enabled for this channel. |
SimpleObjectLock |
getNodeLock()
Get the object used to synchronize threads when reading/writing the node resource. |
S |
getNodeResource()
Get the resource passed to the node. |
int |
getReadyOps()
Get the operations available for this channel. |
SimpleObjectLock |
getServerLock()
Get the object used to synchronize threads when reading/writing the server resource. |
S |
getServerResource()
Get the resource passed to the server. |
void |
setKeyOps(int keyOps)
Get the operations enabled for this channel. |
void |
setNodeResource(S resource)
Set the resource passed to the node. |
void |
setReadyOps(int readyOps)
Set the operations for which this channel is ready. |
void |
setServerResource(S serverResource)
Set the resource passed to the server. |
| Methods inherited from class org.jppf.server.nio.AbstractChannelWrapper |
|---|
close, equals, getChannel, getId, getSelector, hashCode, isAcceptable, isConnectable, isOpen, isReadable, isWritable, setSelector, toString |
| Methods inherited from class org.jppf.utils.ThreadSynchronization |
|---|
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AtomicInteger keyOps
protected AtomicInteger readyOps
protected S nodeResource
protected S serverResource
protected final SimpleObjectLock nodeLock
protected final SimpleObjectLock serverLock
| Constructor Detail |
|---|
public AbstractLocalChannelWrapper(T context)
context - the context used as communication channel.| Method Detail |
|---|
public NioContext getContext()
AbstractNioContext attached to the channel.
getContext in interface ChannelWrapper<T extends AbstractNioContext>getContext in class AbstractChannelWrapper<T extends AbstractNioContext>AbstractNioContext instance.public int getKeyOps()
getKeyOps in interface ChannelWrapper<T extends AbstractNioContext>getKeyOps in class AbstractChannelWrapper<T extends AbstractNioContext>ChannelWrapper.getKeyOps()public void setKeyOps(int keyOps)
setKeyOps in interface ChannelWrapper<T extends AbstractNioContext>setKeyOps in class AbstractChannelWrapper<T extends AbstractNioContext>keyOps - the operations as an int value.ChannelWrapper.setKeyOps(int)public int getReadyOps()
getReadyOps in interface ChannelWrapper<T extends AbstractNioContext>getReadyOps in class AbstractChannelWrapper<T extends AbstractNioContext>public void setReadyOps(int readyOps)
readyOps - the bitwise operations as an int value.public S getNodeResource()
public void setNodeResource(S resource)
resource - an instance of the resource type used by this channel.public S getServerResource()
public void setServerResource(S serverResource)
serverResource - an instance of the resource type used by this channel.public SimpleObjectLock getNodeLock()
SimpleObjectLock instance.public SimpleObjectLock getServerLock()
SimpleObjectLock instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||