Package tigase.pubsub.cluster
Class CachedPubSubRepositoryClustered<T>
- java.lang.Object
-
- tigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
- tigase.pubsub.cluster.CachedPubSubRepositoryClustered<T>
-
- All Implemented Interfaces:
tigase.kernel.beans.Initializable,IPubSubRepositoryClustered<T>,tigase.pubsub.repository.IPubSubRepository,tigase.stats.StatisticHolder,tigase.xmpp.mam.MAMRepository<tigase.pubsub.modules.mam.Query,tigase.pubsub.repository.IPubSubRepository.Item>
@Bean(name="pubsubRepository", parent=PubSubComponentClustered.class, active=true) public class CachedPubSubRepositoryClustered<T> extends tigase.pubsub.repository.cached.CachedPubSubRepository<T> implements IPubSubRepositoryClustered<T>- Author:
- andrzej
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class tigase.pubsub.repository.cached.CachedPubSubRepository
tigase.pubsub.repository.cached.CachedPubSubRepository.NodeKey, tigase.pubsub.repository.cached.CachedPubSubRepository.RootCollectionSet
-
-
Constructor Summary
Constructors Constructor Description CachedPubSubRepositoryClustered()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToRootCollection(tigase.xmpp.jid.BareJID serviceJid, String nodeName)voidclearRemoteNodes()voiddeleteNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName)voidforgetConfiguration(tigase.xmpp.jid.BareJID serviceJid, String nodeName)protected tigase.pubsub.repository.cached.NodegetNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName)tigase.pubsub.AbstractNodeConfiggetNodeConfig(tigase.xmpp.jid.BareJID serviceJid, String nodeName)tigase.pubsub.repository.cached.NodegetNodeFromCache(tigase.xmpp.jid.BareJID serviceJid, String nodeName)longgetNodesCount(tigase.xmpp.jid.BareJID serviceJID)tigase.pubsub.repository.IPubSubRepository.RootCollectionSetIfcgetRootCollectionSet(tigase.xmpp.jid.BareJID serviceJid)voidgetStatistics(String name, tigase.stats.StatisticsList stats)protected booleanisLocalNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName)voidnodeAdded(tigase.xmpp.jid.BareJID serviceJid, String node)protected voidnodeCollectionChanged(tigase.xmpp.jid.BareJID serviceJid, String nodeName, String oldCollection, String newCollection)voidnodeRemoved(tigase.xmpp.jid.BareJID serviceJid, String node)voidonUserRemoved(tigase.xmpp.jid.BareJID userJid)voidremoveFromRootCollection(tigase.xmpp.jid.BareJID serviceJid, String nodeName)voidupdate(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.AbstractNodeConfig nodeConfig)voidupdate(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.repository.IAffiliations nodeAffiliations)voidupdate(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.repository.ISubscriptions nodeSubscriptions)voiduserRemoved(tigase.xmpp.jid.BareJID userJid)protected tigase.pubsub.repository.cached.NodeSubscriptionswrapNodeSubscriptions(tigase.pubsub.repository.NodeSubscriptions nodeSubscriptions)-
Methods inherited from class tigase.pubsub.repository.cached.CachedPubSubRepository
createKey, createNode, destroy, everyHour, everyMinute, everySecond, getAllNodes, getBuddyGroups, getBuddySubscription, getChildNodes, getNodeAffiliations, getNodeAndSubnodes, getNodeItems, getNodeMeta, getNodeSubscriptions, getPubSubDAO, getRootCollection, getUserRoster, getUserSubscriptions, hasAccessPermission, init, initialize, loadRootCollections, newQuery, queryItems, setDao, setStatisticsPrefix, statisticExecutedIn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
addToRootCollection
public void addToRootCollection(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Specified by:
addToRootCollectionin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
addToRootCollectionin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
removeFromRootCollection
public void removeFromRootCollection(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Specified by:
removeFromRootCollectionin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
removeFromRootCollectionin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
getRootCollectionSet
public tigase.pubsub.repository.IPubSubRepository.RootCollectionSetIfc getRootCollectionSet(tigase.xmpp.jid.BareJID serviceJid) throws tigase.component.exceptions.RepositoryException- Specified by:
getRootCollectionSetin interfaceIPubSubRepositoryClustered<T>- Overrides:
getRootCollectionSetin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
forgetConfiguration
public void forgetConfiguration(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Specified by:
forgetConfigurationin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
forgetConfigurationin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
deleteNode
public void deleteNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Specified by:
deleteNodein interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
deleteNodein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
update
public void update(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.AbstractNodeConfig nodeConfig) throws tigase.component.exceptions.RepositoryException- Specified by:
updatein interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
updatein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
getNodeFromCache
public tigase.pubsub.repository.cached.Node getNodeFromCache(tigase.xmpp.jid.BareJID serviceJid, String nodeName)- Specified by:
getNodeFromCachein interfaceIPubSubRepositoryClustered<T>- Overrides:
getNodeFromCachein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
getNodeConfig
public tigase.pubsub.AbstractNodeConfig getNodeConfig(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Specified by:
getNodeConfigin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
getNodeConfigin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
clearRemoteNodes
public void clearRemoteNodes()
- Specified by:
clearRemoteNodesin interfaceIPubSubRepositoryClustered<T>
-
getNodesCount
public long getNodesCount(tigase.xmpp.jid.BareJID serviceJID) throws tigase.component.exceptions.RepositoryException- Specified by:
getNodesCountin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
getNodesCountin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
nodeAdded
public void nodeAdded(tigase.xmpp.jid.BareJID serviceJid, String node)- Specified by:
nodeAddedin interfaceIPubSubRepositoryClustered<T>
-
nodeRemoved
public void nodeRemoved(tigase.xmpp.jid.BareJID serviceJid, String node)- Specified by:
nodeRemovedin interfaceIPubSubRepositoryClustered<T>
-
getStatistics
public void getStatistics(String name, tigase.stats.StatisticsList stats)
- Specified by:
getStatisticsin interfacetigase.stats.StatisticHolder- Overrides:
getStatisticsin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
onUserRemoved
public void onUserRemoved(tigase.xmpp.jid.BareJID userJid) throws tigase.component.exceptions.RepositoryException- Specified by:
onUserRemovedin interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
onUserRemovedin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
update
public void update(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.repository.IAffiliations nodeAffiliations) throws tigase.component.exceptions.RepositoryException- Specified by:
updatein interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
updatein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
update
public void update(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.pubsub.repository.ISubscriptions nodeSubscriptions) throws tigase.component.exceptions.RepositoryException- Specified by:
updatein interfacetigase.pubsub.repository.IPubSubRepository- Overrides:
updatein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
userRemoved
public void userRemoved(tigase.xmpp.jid.BareJID userJid)
- Specified by:
userRemovedin interfaceIPubSubRepositoryClustered<T>- Overrides:
userRemovedin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
getNode
protected tigase.pubsub.repository.cached.Node getNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName) throws tigase.component.exceptions.RepositoryException- Overrides:
getNodein classtigase.pubsub.repository.cached.CachedPubSubRepository<T>- Throws:
tigase.component.exceptions.RepositoryException
-
isLocalNode
protected boolean isLocalNode(tigase.xmpp.jid.BareJID serviceJid, String nodeName)
-
nodeCollectionChanged
protected void nodeCollectionChanged(tigase.xmpp.jid.BareJID serviceJid, String nodeName, String oldCollection, String newCollection)- Overrides:
nodeCollectionChangedin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
wrapNodeSubscriptions
protected tigase.pubsub.repository.cached.NodeSubscriptions wrapNodeSubscriptions(tigase.pubsub.repository.NodeSubscriptions nodeSubscriptions)
- Overrides:
wrapNodeSubscriptionsin classtigase.pubsub.repository.cached.CachedPubSubRepository<T>
-
-