public interface ClusterControllerIfc
Modifier and Type | Field and Description |
---|---|
static String |
DELIVER_CLUSTER_PACKET_CMD
Field description
|
Modifier and Type | Method and Description |
---|---|
void |
handleClusterPacket(Element packet)
Method description
|
void |
nodeConnected(String addr)
Method is called on cluster node connection event.
|
void |
nodeDisconnected(String addr)
Method is called on cluster node disconnection event.
|
void |
removeCommandListener(CommandListener listener)
Method description
|
void |
sendToNodes(String command,
Element packet,
JID fromNode,
Set<JID> visitedNodes,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
JID fromNode,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
Element packet,
JID fromNode,
Set<JID> visitedNodes,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
JID fromNode,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
JID fromNode,
Set<JID> visitedNodes,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
Queue<Element> packets,
JID fromNode,
Set<JID> visitedNodes,
JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Queue<Element> packets,
JID fromNode,
Set<JID> visitedNodes,
JID... toNodes)
Method which sends command to desired nodes
|
void |
setCommandListener(CommandListener listener)
Method description
|
static final String DELIVER_CLUSTER_PACKET_CMD
void handleClusterPacket(Element packet)
packet
- which should be handledvoid nodeConnected(String addr)
addr
- is a hostname of a cluster node generating the event.void nodeDisconnected(String addr)
addr
- is a hostname of a cluster node generating the event.void removeCommandListener(CommandListener listener)
listener
- CommandListener objectvoid sendToNodes(String command, Map<String,String> data, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes)
command
- ID string of the commanddata
- additional data to be included in the packetpackets
- collection of elements to be send to desired nodesfromNode
- address of the source nodevisitedNodes
- list of all already visited nodestoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes)
command
- ID string of the commandpackets
- collection of elements to be send to desired nodesfromNode
- address of the source nodevisitedNodes
- list of all already visited nodestoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, Map<String,String> data, JID fromNode, Set<JID> visitedNodes, JID... toNodes)
command
- ID string of the commanddata
- additional data to be included in the packetfromNode
- address of the source nodevisitedNodes
- list of all already visited nodestoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, Map<String,String> data, JID fromNode, JID... toNodes)
command
- ID string of the commanddata
- additional data to be included in the packetfromNode
- address of the source nodetoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, JID fromNode, JID... toNodes)
command
- ID string of the commandfromNode
- address of the source nodetoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes)
command
- ID string of the commandpacket
- collection of elements to be send to desired nodesfromNode
- address of the source nodevisitedNodes
- list of all already visited nodestoNodes
- list of nodes to which packet should be sentvoid sendToNodes(String command, Map<String,String> data, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes)
command
- ID string of the commanddata
- additional data to be included in the packetpacket
- element to be send to desired nodesfromNode
- address of the source nodevisitedNodes
- list of all already visited nodestoNodes
- list of nodes to which packet should be sentvoid setCommandListener(CommandListener listener)
listener
- CommandListener objectCopyright © 2018 "Tigase, Inc.". All rights reserved.