Class CachingCmdAbstract
- java.lang.Object
-
- tigase.cluster.api.CommandListenerAbstract
-
- tigase.server.cluster.strategy.cmd.CachingCmdAbstract
-
- All Implemented Interfaces:
java.lang.Comparable<tigase.cluster.api.CommandListener>
,tigase.cluster.api.CommandListener
- Direct Known Subclasses:
TrafficSyncCmdAbstract
public abstract class CachingCmdAbstract extends tigase.cluster.api.CommandListenerAbstract
- Author:
- kobit
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONNECTION_ID
static java.lang.String
CREATION_TIME
static java.lang.String
LOGIN_TIME
static java.lang.String
PRESENCE_TYPE_INITIAL
static java.lang.String
PRESENCE_TYPE_KEY
static java.lang.String
RESOURCE
static java.lang.String
SM_ID
static java.lang.String
USER_ID
static java.lang.String
XMPP_SESSION_ID
-
Constructor Summary
Constructors Constructor Description CachingCmdAbstract(java.lang.String name, OnlineUsersCachingStrategy strat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConnectionRecordExt
getConnectionRecord(tigase.xmpp.jid.JID node, java.util.Map<java.lang.String,java.lang.String> data)
Method takes the data received from other cluster node and creates a ConnectionRecord with all essential connection information.OnlineUsersCachingStrategy
getStrategy()
-
Methods inherited from class tigase.cluster.api.CommandListenerAbstract
compareTo, equals, getName, getPriority, getStatistics, getSyncInTraffic, getSyncOutTraffic, hashCode, incSyncInTraffic, incSyncOutTraffic, setName, setPriority
-
-
-
-
Field Detail
-
CONNECTION_ID
public static final java.lang.String CONNECTION_ID
- See Also:
- Constant Field Values
-
CREATION_TIME
public static final java.lang.String CREATION_TIME
- See Also:
- Constant Field Values
-
LOGIN_TIME
public static final java.lang.String LOGIN_TIME
- See Also:
- Constant Field Values
-
PRESENCE_TYPE_INITIAL
public static final java.lang.String PRESENCE_TYPE_INITIAL
- See Also:
- Constant Field Values
-
PRESENCE_TYPE_KEY
public static final java.lang.String PRESENCE_TYPE_KEY
- See Also:
- Constant Field Values
-
RESOURCE
public static final java.lang.String RESOURCE
- See Also:
- Constant Field Values
-
SM_ID
public static final java.lang.String SM_ID
- See Also:
- Constant Field Values
-
USER_ID
public static final java.lang.String USER_ID
- See Also:
- Constant Field Values
-
XMPP_SESSION_ID
public static final java.lang.String XMPP_SESSION_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CachingCmdAbstract
public CachingCmdAbstract(java.lang.String name, OnlineUsersCachingStrategy strat)
-
-
Method Detail
-
getStrategy
public OnlineUsersCachingStrategy getStrategy()
-
getConnectionRecord
protected ConnectionRecordExt getConnectionRecord(tigase.xmpp.jid.JID node, java.util.Map<java.lang.String,java.lang.String> data)
Method takes the data received from other cluster node and creates a ConnectionRecord with all essential connection information. This might be used later to identify user's XMPPResourceConnection or use the clustering strategy API.
-
-