org.jboss.ha.jndi
Class HAJNDI
java.lang.Object
org.jboss.ha.jndi.HAJNDI
- All Implemented Interfaces:
- Remote, org.jnp.interfaces.Naming
public class HAJNDI
- extends Object
- implements org.jnp.interfaces.Naming
Provides the Naming implemenation. Lookups will look for Names in
the injected DistributedTreeManager and if not found will distributedTreeManager to the local
InitialContext. If still not found, a group RPC will be sent to the cluster
using the provided partition. All other Naming operations distributedTreeManager to the
DistributedTreeManager.
- Version:
- $Revision: 87434 $
- Author:
- Bill Burke, Scott.Stark@jboss.org, Brian Stansberry, Galder ZamarreƱo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAJNDI
public HAJNDI(org.jboss.ha.framework.interfaces.HAPartition partition,
org.jboss.ha.jndi.spi.DistributedTreeManager distributedTreeManager,
org.jnp.interfaces.Naming localNamingInstance)
init
public void init()
shutdown
public void shutdown()
lookupLocally
public Object lookupLocally(Name name)
throws NamingException
- Performs a lookup against the local Naming service. This method is only
public so HAPartition can invoke on it via reflection.
- Parameters:
name
- the name
- Returns:
- the object bound locally under name
- Throws:
NamingException
bind
public void bind(Name name,
Object obj,
String className)
throws NamingException
- 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.jnp.interfaces.Naming
- Throws:
NamingException
unbind
public void unbind(Name name)
throws NamingException
- 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.jnp.interfaces.Naming
- Throws:
NamingException
list
public Collection<NameClassPair> list(Name name)
throws NamingException
- 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.jnp.interfaces.Naming
- Throws:
NamingException
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
- Specified by:
createSubcontext
in interface org.jnp.interfaces.Naming
- Throws:
NamingException
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.