org.jboss.ha.jndi.spi
Interface DistributedTreeManager


public interface DistributedTreeManager

Manages distributed tree operations for HAJNDI.

Author:
Brian Stansberry

Method Summary
 void bind(Name name, Object obj, String className)
          Bind an object in the distribute tree
 Context createSubcontext(Name name)
          Create a subcontext in the distributed tree
 org.jnp.interfaces.Naming getHAStub()
          Get the Naming object relative to which context's are created
 void init()
          Initializes the DistributedTreeManager
 Collection<NameClassPair> list(Name name)
          List the binding in the distributed tree
 Collection<Binding> listBindings(Name name)
          List the bindings in the distributed tree
 Object lookup(Name name)
          Lookup an object in the distributed tree.
 void rebind(Name name, Object obj, String className)
          Re-bind an object in the distribute tree
 void setHAStub(org.jnp.interfaces.Naming stub)
          Set the Naming object relative to which context's are created
 void shutdown()
          Shuts down the DistributedTreeManager
 void unbind(Name name)
          Unbind an object from the distributed tree
 

Method Detail

init

void init()
Initializes the DistributedTreeManager


shutdown

void shutdown()
Shuts down the DistributedTreeManager


bind

void bind(Name name,
          Object obj,
          String className)
          throws NamingException
Bind an object in the distribute tree

Throws:
NamingException

rebind

void rebind(Name name,
            Object obj,
            String className)
            throws NamingException
Re-bind an object in the distribute tree

Throws:
NamingException

unbind

void unbind(Name name)
            throws NamingException
Unbind an object from the distributed tree

Throws:
NamingException

lookup

Object lookup(Name name)
              throws NamingException
Lookup an object in the distributed tree. Does not throw NameNotFoundException if nothing is bound under name; instead it returns null.

Parameters:
name - the name
Returns:
the object bound or null
Throws:
NamingException

list

Collection<NameClassPair> list(Name name)
                               throws NamingException
List the binding in the distributed tree

Throws:
NamingException

listBindings

Collection<Binding> listBindings(Name name)
                                 throws NamingException
List the bindings in the distributed tree

Throws:
NamingException

createSubcontext

Context createSubcontext(Name name)
                         throws NamingException
Create a subcontext in the distributed tree

Throws:
NamingException

getHAStub

org.jnp.interfaces.Naming getHAStub()
Get the Naming object relative to which context's are created


setHAStub

void setHAStub(org.jnp.interfaces.Naming stub)
Set the Naming object relative to which context's are created



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