|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.solarmetric.remote.Command
public abstract class Command
Base class for commands sent from the client to the server. Each command object encompasses the command state, the execution logic, and the server's response.
Constructor Summary | |
---|---|
Command()
|
Method Summary | |
---|---|
abstract void |
execute(Object context)
Execute this command using the given context. |
long |
getClientId()
The server-assigned id of the client sending the command. |
boolean |
hasResponse()
Whether this command uses a response. |
protected void |
read(ObjectInput in)
Read in the state of the sent command from the given stream. |
protected void |
readResponse(ObjectInput in)
Read the server's response to this command. |
void |
setClientId(long id)
The server-assigned id of the client sending the command. |
void |
setHasResponse(boolean response)
Whether this command uses a response. |
String |
toString()
|
protected void |
write(ObjectOutput out)
Write this command to the given stream. |
protected void |
writeResponse(ObjectOutput out)
Write the server's response to this command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Command()
Method Detail |
---|
public void setClientId(long id)
public long getClientId()
public boolean hasResponse()
public void setHasResponse(boolean response)
public abstract void execute(Object context) throws Exception
Exception
protected void read(ObjectInput in) throws Exception
Exception
protected void write(ObjectOutput out) throws Exception
Exception
protected void readResponse(ObjectInput in) throws Exception
Exception
protected void writeResponse(ObjectOutput out) throws Exception
Exception
public String toString()
toString
in class Object
|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |