|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandLaunching
This interface defines command-casting abilities. Classes that implement this interface are able to send command to a command server. The way they do it (either RMI or socket based) is not specified in this interface. Sub-interface may break this generality to e.g. provide a point-to-point protocol (event casting is not single-connection based).
This interface should act as a common functionality for describing command servers.
Sequencers (Sequencing) rely on this interface. They need
ReplyDeliverer properties to get essential acknolwedge and done
messages forwarded and ErrorCaster properties to receive incoming
errors to alter the task flow if necessary. PropertySupplying is
a generic interface for all objects in MasterMind.
| Field Summary |
|---|
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Method Summary | |
|---|---|
void |
castCommand(CommandEvent ce)
The interface to the command casting routine. |
String |
getClientName()
Returns the name of this command launcher. |
CommandEvent |
getExitCommand()
Returns the command that should be sent on a server exit. |
CommandEvent |
getShutdownCommand()
Returns the command that initiates a shutdown on the device or prepares it for a shutdown. |
boolean |
handles(CommandEvent ce)
Returns true if the caster can handles this command event. |
boolean |
isReady()
Returns true if the device is ready to receive commands. |
void |
recastCommand()
Resends the last command, stops acknowledge/done waits. |
| Methods inherited from interface stella.ReplyDeliverer |
|---|
announceInterest, registerReplySubscriber |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Method Detail |
|---|
void castCommand(CommandEvent ce)
void recastCommand()
boolean handles(CommandEvent ce)
boolean isReady()
String getClientName()
CommandEvent getShutdownCommand()
CommandEvent getExitCommand()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||