|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jnp.interfaces.NamingContext
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 String |
DEFAULT_DISCOVERY_GROUP_ADDRESS
The default discovery multicast information |
static int |
DEFAULT_DISCOVERY_GROUP_PORT
|
static int |
DEFAULT_DISCOVERY_TIMEOUT
|
static Hashtable |
haServers
|
static String |
JNP_DISABLE_DISCOVERY
A flag to disable the broadcast discovery queries |
static String |
JNP_DISCOVERY_GROUP
The multicast IP/address to which the discovery query is sent |
static String |
JNP_DISCOVERY_PORT
The port to which the discovery query is sent |
static String |
JNP_DISCOVERY_TIMEOUT
The time in MS to wait for a discovery query response |
static String |
JNP_LOCAL_ADDRESS
The local address to bind the connected bootstrap socket to |
static String |
JNP_LOCAL_PORT
The local port to bind the connected bootstrap socket to |
static 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. |
static String |
JNP_PARSED_NAME
An internal property added by parseNameForScheme if the input name uses a url prefix that was removed during cannonicalization. |
static String |
JNP_PARTITION_NAME
The cluster partition discovery should be restricted to |
static String |
JNP_SOCKET_FACTORY
The javax.net.SocketFactory impl to use for the bootstrap socket |
static String |
JNP_USE_RELATIVE_NAME
A flag indicating the style of names passed to NamingManager method. |
static Naming |
localServer
|
static int |
MAX_RETRIES
An obsolete constant replaced by the JNP_MAX_RETRIES value |
Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Constructor Summary | |
NamingContext(Hashtable e,
Name baseName,
Naming server)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String JNP_SOCKET_FACTORY
public static final String JNP_LOCAL_ADDRESS
public static final String JNP_LOCAL_PORT
public static final String JNP_DISABLE_DISCOVERY
public static final String JNP_PARTITION_NAME
public static final String JNP_DISCOVERY_GROUP
public static final String JNP_DISCOVERY_PORT
public static final String JNP_DISCOVERY_TIMEOUT
public static final String JNP_PARSED_NAME
public static final String JNP_USE_RELATIVE_NAME
public static final String JNP_MAX_RETRIES
public static final String DEFAULT_DISCOVERY_GROUP_ADDRESS
public static final int DEFAULT_DISCOVERY_GROUP_PORT
public static final int DEFAULT_DISCOVERY_TIMEOUT
public static int MAX_RETRIES
public static Hashtable haServers
public static Naming localServer
Constructor Detail |
public NamingContext(Hashtable e, Name baseName, Naming server) throws NamingException
Method Detail |
public static void setHANamingServerForPartition(String partitionName, Naming haServer)
public static void removeHANamingServerForPartition(String partitionName)
public static Naming getHANamingServerForPartition(String partitionName)
public static void setLocal(Naming server)
public Naming getNaming()
public void setNaming(Naming server)
public void rebind(String name, Object obj) throws NamingException
NamingException
public void rebind(Name name, Object obj) throws NamingException
NamingException
public void bind(String name, Object obj) throws NamingException
NamingException
public void bind(Name name, Object obj) throws NamingException
NamingException
public Object lookup(String name) throws NamingException
NamingException
public Object lookup(Name name) throws NamingException
NamingException
public void unbind(String name) throws NamingException
NamingException
public void unbind(Name name) throws NamingException
NamingException
public void rename(String oldname, String newname) throws NamingException
NamingException
public void rename(Name oldName, Name newName) throws NamingException
NamingException
public NamingEnumeration list(String name) throws NamingException
NamingException
public NamingEnumeration list(Name name) throws NamingException
NamingException
public NamingEnumeration listBindings(String name) throws NamingException
listBindings
in interface Context
NamingException
public NamingEnumeration listBindings(Name name) throws NamingException
listBindings
in interface Context
NamingException
public String composeName(String name, String prefix) throws NamingException
composeName
in interface Context
NamingException
public Name composeName(Name name, Name prefix) throws NamingException
composeName
in interface Context
NamingException
public NameParser getNameParser(String name) throws NamingException
getNameParser
in interface Context
NamingException
public NameParser getNameParser(Name name) throws NamingException
getNameParser
in interface Context
NamingException
public Context createSubcontext(String name) throws NamingException
createSubcontext
in interface Context
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface Context
NamingException
public Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment
in interface Context
NamingException
public Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment
in interface Context
NamingException
public Hashtable getEnvironment() throws NamingException
getEnvironment
in interface Context
NamingException
public void close() throws NamingException
NamingException
public String getNameInNamespace() throws NamingException
getNameInNamespace
in interface Context
NamingException
public void destroySubcontext(String name) throws NamingException
destroySubcontext
in interface Context
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface Context
NamingException
public Object lookupLink(String name) throws NamingException
lookupLink
in interface Context
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface Context
NamingException
protected Object resolveLink(Object res, Hashtable refEnv) throws NamingException
NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |