Class RequestSyncOnlineCmd

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

public class RequestSyncOnlineCmd extends TrafficSyncCmdAbstract
Author:
kobit
  • Constructor Details

  • Method Details

    • executeCommand

      public void executeCommand(tigase.xmpp.jid.JID fromNode, Set<tigase.xmpp.jid.JID> visitedNodes, Map<String,String> data, 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