protected class MasterLauncher.MasterHelper extends Thread
MasterLauncher.processCommand(stella.CommandEvent) method. It acts as a thread to allow fast
return from the MasterLauncher.castCommand(stella.CommandEvent) method.Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private CommandEvent |
cmd
The command to process.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
MasterHelper(CommandEvent process)
Constructs a new master helper thread.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
checkForward(String type)
Checks the embedding's reply pattern list for a match to a reply
event constructed from the type handed over and the command event
registered.
|
void |
run()
The run method of the master helper.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate final CommandEvent cmd
protected MasterHelper(CommandEvent process)
public void run()
MasterLauncher.processCommand(stella.CommandEvent) method. This method returns after the
command has been entirely executed. Any errors occuring during
this process must be cast by the MasterLauncher.processCommand(stella.CommandEvent) method.
MasterLauncher.processCommand(stella.CommandEvent) method returned, the
pattern list is checked for a match in an appropriate done
event. If a match is found a correct done event is forwarded to
the reply subscriber and the match is removed from the pattern list.
private void checkForward(String type)
ReplyEvent.createMatch(java.lang.Object, java.lang.String, long, stella.CommandEvent) method is returned. Note that the
returned reply event is neither a true acknowledge event
nor a true done event and can therfore not be casted or
instance tested to one of these reply subclasses.