public abstract class SMNonCachingAllNodes extends Object implements ClusteringStrategyIfc<ConnectionRecord>
| Constructor and Description |
|---|
SMNonCachingAllNodes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsJid(tigase.xmpp.BareJID jid)
The method checks whether the given JID is known to the installation,
either user connected to local machine or any of the cluster nodes.
|
List<tigase.xmpp.JID> |
getAllNodes()
The method returns all cluster nodes currently connected to the cluster.
|
tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.BareJID jid)
Retrieve all connection IDs (CIDs) for the given user.
|
Set<ConnectionRecord> |
getConnectionRecords(tigase.xmpp.BareJID bareJID)
Returns a set with all ConnectionRecords found in the cache for a given
user ID, that is BareJID.
|
Object |
getInternalCacheData()
Deprecated.
|
List<tigase.xmpp.JID> |
getNodesForJid(tigase.xmpp.JID jid)
Method description
|
List<tigase.xmpp.JID> |
getNodesForPacketForward(tigase.xmpp.JID fromNode,
Set<tigase.xmpp.JID> visitedNodes,
Packet packet)
Method description
|
List<tigase.xmpp.JID> |
getNodesForUserConnect(tigase.xmpp.JID jid)
Method description
|
List<tigase.xmpp.JID> |
getNodesForUserDisconnect(tigase.xmpp.JID jid)
Method description
|
void |
getStatistics(StatisticsList list)
Add the strategy statistics to the List.
|
boolean |
hasCompleteJidsInfo()
Method checks whether the clustering strategy has a complete JIDs info.
|
protected boolean |
isSuitableForForward(Packet packet)
Method description
|
void |
nodeConnected(tigase.xmpp.JID jid)
This is a handler method which is called when a new node connects to the
cluster.
|
void |
nodeDisconnected(tigase.xmpp.JID jid)
This is a handler method which is called when a node disconnects from the
cluster.
|
void |
setProperties(Map<String,Object> props)
Method used to pass configuration parameters to the class.
|
void |
setSessionManagerHandler(SessionManagerHandler sm)
Method description
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionRecord, getConnectionRecordInstance, getDefaults, getInfo, handleLocalPacket, handleLocalPresenceSet, handleLocalResourceBind, handleLocalUserLogin, handleLocalUserLogout, processPacket, setClusterController, setSessionManagerHandlercontainsJidLocally, containsJidLocallypublic boolean containsJid(tigase.xmpp.BareJID jid)
OnlineJidsReportercontainsJid in interface OnlineJidsReporterjid - a user's JID for whom we query information.public void nodeConnected(tigase.xmpp.JID jid)
ClusteringStrategyIfcnodeConnected in interface ClusteringStrategyIfc<ConnectionRecord>jid - is a cluster node id.public void nodeDisconnected(tigase.xmpp.JID jid)
ClusteringStrategyIfcnodeDisconnected in interface ClusteringStrategyIfc<ConnectionRecord>jid - is a cluster node id.public List<tigase.xmpp.JID> getAllNodes()
ClusteringStrategyIfcgetAllNodes in interface ClusteringStrategyIfc<ConnectionRecord>public tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.BareJID jid)
OnlineJidsReportergetConnectionIdsForJid in interface OnlineJidsReporterjid - id of the user for which we want to retrieve the list.JID containing all Connection IDs (CIDs) for
the given user.public Set<ConnectionRecord> getConnectionRecords(tigase.xmpp.BareJID bareJID)
ClusteringStrategyIfcgetConnectionRecords in interface ClusteringStrategyIfc<ConnectionRecord>bareJID - is an instance of the user's BareJID, that is account ID.@Deprecated public Object getInternalCacheData()
ClusteringStrategyIfcgetInternalCacheData in interface ClusteringStrategyIfc<ConnectionRecord>public List<tigase.xmpp.JID> getNodesForJid(tigase.xmpp.JID jid)
jid - public List<tigase.xmpp.JID> getNodesForPacketForward(tigase.xmpp.JID fromNode, Set<tigase.xmpp.JID> visitedNodes, Packet packet)
fromNode - visitedNodes - packet - public List<tigase.xmpp.JID> getNodesForUserConnect(tigase.xmpp.JID jid)
jid - public List<tigase.xmpp.JID> getNodesForUserDisconnect(tigase.xmpp.JID jid)
jid - public void getStatistics(StatisticsList list)
ClusteringStrategyIfcgetStatistics in interface ClusteringStrategyIfc<ConnectionRecord>public boolean hasCompleteJidsInfo()
OnlineJidsReporterhasCompleteJidsInfo in interface OnlineJidsReporterpublic void setProperties(Map<String,Object> props)
ClusteringStrategyIfcMap 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.setProperties in interface ClusteringStrategyIfc<ConnectionRecord>props - a Map with all configuration parameters for the
class.public void setSessionManagerHandler(SessionManagerHandler sm)
sm - protected boolean isSuitableForForward(Packet packet)
packet - Copyright © 2016 "Tigase, Inc.". All rights reserved.