|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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
NamingExceptionpublic void rebind(Name name, Object obj) throws NamingException
NamingExceptionpublic void bind(String name, Object obj) throws NamingException
NamingExceptionpublic void bind(Name name, Object obj) throws NamingException
NamingExceptionpublic Object lookup(String name) throws NamingException
NamingExceptionpublic Object lookup(Name name) throws NamingException
NamingExceptionpublic void unbind(String name) throws NamingException
NamingExceptionpublic void unbind(Name name) throws NamingException
NamingExceptionpublic void rename(String oldname, String newname) throws NamingException
NamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
NamingExceptionpublic NamingEnumeration list(String name) throws NamingException
NamingExceptionpublic NamingEnumeration list(Name name) throws NamingException
NamingExceptionpublic NamingEnumeration listBindings(String name) throws NamingException
listBindings in interface ContextNamingExceptionpublic NamingEnumeration listBindings(Name name) throws NamingException
listBindings in interface ContextNamingExceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingExceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingExceptionpublic Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingExceptionpublic Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment in interface ContextNamingExceptionpublic Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment in interface ContextNamingExceptionpublic Hashtable getEnvironment() throws NamingException
getEnvironment in interface ContextNamingException
public void close()
throws NamingException
NamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionpublic void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingExceptionpublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingExceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingExceptionprotected 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 | ||||||||||