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)
Method description
|
List<tigase.xmpp.JID> |
getAllNodes()
Method description
|
tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.BareJID jid)
Method description
|
Set<ConnectionRecord> |
getConnectionRecords(tigase.xmpp.BareJID bareJID)
Method description
|
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)
Method description
|
boolean |
hasCompleteJidsInfo()
Method description
|
protected boolean |
isSuitableForForward(Packet packet)
Method description
|
void |
nodeConnected(tigase.xmpp.JID jid)
Method description
|
void |
nodeDisconnected(tigase.xmpp.JID jid)
Method description
|
void |
setProperties(Map<String,Object> props)
Method description
|
void |
setSessionManagerHandler(SessionManagerHandler sm)
Method description
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionRecord, getConnectionRecordInstance, getDefaults, getInfo, handleLocalPacket, handleLocalPresenceSet, handleLocalResourceBind, handleLocalUserLogin, handleLocalUserLogout, processPacket, setClusterController, setSessionManagerHandler
containsJidLocally, containsJidLocally
public boolean containsJid(tigase.xmpp.BareJID jid)
containsJid
in interface OnlineJidsReporter
jid
- public void nodeConnected(tigase.xmpp.JID jid)
nodeConnected
in interface ClusteringStrategyIfc<ConnectionRecord>
jid
- public void nodeDisconnected(tigase.xmpp.JID jid)
nodeDisconnected
in interface ClusteringStrategyIfc<ConnectionRecord>
jid
- public List<tigase.xmpp.JID> getAllNodes()
getAllNodes
in interface ClusteringStrategyIfc<ConnectionRecord>
public tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.BareJID jid)
getConnectionIdsForJid
in interface OnlineJidsReporter
jid
- JID
containing all Connection IDs (CIDs) for
the given user.public Set<ConnectionRecord> getConnectionRecords(tigase.xmpp.BareJID bareJID)
getConnectionRecords
in interface ClusteringStrategyIfc<ConnectionRecord>
bareJID
- @Deprecated public Object getInternalCacheData()
getInternalCacheData
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)
getStatistics
in interface ClusteringStrategyIfc<ConnectionRecord>
list
- public boolean hasCompleteJidsInfo()
hasCompleteJidsInfo
in interface OnlineJidsReporter
true
if the informations are complete, false
otherwise.public void setProperties(Map<String,Object> props)
setProperties
in interface ClusteringStrategyIfc<ConnectionRecord>
props
- public void setSessionManagerHandler(SessionManagerHandler sm)
sm
- protected boolean isSuitableForForward(Packet packet)
packet
- Copyright © 2014 "Tigase, Inc.". All rights reserved.