public class NamingContext extends Object implements EventContext, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DISCOVERY_GROUP_ADDRESS
The default discovery multicast information
|
static int |
DEFAULT_DISCOVERY_GROUP_PORT |
static int |
DEFAULT_DISCOVERY_TIMEOUT |
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_DISCOVERY_TTL
The time-to-live for the multicast discovery packets
|
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_NAMING_INSTANCE
The Naming instance to use for the root Context creation
|
static String |
JNP_NAMING_INSTANCE_NAME
The name to associate with Naming instance to use for the root Context
|
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 int |
MAX_RETRIES
An obsolete constant replaced by the JNP_MAX_RETRIES value
|
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPEAPPLET, 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 and Description |
|---|
NamingContext(Hashtable e,
Name baseName,
Naming server) |
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_TTL
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 JNP_NAMING_INSTANCE
public static final String JNP_NAMING_INSTANCE_NAME
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 NamingContext(Hashtable e, Name baseName, Naming server) throws NamingException
NamingExceptionpublic static void setHANamingServerForPartition(String partitionName, Naming haServer)
public static void removeHANamingServerForPartition(String partitionName)
public static Naming getHANamingServerForPartition(String partitionName)
public static Naming getLocal()
public static void setLocal(Naming server)
public Naming getNaming()
public void setNaming(Naming server)
public void rebind(String name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionpublic void rebind(Name name, Object obj) throws NamingException
rebind in interface ContextNamingExceptionpublic void bind(String name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic void bind(Name name, Object obj) throws NamingException
bind in interface ContextNamingExceptionpublic Object lookup(String name) throws NamingException
lookup in interface ContextNamingExceptionpublic Object lookup(Name name) throws NamingException
lookup in interface ContextNamingExceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingExceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingExceptionpublic void rename(String oldname, String newname) throws NamingException
rename in interface ContextNamingExceptionpublic void rename(Name oldName, Name newName) throws NamingException
rename in interface ContextNamingExceptionpublic NamingEnumeration list(String name) throws NamingException
list in interface ContextNamingExceptionpublic NamingEnumeration list(Name name) throws NamingException
list in interface ContextNamingExceptionpublic 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 ContextNamingExceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionpublic 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 ContextNamingExceptionpublic void addNamingListener(Name target, int scope, NamingListener l) throws NamingException
addNamingListener in interface EventContextNamingExceptionpublic void addNamingListener(String target, int scope, NamingListener l) throws NamingException
addNamingListener in interface EventContextNamingExceptionpublic void removeNamingListener(NamingListener l) throws NamingException
removeNamingListener in interface EventContextNamingExceptionpublic boolean targetMustExist()
throws NamingException
targetMustExist in interface EventContextNamingExceptionprotected Object resolveLink(Object res, Hashtable refEnv) throws NamingException
NamingExceptionprotected boolean shouldDiscoveryHappen(boolean globalDisableDiscovery,
String perCtxDisableDiscovery)
Copyright © 2016 JBoss by Red Hat. All rights reserved.