public class MimicNodeStore extends MessageDecoder implements Connection
Provides a Connection for incoming Messages.
Modifier and Type | Class and Description |
---|---|
class |
MimicNodeStore.NodeMemo |
Connection.ConnectionListener
Modifier and Type | Field and Description |
---|---|
(package private) Connection |
connection |
(package private) HashMap<NodeID,MimicNodeStore.NodeMemo> |
map |
(package private) NodeID |
node |
(package private) PropertyChangeSupport |
pcs |
Constructor and Description |
---|
MimicNodeStore(Connection connection,
NodeID node) |
Modifier and Type | Method and Description |
---|---|
MimicNodeStore.NodeMemo |
addNode(NodeID id) |
void |
addPropertyChangeListener(PropertyChangeListener l) |
MimicNodeStore.NodeMemo |
findNode(NodeID id)
If node not present, initiate process to find it.
|
Collection<MimicNodeStore.NodeMemo> |
getNodeMemos() |
ProtocolIdentification |
getProtocolIdentification(NodeID dest) |
SimpleNodeIdent |
getSimpleNodeIdent(NodeID dest) |
void |
put(Message msg,
Connection sender)
Process message.
|
void |
removePropertyChangeListener(PropertyChangeListener l) |
defaultHandler, handleConsumerIdentified, handleDatagram, handleDatagramAcknowledged, handleDatagramRejected, handleIdentifyConsumers, handleIdentifyEvents, handleIdentifyProducers, handleInitializationComplete, handleLearnEvent, handleOptionalIntRejected, handleProducerConsumerEventReport, handleProducerIdentified, handleProtocolIdentificationReply, handleProtocolIdentificationRequest, handleSimpleNodeIdentInfoReply, handleSimpleNodeIdentInfoRequest, handleStreamDataComplete, handleStreamDataProceed, handleStreamDataSend, handleStreamInitReply, handleStreamInitRequest, handleVerifiedNodeIDNumber, handleVerifyNodeIDNumber
registerStartNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerStartNotification
Connection connection
NodeID node
HashMap<NodeID,MimicNodeStore.NodeMemo> map
PropertyChangeSupport pcs
public MimicNodeStore(Connection connection, NodeID node)
public Collection<MimicNodeStore.NodeMemo> getNodeMemos()
public void put(Message msg, Connection sender)
MessageDecoder
Base implementation refers back to message to implement its own specific type.
put
in interface Connection
put
in class MessageDecoder
msg
- Input to be processed by typesender
- Passed through for specific message processing,
e.g. to send a reply back to the originatorpublic MimicNodeStore.NodeMemo addNode(NodeID id)
public MimicNodeStore.NodeMemo findNode(NodeID id)
public SimpleNodeIdent getSimpleNodeIdent(NodeID dest)
public ProtocolIdentification getProtocolIdentification(NodeID dest)
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
Information on copyright, trademarks and licenses is linked here.
Site hosted by: