tigase.pubsub.repository.cached
Class CachedPubSubRepository

java.lang.Object
  extended by tigase.pubsub.repository.cached.CachedPubSubRepository
All Implemented Interfaces:
IPubSubRepository

public class CachedPubSubRepository
extends Object
implements IPubSubRepository

Class description

Version:
5.0.0, 2010.03.27 at 05:20:46 GMT
Author:
Artur Hefczyc

Field Summary
protected  Logger log
           
static long MAX_WRITE_DELAY
          Field description
 
Constructor Summary
CachedPubSubRepository(PubSubDAO dao, Integer maxCacheSize)
          Constructs ...
 
Method Summary
 void addStats(String name, tigase.stats.StatisticsList stats)
          Method description
 void addToRootCollection(String nodeName)
          Method description
 void createNode(String nodeName, String ownerJid, AbstractNodeConfig nodeConfig, NodeType nodeType, String collection)
          Method description
 void deleteNode(String nodeName)
          Method description
 void destroy()
          Method description
 void forgetConfiguration(String nodeName)
          Method description
 String[] getBuddyGroups(tigase.xmpp.BareJID owner, String bareJid)
          Method description
 String getBuddySubscription(tigase.xmpp.BareJID owner, String buddy)
          Method description
 IAffiliations getNodeAffiliations(String nodeName)
          Method description
 AbstractNodeConfig getNodeConfig(String nodeName)
          Method description
 IItems getNodeItems(String nodeName)
          Method description
 ISubscriptions getNodeSubscriptions(String nodeName)
          Method description
 IPubSubDAO getPubSubDAO()
          Method description
 String[] getRootCollection()
          Method description
 String[] getUserRoster(tigase.xmpp.BareJID owner)
          Method description
 void init()
          Method description
 void removeFromRootCollection(String nodeName)
          Method description
 void update(String nodeName, AbstractNodeConfig nodeConfig)
          Method description
 void update(String nodeName, IAffiliations nodeAffiliations)
          Method description
 void update(String nodeName, ISubscriptions nodeSubscriptions)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_WRITE_DELAY

public static final long MAX_WRITE_DELAY
Field description

See Also:
Constant Field Values

log

protected Logger log
Constructor Detail

CachedPubSubRepository

public CachedPubSubRepository(PubSubDAO dao,
                              Integer maxCacheSize)
Constructs ...

Parameters:
dao -
maxCacheSize -
Method Detail

addStats

public void addStats(String name,
                     tigase.stats.StatisticsList stats)
Method description

Parameters:
name -
stats -

addToRootCollection

public void addToRootCollection(String nodeName)
                         throws RepositoryException
Method description

Specified by:
addToRootCollection in interface IPubSubRepository
Parameters:
nodeName -
Throws:
RepositoryException

createNode

public void createNode(String nodeName,
                       String ownerJid,
                       AbstractNodeConfig nodeConfig,
                       NodeType nodeType,
                       String collection)
                throws RepositoryException
Method description

Specified by:
createNode in interface IPubSubRepository
Parameters:
nodeName -
ownerJid -
nodeConfig -
nodeType -
collection -
Throws:
RepositoryException

deleteNode

public void deleteNode(String nodeName)
                throws RepositoryException
Method description

Specified by:
deleteNode in interface IPubSubRepository
Parameters:
nodeName -
Throws:
RepositoryException

destroy

public void destroy()
Method description

Specified by:
destroy in interface IPubSubRepository

forgetConfiguration

public void forgetConfiguration(String nodeName)
                         throws RepositoryException
Method description

Specified by:
forgetConfiguration in interface IPubSubRepository
Parameters:
nodeName -
Throws:
RepositoryException

getBuddyGroups

public String[] getBuddyGroups(tigase.xmpp.BareJID owner,
                               String bareJid)
                        throws RepositoryException
Method description

Specified by:
getBuddyGroups in interface IPubSubRepository
Parameters:
owner -
bareJid -
Returns:
Throws:
RepositoryException

getBuddySubscription

public String getBuddySubscription(tigase.xmpp.BareJID owner,
                                   String buddy)
                            throws RepositoryException
Method description

Specified by:
getBuddySubscription in interface IPubSubRepository
Parameters:
owner -
buddy -
Returns:
Throws:
RepositoryException

getNodeAffiliations

public IAffiliations getNodeAffiliations(String nodeName)
                                  throws RepositoryException
Method description

Specified by:
getNodeAffiliations in interface IPubSubRepository
Parameters:
nodeName -
Returns:
Throws:
RepositoryException

getNodeConfig

public AbstractNodeConfig getNodeConfig(String nodeName)
                                 throws RepositoryException
Method description

Specified by:
getNodeConfig in interface IPubSubRepository
Parameters:
nodeName -
Returns:
Throws:
RepositoryException

getNodeItems

public IItems getNodeItems(String nodeName)
                    throws RepositoryException
Method description

Specified by:
getNodeItems in interface IPubSubRepository
Parameters:
nodeName -
Returns:
Throws:
RepositoryException

getNodeSubscriptions

public ISubscriptions getNodeSubscriptions(String nodeName)
                                    throws RepositoryException
Method description

Specified by:
getNodeSubscriptions in interface IPubSubRepository
Parameters:
nodeName -
Returns:
Throws:
RepositoryException

getPubSubDAO

public IPubSubDAO getPubSubDAO()
Method description

Specified by:
getPubSubDAO in interface IPubSubRepository
Returns:

getRootCollection

public String[] getRootCollection()
                           throws RepositoryException
Method description

Specified by:
getRootCollection in interface IPubSubRepository
Returns:
Throws:
RepositoryException

getUserRoster

public String[] getUserRoster(tigase.xmpp.BareJID owner)
                       throws RepositoryException
Method description

Specified by:
getUserRoster in interface IPubSubRepository
Parameters:
owner -
Returns:
Throws:
RepositoryException

init

public void init()
Method description

Specified by:
init in interface IPubSubRepository

removeFromRootCollection

public void removeFromRootCollection(String nodeName)
                              throws RepositoryException
Method description

Specified by:
removeFromRootCollection in interface IPubSubRepository
Parameters:
nodeName -
Throws:
RepositoryException

update

public void update(String nodeName,
                   AbstractNodeConfig nodeConfig)
            throws RepositoryException
Method description

Specified by:
update in interface IPubSubRepository
Parameters:
nodeName -
nodeConfig -
Throws:
RepositoryException

update

public void update(String nodeName,
                   IAffiliations nodeAffiliations)
            throws RepositoryException
Method description

Specified by:
update in interface IPubSubRepository
Parameters:
nodeName -
nodeAffiliations -
Throws:
RepositoryException

update

public void update(String nodeName,
                   ISubscriptions nodeSubscriptions)
            throws RepositoryException
Method description

Specified by:
update in interface IPubSubRepository
Parameters:
nodeName -
nodeSubscriptions -
Throws:
RepositoryException


Copyright © 2008-2012 Tigase. All Rights Reserved.