public final class RemoteNamingProvider extends Object implements NamingProvider
Modifier and Type | Method and Description |
---|---|
Endpoint |
getEndpoint()
Get the Remoting endpoint for this provider.
|
IoFuture<ConnectionPeerIdentity> |
getFuturePeerIdentity(URI location)
Get the future connection peer identity.
|
ConnectionPeerIdentity |
getPeerIdentity(URI location)
Get the connection peer identity.
|
ConnectionPeerIdentity |
getPeerIdentityForNaming()
Get the connection peer identity for a naming operation.
|
ConnectionPeerIdentity |
getPeerIdentityForNaming(URI location)
Get the connection peer identity for a naming operation.
|
ConnectionPeerIdentity |
getPeerIdentityForNamingUsingRetry(RetryContext context)
Get a peer identity to use for context operations, retrying on failure.
|
ProviderEnvironment |
getProviderEnvironment()
Get the provider environment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCurrentNamingProvider, performAction, performExceptionAction, performExceptionAction, throwNoMoreDestinationsException
public Endpoint getEndpoint()
null
)public ProviderEnvironment getProviderEnvironment()
NamingProvider
getProviderEnvironment
in interface NamingProvider
null
)public ConnectionPeerIdentity getPeerIdentityForNaming() throws NamingException
immediate
, then the connection
will not actually be established until this method is called. The resultant connection should be closed and
discarded in the event of an error, in order to facilitate automatic reconnection.getPeerIdentityForNaming
in interface NamingProvider
null
)NamingException
- if connecting, authenticating, or re-authenticating the peer failedpublic ConnectionPeerIdentity getPeerIdentityForNamingUsingRetry(RetryContext context) throws NamingException
NamingProvider
getPeerIdentityForNamingUsingRetry
in interface NamingProvider
context
- the retry context for storing state required when retryingnull
)NamingException
- if connecting, authenticating, or
re-authenticating the peer failedpublic ConnectionPeerIdentity getPeerIdentityForNaming(URI location) throws NamingException
immediate
, then the connection
will not actually be established until this method is called. The resultant connection should be closed and
discarded in the event of an error, in order to facilitate automatic reconnection.getPeerIdentityForNaming
in interface NamingProvider
location
- a location from ProviderEnvironment.getProviderUris()
(must not be null
)null
)NamingException
- if connecting, authenticating, or re-authenticating the peer failedpublic ConnectionPeerIdentity getPeerIdentity(URI location) throws IOException
immediate
, then the connection
will not actually be established until this method is called. The resultant connection should be closed and
discarded in the event of an error, in order to facilitate automatic reconnection.location
- a location from ProviderEnvironment.getProviderUris()
(must not be null
)null
)AuthenticationException
- if authenticating or re-authenticating the peer failedIOException
- if connecting the peer failedpublic IoFuture<ConnectionPeerIdentity> getFuturePeerIdentity(URI location)
immediate
, then the connection
will not actually be established until this method is called. The resultant connection should be closed and
discarded in the event of an error, in order to facilitate automatic reconnection.location
- a location from ProviderEnvironment.getProviderUris()
(must not be null
)null
)Copyright © 2019 JBoss by Red Hat. All rights reserved.