Save This Page
Home » jnpserver-sources » org.jnp.interfaces » [javadoc | source]
org.jnp.interfaces
public class: NamingContext [javadoc | source]
java.lang.Object
   org.jnp.interfaces.NamingContext

All Implemented Interfaces:
    EventContext, Serializable

This class provides the jnp provider Context implementation. It is a Context interface wrapper for a RMI Naming instance that is obtained from either the local server instance or by locating the server given by the Context.PROVIDER_URL value. This class also serves as the jnp url resolution context. jnp style urls passed to the
Field Summary
static final  long serialVersionUID   
    since: 1.7 -
 
public static final  String JNP_SOCKET_FACTORY    The javax.net.SocketFactory impl to use for the bootstrap socket 
public static final  String JNP_LOCAL_ADDRESS    The local address to bind the connected bootstrap socket to 
public static final  String JNP_LOCAL_PORT    The local port to bind the connected bootstrap socket to 
public static final  String JNP_DISABLE_DISCOVERY    A flag to disable the broadcast discovery queries 
public static final  String JNP_PARTITION_NAME    The cluster partition discovery should be restricted to 
public static final  String JNP_DISCOVERY_GROUP    The multicast IP/address to which the discovery query is sent 
public static final  String JNP_DISCOVERY_PORT    The port to which the discovery query is sent 
public static final  String JNP_DISCOVERY_TTL    The time-to-live for the multicast discovery packets 
public static final  String JNP_DISCOVERY_TIMEOUT    The time in MS to wait for a discovery query response 
public static final  String JNP_PARSED_NAME    An internal property added by parseNameForScheme if the input name uses a url prefix that was removed during cannonicalization. This is needed to avoid modification of the incoming Name. 
public static final  String JNP_USE_RELATIVE_NAME    A flag indicating the style of names passed to NamingManager method. True for api expected relative names, false for absolute names as used historically by the jboss naming implementation. 
public static final  String JNP_MAX_RETRIES    An integer that controls the number of connection retry attempts will be made on the initial connection to the naming server. This only applies to ConnectException failures. A value <= 1 means that only one attempt will be made. 
public static final  String JNP_NAMING_INSTANCE    The Naming instance to use for the root Context creation 
public static final  String JNP_NAMING_INSTANCE_NAME    The name to associate with Naming instance to use for the root Context 
public static final  String DEFAULT_DISCOVERY_GROUP_ADDRESS    The default discovery multicast information 
public static final  int DEFAULT_DISCOVERY_GROUP_PORT     
public static final  int DEFAULT_DISCOVERY_TIMEOUT     
public static  int MAX_RETRIES    An obsolete constant replaced by the JNP_MAX_RETRIES value 
 Naming naming     
 Hashtable env     
 Name prefix     
 NameParser parser     
static  ConcurrentHashMap<Naming> cachedServers     
Constructor:
 public NamingContext(Hashtable e,
    Name baseName,
    Naming server) throws NamingException 
Method from org.jnp.interfaces.NamingContext Summary:
addNamingListener,   addNamingListener,   addServer,   addServer,   addToEnvironment,   bind,   bind,   close,   composeName,   composeName,   createSubcontext,   createSubcontext,   destroySubcontext,   destroySubcontext,   getEnvironment,   getHANamingServerForPartition,   getLocal,   getNameInNamespace,   getNameParser,   getNameParser,   getNaming,   getServer,   list,   list,   listBindings,   listBindings,   loadSocketFactory,   lookup,   lookup,   lookupLink,   lookupLink,   parseNameForScheme,   rebind,   rebind,   removeFromEnvironment,   removeHANamingServerForPartition,   removeNamingListener,   removeServer,   rename,   rename,   resolveLink,   setHANamingServerForPartition,   setLocal,   setNaming,   shouldDiscoveryHappen,   targetMustExist,   unbind,   unbind
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jnp.interfaces.NamingContext Detail:
 public  void addNamingListener(Name target,
    int scope,
    NamingListener l) throws NamingException 
 public  void addNamingListener(String target,
    int scope,
    NamingListener l) throws NamingException 
 static  void addServer(String name,
    Naming server) 
Deprecated! use - #addServer(InetSocketAddress, Naming)

 static  void addServer(InetSocketAddress addr,
    Naming server) 
 public Object addToEnvironment(String propName,
    Object propVal) throws NamingException 
 public  void bind(String name,
    Object obj) throws NamingException 
 public  void bind(Name name,
    Object obj) throws NamingException 
 public  void close() throws NamingException 
 public String composeName(String name,
    String prefix) throws NamingException 
 public Name composeName(Name name,
    Name prefix) throws NamingException 
 public Context createSubcontext(String name) throws NamingException 
 public Context createSubcontext(Name name) throws NamingException 
 public  void destroySubcontext(String name) throws NamingException 
 public  void destroySubcontext(Name name) throws NamingException 
 public Hashtable getEnvironment() throws NamingException 
 public static Naming getHANamingServerForPartition(String partitionName) 
 public static Naming getLocal() 
 public String getNameInNamespace() throws NamingException 
 public NameParser getNameParser(String name) throws NamingException 
 public NameParser getNameParser(Name name) throws NamingException 
 public Naming getNaming() 
 static Naming getServer(String host,
    int port,
    Hashtable serverEnv) throws NamingException 
 public NamingEnumeration list(String name) throws NamingException 
 public NamingEnumeration list(Name name) throws NamingException 
 public NamingEnumeration listBindings(String name) throws NamingException 
 public NamingEnumeration listBindings(Name name) throws NamingException 
 static SocketFactory loadSocketFactory(Hashtable serverEnv) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException 
    Create a SocketFactory based on the JNP_SOCKET_FACTORY property in the given env. If JNP_SOCKET_FACTORY is not specified default to the TimedSocketFactory.
 public Object lookup(String name) throws NamingException 
 public Object lookup(Name name) throws NamingException 
 public Object lookupLink(String name) throws NamingException 
 public Object lookupLink(Name name) throws NamingException 
    Lookup the object referred to by name but don't dereferrence the final component. This really just involves returning the raw value returned by the Naming.lookup() method.
 static String parseNameForScheme(Name n,
    Hashtable nameEnv) throws InvalidNameException 
    Called to remove any url scheme atoms and extract the naming service hostname:port information.
 public  void rebind(String name,
    Object obj) throws NamingException 
 public  void rebind(Name name,
    Object obj) throws NamingException 
 public Object removeFromEnvironment(String propName) throws NamingException 
 public static  void removeHANamingServerForPartition(String partitionName) 
 public  void removeNamingListener(NamingListener l) throws NamingException 
 static  void removeServer(Hashtable serverEnv) 
 public  void rename(String oldname,
    String newname) throws NamingException 
 public  void rename(Name oldName,
    Name newName) throws NamingException 
 protected Object resolveLink(Object res,
    Hashtable refEnv) throws NamingException 
 public static  void setHANamingServerForPartition(String partitionName,
    Naming haServer) 
 public static  void setLocal(Naming server) 
 public  void setNaming(Naming server) 
 protected boolean shouldDiscoveryHappen(boolean globalDisableDiscovery,
    String perCtxDisableDiscovery) 
 public boolean targetMustExist() throws NamingException 
 public  void unbind(String name) throws NamingException 
 public  void unbind(Name name) throws NamingException