|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.nio.AbstractNioContext<S>
S - the type of states associated with this context.public abstract class AbstractNioContext<S extends Enum<S>>
Context associated with an open communication channel.
| Field Summary | |
|---|---|
protected String |
connectionUuid
Unique ID for the corresponding connection on the remote peer. |
protected NioMessage |
message
Container for the current message data. |
int |
readByteCount
Count of bytes read. |
protected S |
state
The current state of the channel this context is associated with. |
protected String |
uuid
Uuid for this context. |
int |
writeByteCount
Count of bytes written. |
| Constructor Summary | |
|---|---|
AbstractNioContext()
|
|
| Method Summary | |
|---|---|
ChannelWrapper<?> |
getChannel()
Get the associated channel. |
String |
getConnectionUuid()
Get the nique ID for the corresponding connection on the remote peer. |
NioMessage |
getMessage()
Get the container for the current message data. |
protected String |
getShortClassName()
Give the non qualified name of the class of this instance. |
S |
getState()
Get the current state of the channel this context is associated with. |
String |
getUuid()
Get the uuid for this node context. |
void |
setChannel(ChannelWrapper<?> channel)
Set the associated channel. |
void |
setConnectionUuid(String connectionUuid)
Set the nique ID for the corresponding connection on the remote peer. |
void |
setMessage(NioMessage message)
Set the container for the current message data. |
void |
setState(S state)
Set the current state of the channel this context is associated with. |
void |
setUuid(String uuid)
Set the uuid for this node context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.server.nio.NioContext |
|---|
handleException, readMessage, writeMessage |
| Field Detail |
|---|
protected S extends Enum<S> state
protected String uuid
protected String connectionUuid
protected NioMessage message
public int readByteCount
public int writeByteCount
| Constructor Detail |
|---|
public AbstractNioContext()
| Method Detail |
|---|
public S getState()
getState in interface NioContext<S extends Enum<S>>public void setState(S state)
setState in interface NioContext<S extends Enum<S>>state - a state enum value.public String getUuid()
getUuid in interface NioContext<S extends Enum<S>>public void setUuid(String uuid)
setUuid in interface NioContext<S extends Enum<S>>uuid - the uuid as a string.protected String getShortClassName()
public NioMessage getMessage()
NioMessage instance.public void setMessage(NioMessage message)
message - an NioMessage instance.public ChannelWrapper<?> getChannel()
getChannel in interface NioContext<S extends Enum<S>>ChannelWrapper instance.public void setChannel(ChannelWrapper<?> channel)
setChannel in interface NioContext<S extends Enum<S>>channel - a ChannelWrapper instance.public String getConnectionUuid()
public void setConnectionUuid(String connectionUuid)
connectionUuid - the id as a string.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||