|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.AsyncCommand
public class AsyncCommand
Models a command that is executed asynchronously.
| Constructor Summary | |
|---|---|
AsyncCommand(java.lang.String cmdId,
VmId caller,
ServerAddress from,
Command cmd)
Constructor for AsyncCommandWrapper. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute()
Performs this instance's logic. |
VmId |
getCallerVmId()
Returns the caller's VM identifier. |
java.lang.String |
getCmdId()
Returns the identifier of this command. |
Command |
getCommand()
Returns this instance's wrapped command. |
ServerAddress |
getFrom()
Returns the address of the server to call back, and from which this command originates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncCommand(java.lang.String cmdId,
VmId caller,
ServerAddress from,
Command cmd)
the - unique identifier of this command.from - the ServerAddress corresponding to
the server to call back, and from which this command originates.cmd - the Command instance to wrap.| Method Detail |
|---|
public java.lang.String getCmdId()
public ServerAddress getFrom()
ServerAddress.public VmId getCallerVmId()
VmIdpublic Command getCommand()
Command.
public java.lang.Object execute()
throws java.lang.Throwable
Executable
execute in interface Executablenull or some return value, if it applies.
java.lang.Throwable - if an error occurs in this command's execution.Executable.execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||