Class RespondSyncOnlineCmd
- java.lang.Object
-
- tigase.cluster.api.CommandListenerAbstract
-
- tigase.server.cluster.strategy.cmd.CachingCmdAbstract
-
- tigase.server.cluster.strategy.cmd.TrafficSyncCmdAbstract
-
- tigase.server.cluster.strategy.cmd.RespondSyncOnlineCmd
-
- All Implemented Interfaces:
java.lang.Comparable<tigase.cluster.api.CommandListener>,tigase.cluster.api.CommandListener
public class RespondSyncOnlineCmd extends TrafficSyncCmdAbstract
- Author:
- kobit
-
-
Field Summary
-
Fields inherited from class tigase.server.cluster.strategy.cmd.CachingCmdAbstract
CONNECTION_ID, CREATION_TIME, LOGIN_TIME, PRESENCE_TYPE_INITIAL, PRESENCE_TYPE_KEY, RESOURCE, SM_ID, USER_ID, XMPP_SESSION_ID
-
-
Constructor Summary
Constructors Constructor Description RespondSyncOnlineCmd(java.lang.String name, OnlineUsersCachingStrategy strat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand(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> elements)Method is responsible for processing response to synchronisation request.-
Methods inherited from class tigase.server.cluster.strategy.cmd.TrafficSyncCmdAbstract
getSyncInTraffic, getSyncOutTraffic, incSyncInTraffic, incSyncOutTraffic
-
Methods inherited from class tigase.server.cluster.strategy.cmd.CachingCmdAbstract
getConnectionRecord, getStrategy
-
-
-
-
Constructor Detail
-
RespondSyncOnlineCmd
public RespondSyncOnlineCmd(java.lang.String name, OnlineUsersCachingStrategy strat)
-
-
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> elements) throws tigase.cluster.api.ClusterCommandExceptionMethod is responsible for processing response to synchronisation request. For empty responses it simply sets status of the cache to synchronised state. For responses containing data, elements are processed and included into local connections cache subsequently marking it as synchronised.- Parameters:
fromNode-JIDof the originating node from which response came.visitedNodes-SetcontainingJIDof all already visited nodesdata- additional dataelements- response data, either null for empty set or collection of containing information about Connection IDs (CIDs) of all users JIDs from the given original node.- Throws:
tigase.cluster.api.ClusterCommandException
-
-