Package tigase.cluster.api
Interface ClusterControllerIfc
- All Known Implementing Classes:
ClusterController
public interface ClusterControllerIfc
- Author:
- Artur Hefczyc Created Mar 16, 2011
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleClusterPacket
(Element packet) Method handles cluster packet received from cluster connection.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) void
sendToNodes
(String command, Map<String, String> data, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoid
sendToNodes
(String command, Map<String, String> data, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoid
sendToNodes
(String command, Map<String, String> data, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoid
Method which sends command to desired nodesvoid
sendToNodes
(String command, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoid
Method which sends command to desired nodesvoid
sendToNodes
(String command, JID fromNode, JID... toNodes) Method which sends command to desired nodesvoid
setCommandListener
(CommandListener listener)
-
Field Details
-
DELIVER_CLUSTER_PACKET_CMD
- See Also:
-
-
Method Details
-
handleClusterPacket
Method handles cluster packet received from cluster connection.- Parameters:
packet
- which should be handled
-
nodeConnected
Method is called on cluster node connection event. This is a notification to the component that a new cluster node has connected.- Parameters:
addr
- is a hostname of a cluster node generating the event.
-
nodeDisconnected
Method is called on cluster node disconnection event. This is a notification to the component that there was network connection lost to one of the cluster nodes.- Parameters:
addr
- is a hostname of a cluster node generating the event.
-
removeCommandListener
-
sendToNodes
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- Parameters:
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 sent
-
sendToNodes
void sendToNodes(String command, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodes- Parameters:
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 sent
-
sendToNodes
void sendToNodes(String command, Map<String, String> data, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodes- Parameters:
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 sent
-
sendToNodes
Method which sends command to desired nodes- Parameters:
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 sent
-
sendToNodes
Method which sends command to desired nodes- Parameters:
command
- ID string of the commandfromNode
- address of the source nodetoNodes
- list of nodes to which packet should be sent
-
sendToNodes
void sendToNodes(String command, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodes- Parameters:
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 sent
-
sendToNodes
void sendToNodes(String command, Map<String, String> data, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodes- Parameters:
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 sent
-
setCommandListener
-