|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.nio.AbstractNioContext<S>
org.jppf.server.nio.SimpleNioContext<MultiplexerState>
org.jppf.server.nio.multiplexer.MultiplexerContext
public class MultiplexerContext
Context obect associated with a socket channel used by the multiplexer.
| Field Summary |
|---|
| Fields inherited from class org.jppf.server.nio.AbstractNioContext |
|---|
connectionUuid, message, readByteCount, state, uuid, writeByteCount |
| Constructor Summary | |
|---|---|
MultiplexerContext()
|
|
| Method Summary | |
|---|---|
int |
getBoundPort()
Get the application port to which the channel may be bound. |
ChannelWrapper<?> |
getLinkedKey()
Get the request currently processed. |
int |
getMultiplexerPort()
Get the multiplexer port to which the channel may be bound. |
void |
handleException(ChannelWrapper<?> channel)
Handle the cleanup when an exception occurs on the channel. |
boolean |
isApplicationPort()
Determine whether the associated channel is connected to an application port. |
boolean |
isMultiplexerPort()
Determine whether the associated channel is connected to a multiplexer port. |
int |
readOutBoundPort()
Get the port outbound port number for this channel, sent as the initial message. |
void |
setBoundPort(int boundPort)
Set the application port to which the channel may be bound. |
void |
setLinkedKey(ChannelWrapper<?> key)
Set the request currently processed. |
void |
setMultiplexerPort(int multiplexerPort)
Set the multiplexer port to which the channel may be bound. |
| Methods inherited from class org.jppf.server.nio.SimpleNioContext |
|---|
readMessage, writeMessage |
| Methods inherited from class org.jppf.server.nio.AbstractNioContext |
|---|
getChannel, getConnectionUuid, getMessage, getShortClassName, getState, getUuid, setChannel, setConnectionUuid, setMessage, setState, setUuid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiplexerContext()
| Method Detail |
|---|
public void handleException(ChannelWrapper<?> channel)
channel - the channel that threw the exception.public ChannelWrapper<?> getLinkedKey()
ChannelWrapper instance.public void setLinkedKey(ChannelWrapper<?> key)
key - a ChannelWrapper instance.public int getBoundPort()
public void setBoundPort(int boundPort)
boundPort - the port as an int value, or a negative value if the channel is not bound to an application port.public int getMultiplexerPort()
public void setMultiplexerPort(int multiplexerPort)
multiplexerPort - the port as an int value, or a negative value if the channel is not bound to a multiplexer port.public boolean isApplicationPort()
public boolean isMultiplexerPort()
public int readOutBoundPort()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||