E
- public interface ClusteringStrategyIfc<E extends ConnectionRecordIfc> extends OnlineJidsReporter, StatisticHolder
Modifier and Type | Method and Description |
---|---|
E |
getConnectionRecord(JID jid)
Returns a ConnectionRecord object associated with this user's full JID if
it exists in the cache or null if it does not.
|
E |
getConnectionRecordInstance()
Method description
|
Set<E> |
getConnectionRecords(BareJID bareJID)
Returns a set with all ConnectionRecords found in the cache for a given
user ID, that is BareJID.
|
Map<String,Object> |
getDefaults(Map<String,Object> params)
This method is used for configuration purpose.
|
String |
getInfo()
Method description
|
Object |
getInternalCacheData()
Deprecated.
|
List<JID> |
getNodesConnected()
The method returns all cluster nodes currently connected to the cluster node.
|
void |
getStatistics(StatisticsList list)
Add the strategy statistics to the List.
|
void |
handleLocalPacket(Packet packet,
XMPPResourceConnection conn)
Method description
|
void |
handleLocalPresenceSet(XMPPResourceConnection conn)
Method description
|
void |
handleLocalResourceBind(XMPPResourceConnection conn)
Method description
|
void |
handleLocalUserChangedConnId(BareJID userId,
XMPPResourceConnection conn,
JID oldConnId,
JID newConnId) |
void |
handleLocalUserLogin(BareJID userId,
XMPPResourceConnection conn)
Method description
|
void |
handleLocalUserLogout(BareJID userId,
XMPPResourceConnection conn)
Method description
|
void |
nodeConnected(JID node)
This is a handler method which is called when a new node connects to the
cluster.
|
void |
nodeDisconnected(JID node)
This is a handler method which is called when a node disconnects from the
cluster.
|
boolean |
processPacket(Packet packet,
XMPPResourceConnection conn)
Method description
|
void |
setClusterController(ClusterControllerIfc clComp)
Method description
|
void |
setProperties(Map<String,Object> props)
Method used to pass configuration parameters to the class.
|
void |
setSessionManagerHandler(SessionManagerClusteredIfc sm)
The method allows to obtain SessionManagerHandler object by the strategy.
|
containsJid, containsJidLocally, containsJidLocally, getConnectionIdsForJid, hasCompleteJidsInfo
everyHour, everyMinute, everySecond, getStatistics, setStatisticsPrefix, statisticExecutedIn
void handleLocalPresenceSet(XMPPResourceConnection conn)
conn
- void handleLocalResourceBind(XMPPResourceConnection conn)
conn
- void handleLocalUserLogin(BareJID userId, XMPPResourceConnection conn)
userId
- conn
- void handleLocalUserLogout(BareJID userId, XMPPResourceConnection conn)
userId
- conn
- void handleLocalUserChangedConnId(BareJID userId, XMPPResourceConnection conn, JID oldConnId, JID newConnId)
String getInfo()
String
void handleLocalPacket(Packet packet, XMPPResourceConnection conn)
packet
- conn
- void nodeConnected(JID node)
node
- is a cluster node id.void nodeDisconnected(JID node)
node
- is a cluster node id.boolean processPacket(Packet packet, XMPPResourceConnection conn)
packet
- conn
- boolean
List<JID> getNodesConnected()
E getConnectionRecord(JID jid)
jid
- is an instance of the user's full JID.E getConnectionRecordInstance()
E
Set<E> getConnectionRecords(BareJID bareJID)
bareJID
- is an instance of the user's BareJID, that is account ID.Map<String,Object> getDefaults(Map<String,Object> params)
setProperties
method.params
- a Map
with properties loaded from init.properties
file which should be used for generating defaults.Map
with all the class default configuration
parameters.@Deprecated Object getInternalCacheData()
void getStatistics(StatisticsList list)
list
- void setClusterController(ClusterControllerIfc clComp)
clComp
- void setProperties(Map<String,Object> props)
Map
which contains compiles set of defaults
overwritten by parameters loaded from configuration file.
If he implementation took a good care of providing defaults for all
parameters no parameter should be missing.props
- a Map
with all configuration parameters for the
class.void setSessionManagerHandler(SessionManagerClusteredIfc sm)
sm
- is an instance of the SessionManagerHandler class.Copyright © 2017 "Tigase, Inc.". All rights reserved.