Modifier and Type | Method and Description |
---|---|
void |
addCommandToRunning(ProtocolZero com) |
void |
addEventListener(CommandTerminationListener comlist)
Adds a command termination listener to the Quagent.
|
void |
execute(Command com)
Executes command and blocks until server returns termination response.
|
java.util.List<ProtocolZero> |
getRunningList() |
java.io.Writer |
getWriter()
Returns the entity's socket writer.
|
long |
incrementCommandID() |
boolean |
isQuagent() |
void |
notifyCommandTerminationListener(Command com) |
void |
removeCommandFromRunning(ProtocolZero com) |
void |
start(Command com)
Sends command to server to execute, and returns.
|
void |
waitForTerminate(Command com)
Blocks until com has terminated.
|
java.io.Writer getWriter()
void waitForTerminate(Command com)
com
- Command to block on.void execute(Command com)
com
- Command to execute and block on.void start(Command com)
com
- Command to execute.void addEventListener(CommandTerminationListener comlist)
comlist
- CommandTermiantionListener to attachlong incrementCommandID()
void removeCommandFromRunning(ProtocolZero com)
void addCommandToRunning(ProtocolZero com)
void notifyCommandTerminationListener(Command com)
java.util.List<ProtocolZero> getRunningList()
boolean isQuagent()