|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.internal.execution.local.common.MultiplexedDataServer
Please see TCPDataServer for implmentation details.
| Field Summary | |
|---|---|
static byte |
BINARY_DATA
|
static byte |
UNICODE_STRING_DATA
|
static byte |
UTF8_STRING_DATA
|
| Constructor Summary | |
|---|---|
MultiplexedDataServer()
|
|
| Method Summary | |
|---|---|
void |
agentActive(Agent agent)
Invoked when an agent first becomes active |
void |
agentInactive(Agent agent)
Invoked when an agent becomes inactive. |
protected boolean |
checkMessageMagic()
Check the message magic number. |
void |
error(Agent agent,
java.lang.String errorId,
java.lang.String errorMessage)
Invoked when an error is recieved from the agent. |
protected long |
getMessageLength()
Get the length of the current message |
protected byte |
getMessageType()
Get the message type. |
void |
handleCommand(Agent agent,
CommandElement command)
Invoked when there is no established handler for the context of a message. |
void |
incommingData(byte[] b,
java.net.InetAddress peer)
|
void |
incommingData(char[] c,
java.net.InetAddress peer)
|
boolean |
isProcessing()
|
protected int |
loadMessageHeader(byte[] data,
int offset,
int limit)
|
protected int |
processData(byte[] data,
int offset,
int limit,
java.net.InetAddress addr)
|
void |
resumeServer()
|
void |
resumeServer(DataProcessor processor)
|
void |
shutdownServer()
|
void |
startServer(DataProcessor processor)
|
void |
stopServer()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte BINARY_DATA
public static final byte UTF8_STRING_DATA
public static final byte UNICODE_STRING_DATA
| Constructor Detail |
public MultiplexedDataServer()
| Method Detail |
public void startServer(DataProcessor processor)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isProcessing()
public void stopServer()
public void resumeServer()
public void resumeServer(DataProcessor processor)
public void shutdownServer()
public void incommingData(byte[] b,
java.net.InetAddress peer)
public void incommingData(char[] c,
java.net.InetAddress peer)
public void agentActive(Agent agent)
AgentListener
agentActive in interface AgentListenerpublic void agentInactive(Agent agent)
AgentListener
agentInactive in interface AgentListener
public void error(Agent agent,
java.lang.String errorId,
java.lang.String errorMessage)
AgentListener
error in interface AgentListener
public void handleCommand(Agent agent,
CommandElement command)
AgentListener
handleCommand in interface AgentListener
protected int processData(byte[] data,
int offset,
int limit,
java.net.InetAddress addr)
protected int loadMessageHeader(byte[] data,
int offset,
int limit)
protected long getMessageLength()
protected byte getMessageType()
protected boolean checkMessageMagic()
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||