Cluster Class
Cluster data structure.
Responsible for maintaing the state of the nodes in the cluster.
Methods
addNode
Add a new node to the cluster.
getByMessageType
Array
Get a node by message type.
Returns:
Array:
Array of Node
objects
removeNode
Removes a node from the cluster.
Properties
_idIndex
Object
private
Maps node ids to node objects.
_messageTypeIndex
Object
private
Maps message types to node ids.