|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConsoleCommunication
Handles communication for the console.
| Method Summary | |
|---|---|
MessageDispatchRegistry |
getMessageDispatchRegistry()
Returns the message dispatch registry which callers can use to register new message handlers. |
boolean |
processOneMessage()
Wait to receive a message, then process it. |
void |
sendToAddressedAgents(Address address,
Message message)
Send the given message to the given agent processes (which may pass it on to its workers). |
void |
sendToAgents(Message message)
Send the given message to the agent processes (which may pass it on to their workers). |
void |
shutdown()
Shut down communication. |
| Method Detail |
|---|
MessageDispatchRegistry getMessageDispatchRegistry()
void shutdown()
boolean processOneMessage()
true if we processed a message successfully;
false if we've been shut down.shutdown()void sendToAgents(Message message)
message - The message to send.
void sendToAddressedAgents(Address address,
Message message)
address - The address to which the message should be sent.message - The message to send.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||