public class PacketForwardCmd extends CommandListenerAbstract
| Modifier and Type | Field and Description |
|---|---|
static String |
PACKET_FROM_KEY |
| Constructor and Description |
|---|
PacketForwardCmd(String name,
DefaultClusteringStrategyAbstract strategy)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
Map<String,String> data,
Queue<tigase.xml.Element> packets)
Method is responsible for executing commands from other nodes and
appropriate processing
|
compareTo, equals, getName, getStatistics, getSyncInTraffic, getSyncOutTraffic, hashCode, incSyncInTraffic, incSyncOutTraffic, setNamepublic static final String PACKET_FROM_KEY
public PacketForwardCmd(String name, DefaultClusteringStrategyAbstract strategy)
name - strategy - public void executeCommand(tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
Map<String,String> data,
Queue<tigase.xml.Element> packets)
throws ClusterCommandException
CommandListenerfromNode - address of the node from which command was receivedvisitedNodes - collection of already visited nodesdata - additional data associated with the command in addition
to the main Elementpackets - collection of Element commands to be executedClusterCommandException - execution exceptionCopyright © 2016 "Tigase, Inc.". All rights reserved.