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() |
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)
Deprecated.
|
String |
getInfo() |
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) |
void |
handleLocalPresenceSet(XMPPResourceConnection conn) |
void |
handleLocalResourceBind(XMPPResourceConnection conn) |
void |
handleLocalUserChangedConnId(BareJID userId,
XMPPResourceConnection conn,
JID oldConnId,
JID newConnId) |
void |
handleLocalUserLogin(BareJID userId,
XMPPResourceConnection conn) |
void |
handleLocalUserLogout(BareJID userId,
XMPPResourceConnection conn) |
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) |
void |
setClusterController(ClusterControllerIfc clComp) |
void |
setProperties(Map<String,Object> props)
Method used to pass configuration parameters to the class.
|
containsJid, containsJidLocally, containsJidLocally, getConnectionIdsForJid, hasCompleteJidsInfo
everyHour, everyMinute, everySecond, getStatistics, setStatisticsPrefix, statisticExecutedIn
void handleLocalPresenceSet(XMPPResourceConnection conn)
void handleLocalResourceBind(XMPPResourceConnection conn)
void handleLocalUserLogin(BareJID userId, XMPPResourceConnection conn)
void handleLocalUserLogout(BareJID userId, XMPPResourceConnection conn)
void handleLocalUserChangedConnId(BareJID userId, XMPPResourceConnection conn, JID oldConnId, JID newConnId)
String getInfo()
void handleLocalPacket(Packet packet, XMPPResourceConnection 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)
List<JID> getNodesConnected()
E getConnectionRecord(JID jid)
jid
- is an instance of the user's full JID.E getConnectionRecordInstance()
Set<E> getConnectionRecords(BareJID bareJID)
bareJID
- is an instance of the user's BareJID, that is account ID.@Deprecated 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.void getStatistics(StatisticsList list)
void setClusterController(ClusterControllerIfc clComp)
void setProperties(Map<String,Object> props)
Map
which
contains compiles set of defaults overwritten by parameters loaded from configuration file.
props
- a Map
with all configuration parameters for the class.Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.