org.jboss.ha.jndi.impl.jbc
Class JBossCacheDistributedTreeManager

java.lang.Object
  extended by org.jboss.ha.jndi.impl.jbc.JBossCacheDistributedTreeManager
All Implemented Interfaces:
Remote, org.jboss.ha.jndi.spi.DistributedTreeManager, org.jnp.interfaces.Naming

public class JBossCacheDistributedTreeManager
extends Object
implements org.jnp.interfaces.Naming, org.jboss.ha.jndi.spi.DistributedTreeManager

This class utilizes JBossCache to provide a DistributedTreeManager implementation.

Version:
$Revision: 74736 $
Author:
Jerry Gauthier, Brian Stansberry

Field Summary
protected  boolean acquiredCache
           
protected  HAPartitionCacheHandlerImpl cacheHandler
           
static String DEFAULT_ROOT
           
 
Constructor Summary
JBossCacheDistributedTreeManager()
           
 
Method Summary
 void bind(Name name, Object obj, String className)
           
 Context createSubcontext(Name name)
           
 HAPartitionCacheHandlerImpl getCacheHandler()
           
 org.jboss.cache.Cache<String,Binding> getClusteredCache()
           
 org.jnp.interfaces.Naming getHAStub()
           
 String getRootFqn()
           
 void init()
           
 Collection<NameClassPair> list(Name name)
           
 Collection<Binding> listBindings(Name name)
           
 Object lookup(Name name)
           
 void rebind(Name name, Object obj, String className)
           
 void setCacheHandler(HAPartitionCacheHandlerImpl cacheHandler)
           
 void setClusteredCache(org.jboss.cache.Cache<String,Binding> cache)
           
 void setHAStub(org.jnp.interfaces.Naming stub)
           
 void setRootFqn(String rootFqn)
           
 void shutdown()
           
 void unbind(Name name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ROOT

public static final String DEFAULT_ROOT
See Also:
Constant Field Values

cacheHandler

protected HAPartitionCacheHandlerImpl cacheHandler

acquiredCache

protected boolean acquiredCache
Constructor Detail

JBossCacheDistributedTreeManager

public JBossCacheDistributedTreeManager()
Method Detail

getCacheHandler

public HAPartitionCacheHandlerImpl getCacheHandler()

setCacheHandler

public void setCacheHandler(HAPartitionCacheHandlerImpl cacheHandler)

getClusteredCache

public org.jboss.cache.Cache<String,Binding> getClusteredCache()

setClusteredCache

public void setClusteredCache(org.jboss.cache.Cache<String,Binding> cache)

setRootFqn

public void setRootFqn(String rootFqn)

getRootFqn

public String getRootFqn()

init

public void init()
Specified by:
init in interface org.jboss.ha.jndi.spi.DistributedTreeManager

shutdown

public void shutdown()
Specified by:
shutdown in interface org.jboss.ha.jndi.spi.DistributedTreeManager

getHAStub

public org.jnp.interfaces.Naming getHAStub()
Specified by:
getHAStub in interface org.jboss.ha.jndi.spi.DistributedTreeManager

setHAStub

public void setHAStub(org.jnp.interfaces.Naming stub)
Specified by:
setHAStub in interface org.jboss.ha.jndi.spi.DistributedTreeManager

bind

public void bind(Name name,
                 Object obj,
                 String className)
          throws NamingException
Specified by:
bind in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
bind in interface org.jnp.interfaces.Naming
Throws:
NamingException

rebind

public void rebind(Name name,
                   Object obj,
                   String className)
            throws NamingException
Specified by:
rebind in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
rebind in interface org.jnp.interfaces.Naming
Throws:
NamingException

unbind

public void unbind(Name name)
            throws NamingException
Specified by:
unbind in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
unbind in interface org.jnp.interfaces.Naming
Throws:
NamingException

lookup

public Object lookup(Name name)
              throws NamingException
Specified by:
lookup in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
lookup in interface org.jnp.interfaces.Naming
Throws:
NamingException

list

public Collection<NameClassPair> list(Name name)
                               throws NamingException
Specified by:
list in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
list in interface org.jnp.interfaces.Naming
Throws:
NamingException

listBindings

public Collection<Binding> listBindings(Name name)
                                 throws NamingException
Specified by:
listBindings in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
listBindings in interface org.jnp.interfaces.Naming
Throws:
NamingException

createSubcontext

public Context createSubcontext(Name name)
                         throws NamingException
Specified by:
createSubcontext in interface org.jboss.ha.jndi.spi.DistributedTreeManager
Specified by:
createSubcontext in interface org.jnp.interfaces.Naming
Throws:
NamingException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.