Class RequestSyncOnlineCmd

  • All Implemented Interfaces:
    java.lang.Comparable<tigase.cluster.api.CommandListener>, tigase.cluster.api.CommandListener

    public class RequestSyncOnlineCmd
    extends TrafficSyncCmdAbstract
    Author:
    kobit
    • Method Detail

      • executeCommand

        public void executeCommand​(tigase.xmpp.jid.JID fromNode,
                                   java.util.Set<tigase.xmpp.jid.JID> visitedNodes,
                                   java.util.Map<java.lang.String,​java.lang.String> data,
                                   java.util.Queue<tigase.xml.Element> packets)
                            throws tigase.cluster.api.ClusterCommandException
        Method is responsible for processing request to synchronisation command. It creates a response packet(s) containing all users connection IDs (CIDs) on the given node and sends them back to node which originated the request. Records are split into smaller packet for performance reasons. If nor record is present a command with empty data is sent to allow setting correctly synchronised state.
        Parameters:
        fromNode - JID of the originating node from which request came.
        visitedNodes - Set containing JID of all already visited nodes
        data - additional data
        packets - Queue holding all originally received packets.
        Throws:
        tigase.cluster.api.ClusterCommandException