public class HaRemoteNamingStore extends Object implements RemoteNamingStore
Constructor and Description |
---|
HaRemoteNamingStore(List<RemoteNamingStoreConnectionInfo> namingStoreConnections,
boolean randomServer) |
HaRemoteNamingStore(long channelCreationTimeoutInMillis,
OptionMap channelCreationOptions,
long connectionTimeout,
CallbackHandler callbackHandler,
OptionMap connectOptions,
List<URI> connectionURIs,
Endpoint clientEndpoint,
boolean randomServer) |
Modifier and Type | Method and Description |
---|---|
void |
addEjbContext(CurrentEjbClientConnection connection) |
void |
bind(Name name,
Object object) |
void |
close() |
void |
closeAsync() |
Context |
createSubcontext(Name name) |
void |
destroySubcontext(Name name) |
List<NameClassPair> |
list(Name name) |
List<Binding> |
listBindings(Name name) |
Object |
lookup(Name name) |
Object |
lookupLink(Name name) |
void |
rebind(Name name,
Object object) |
void |
removeEjbContext(CurrentEjbClientConnection connection) |
void |
rename(Name name,
Name object) |
void |
unbind(Name name) |
public HaRemoteNamingStore(long channelCreationTimeoutInMillis, OptionMap channelCreationOptions, long connectionTimeout, CallbackHandler callbackHandler, OptionMap connectOptions, List<URI> connectionURIs, Endpoint clientEndpoint, boolean randomServer)
channelCreationTimeoutInMillis
- The channel creation timeout in milli secchannelCreationOptions
- The channel creation optionsconnectionTimeout
- The connection creation timeout in milli seccallbackHandler
- The callback handlerconnectOptions
- The connection creation optionsconnectionURIs
- The connection URIsclientEndpoint
- The client EndpointrandomServer
- True if a random connection URI has to be picked, from among the passed
connectionURIs
for establishing the first connectionpublic HaRemoteNamingStore(List<RemoteNamingStoreConnectionInfo> namingStoreConnections, boolean randomServer)
namingStoreConnections
- The connection information to the destination server(s). Cannot be null or emptyrandomServer
- True if a random connection URI has to be picked, from among the passed
namingStoreConnections
for establishing the first connectionpublic Object lookup(Name name) throws NamingException
lookup
in interface RemoteNamingStore
NamingException
public void bind(Name name, Object object) throws NamingException
bind
in interface RemoteNamingStore
NamingException
public void rebind(Name name, Object object) throws NamingException
rebind
in interface RemoteNamingStore
NamingException
public void rename(Name name, Name object) throws NamingException
rename
in interface RemoteNamingStore
NamingException
public List<NameClassPair> list(Name name) throws NamingException
list
in interface RemoteNamingStore
NamingException
public List<Binding> listBindings(Name name) throws NamingException
listBindings
in interface RemoteNamingStore
NamingException
public void unbind(Name name) throws NamingException
unbind
in interface RemoteNamingStore
NamingException
public Context createSubcontext(Name name) throws NamingException
createSubcontext
in interface RemoteNamingStore
NamingException
public void destroySubcontext(Name name) throws NamingException
destroySubcontext
in interface RemoteNamingStore
NamingException
public Object lookupLink(Name name) throws NamingException
lookupLink
in interface RemoteNamingStore
NamingException
public void close() throws NamingException
close
in interface RemoteNamingStore
NamingException
public void closeAsync()
closeAsync
in interface RemoteNamingStore
public void addEjbContext(CurrentEjbClientConnection connection)
addEjbContext
in interface RemoteNamingStore
public void removeEjbContext(CurrentEjbClientConnection connection)
removeEjbContext
in interface RemoteNamingStore
Copyright © 2018 JBoss by Red Hat. All rights reserved.