|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.command.CommandProcessor
public class CommandProcessor
An instance of this class serves as an entry-point for command objects.
| Constructor Summary | |
|---|---|
CommandProcessor(int maxThreads)
Constructor for CommandProcessor. |
|
| Method Summary | |
|---|---|
void |
processAsyncCommand(java.lang.String cmdId,
VmId caller,
ServerAddress from,
Command cmd)
Processes the given command asynchronously. |
java.lang.Object |
processSyncCommand(Command cmd)
Processes this command in the same thread as the caller's. |
void |
setResponseSender(ResponseSender sender)
Sets this processor's "response sender". |
void |
shutdown(long timeout)
Shuts down this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandProcessor(int maxThreads)
throws java.lang.IllegalStateException
java.lang.IllegalStateException| Method Detail |
|---|
public java.lang.Object processSyncCommand(Command cmd)
cmd - a Command.
public void processAsyncCommand(java.lang.String cmdId,
VmId caller,
ServerAddress from,
Command cmd)
cmdId - a command's unique identifier.from - the ServerAddress from which this command originates.cmd - the command to execute.public void setResponseSender(ResponseSender sender)
a - ResponseSender.
public void shutdown(long timeout)
throws java.lang.InterruptedException
This method also internally calls shutdownAll() on the OutQueue
singleton.
timeout - a timout, in millis.
java.lang.InterruptedException - if the calling thread is interrupted while
blocking within this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||