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 TypeMethodDescriptionvoidhandleClusterPacket(Element packet) Method handles cluster packet received from cluster connection.voidnodeConnected(String addr) Method is called on cluster node connection event.voidnodeDisconnected(String addr) Method is called on cluster node disconnection event.voidremoveCommandListener(CommandListener listener) voidsendToNodes(String command, Map<String, String> data, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoidsendToNodes(String command, Map<String, String> data, Element packet, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoidsendToNodes(String command, Map<String, String> data, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoidMethod which sends command to desired nodesvoidsendToNodes(String command, Queue<Element> packets, JID fromNode, Set<JID> visitedNodes, JID... toNodes) Method which sends command to desired nodesvoidMethod which sends command to desired nodesvoidsendToNodes(String command, JID fromNode, JID... toNodes) Method which sends command to desired nodesvoidsetCommandListener(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
-