| java.lang.Object | |
| ↳ | uk.ac.imperial.presage2.util.protocols.Protocol |
Known Direct Subclasses
|
An InputHandler which manages a set of Conversations which
produce and consume Messages of this protocol. The handler will be
able to handle messages whose protocol name matches the name
field of this object.
The protocol keeps a list of active Conversations of this protocol.
When a new Message of this protocol arrives it hands it to any of
these active conversations who can handle it. If none can handle we
spawn(Message) a new conversation from the message.
The protocol can also be used to spawn new active conversations with 0, 1 or
many NetworkAddresses provided.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| activeConversations | |||||||||||
| name | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Check if this Handler can handle the given
Input | |||||||||||
Get the set of
NetworkAddresses involved in an active
conversation with us in this protocol. | |||||||||||
Get the set of active conversations managed by this protocol.
| |||||||||||
Handle the given
Input. | |||||||||||
Spawn a conversation of this protocol.
| |||||||||||
Spawn a conversation of this protocol with the given network addresses
(multi-cast conversation).
| |||||||||||
Spawn a conversation of this protocol from the given input message
(reactive conversation).
| |||||||||||
Spawn a conversation of this protocol with the given network address.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
uk.ac.imperial.presage2.core.messaging.InputHandler
| |||||||||||
Get the set of NetworkAddresses involved in an active
conversation with us in this protocol.
Get the set of active conversations managed by this protocol.
Spawn a conversation of this protocol. No arguments are provided so this will usually be a broadcast conversation.
Spawn a conversation of this protocol with the given network addresses (multi-cast conversation).
Spawn a conversation of this protocol from the given input message (reactive conversation).
Spawn a conversation of this protocol with the given network address.