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(tigase.xml.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,
tigase.xml.Element packet,
tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
tigase.xmpp.JID fromNode,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
tigase.xml.Element packet,
tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
tigase.xmpp.JID fromNode,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Map<String,String> data,
Queue<tigase.xml.Element> packets,
tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
sendToNodes(String command,
Queue<tigase.xml.Element> packets,
tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
tigase.xmpp.JID... toNodes)
Method which sends command to desired nodes
|
void |
setCommandListener(CommandListener listener)
Method description
|
static final String DELIVER_CLUSTER_PACKET_CMD
void handleClusterPacket(tigase.xml.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<tigase.xml.Element> packets, tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, tigase.xmpp.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<tigase.xml.Element> packets, tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, tigase.xmpp.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, tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, tigase.xmpp.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, tigase.xmpp.JID fromNode, tigase.xmpp.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, tigase.xmpp.JID fromNode, tigase.xmpp.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, tigase.xml.Element packet, tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, tigase.xmpp.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, tigase.xml.Element packet, tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, tigase.xmpp.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 © 2016 "Tigase, Inc.". All rights reserved.