| java.lang.Object org.jnp.interfaces.NamingContext
NamingContext | public class NamingContext implements Context,java.io.Serializable(Code) | | 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
author: oberg author: scott.stark@jboss.org version: $Revision: 63339 $ |
Method Summary | |
static void | addServer(String name, Naming server) | public Object | addToEnvironment(String propName, Object propVal) | public void | bind(String name, Object obj) | public void | bind(Name name, Object obj) | public void | close() | public String | composeName(String name, String prefix) | public Name | composeName(Name name, Name prefix) | public Context | createSubcontext(String name) | public Context | createSubcontext(Name name) | public void | destroySubcontext(String name) | public void | destroySubcontext(Name name) | public Hashtable | getEnvironment() | public static Naming | getHANamingServerForPartition(String partitionName) | public String | getNameInNamespace() | public NameParser | getNameParser(String name) | public NameParser | getNameParser(Name name) | public Naming | getNaming() | static Naming | getServer(String host, int port, Hashtable serverEnv) | public NamingEnumeration | list(String name) | public NamingEnumeration | list(Name name) | public NamingEnumeration | listBindings(String name) | public NamingEnumeration | listBindings(Name name) | static SocketFactory | loadSocketFactory(Hashtable serverEnv) Create a SocketFactory based on the JNP_SOCKET_FACTORY property in the
given env. | public Object | lookup(String name) | public Object | lookup(Name name) | public Object | lookupLink(String name) | public Object | lookupLink(Name name) Lookup the object referred to by name but don't dereferrence the final
component. | static String | parseNameForScheme(Name n, Hashtable nameEnv) Called to remove any url scheme atoms and extract the naming service
hostname:port information.
Parameters: n - the name component to the parsed. | public void | rebind(String name, Object obj) | public void | rebind(Name name, Object obj) | public Object | removeFromEnvironment(String propName) | public static void | removeHANamingServerForPartition(String partitionName) | static void | removeServer(Hashtable serverEnv) | public void | rename(String oldname, String newname) | public void | rename(Name oldName, Name newName) | protected Object | resolveLink(Object res, Hashtable refEnv) | public static void | setHANamingServerForPartition(String partitionName, Naming haServer) | public static void | setLocal(Naming server) | public void | setNaming(Naming server) | public void | unbind(String name) | public void | unbind(Name name) |
DEFAULT_DISCOVERY_GROUP_ADDRESS | final public static String DEFAULT_DISCOVERY_GROUP_ADDRESS(Code) | | The default discovery multicast information
|
DEFAULT_DISCOVERY_GROUP_PORT | final public static int DEFAULT_DISCOVERY_GROUP_PORT(Code) | | |
DEFAULT_DISCOVERY_TIMEOUT | final public static int DEFAULT_DISCOVERY_TIMEOUT(Code) | | |
JNP_DISABLE_DISCOVERY | final public static String JNP_DISABLE_DISCOVERY(Code) | | A flag to disable the broadcast discovery queries
|
JNP_DISCOVERY_GROUP | final public static String JNP_DISCOVERY_GROUP(Code) | | The multicast IP/address to which the discovery query is sent
|
JNP_DISCOVERY_PORT | final public static String JNP_DISCOVERY_PORT(Code) | | The port to which the discovery query is sent
|
JNP_DISCOVERY_TIMEOUT | final public static String JNP_DISCOVERY_TIMEOUT(Code) | | The time in MS to wait for a discovery query response
|
JNP_DISCOVERY_TTL | final public static String JNP_DISCOVERY_TTL(Code) | | The time-to-live for the multicast discovery packets
|
JNP_LOCAL_ADDRESS | final public static String JNP_LOCAL_ADDRESS(Code) | | The local address to bind the connected bootstrap socket to
|
JNP_LOCAL_PORT | final public static String JNP_LOCAL_PORT(Code) | | The local port to bind the connected bootstrap socket to
|
JNP_MAX_RETRIES | final public static String JNP_MAX_RETRIES(Code) | | 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.
|
JNP_PARSED_NAME | final public static String JNP_PARSED_NAME(Code) | | 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.
|
JNP_PARTITION_NAME | final public static String JNP_PARTITION_NAME(Code) | | The cluster partition discovery should be restricted to
|
JNP_SOCKET_FACTORY | final public static String JNP_SOCKET_FACTORY(Code) | | The javax.net.SocketFactory impl to use for the bootstrap socket
|
JNP_USE_RELATIVE_NAME | final public static String JNP_USE_RELATIVE_NAME(Code) | | 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.
|
MAX_RETRIES | public static int MAX_RETRIES(Code) | | An obsolete constant replaced by the JNP_MAX_RETRIES value
|
serialVersionUID | final static long serialVersionUID(Code) | | since: 1.7 |
getHANamingServerForPartition | public static Naming getHANamingServerForPartition(String partitionName)(Code) | | |
lookupLink | public Object lookupLink(Name name) throws NamingException(Code) | | 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.
the raw object bound under name. |
parseNameForScheme | static String parseNameForScheme(Name n, Hashtable nameEnv) throws InvalidNameException(Code) | | Called to remove any url scheme atoms and extract the naming service
hostname:port information.
Parameters: n - the name component to the parsed. After returning n will have allscheme related atoms removed. the naming service hostname:port information string if namecontained the host information. |
removeHANamingServerForPartition | public static void removeHANamingServerForPartition(String partitionName)(Code) | | |
setHANamingServerForPartition | public static void setHANamingServerForPartition(String partitionName, Naming haServer)(Code) | | |
|
|