|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Endpoint

A potential participant in a JBoss Remoting communications relationship.
This interface is part of the Remoting public API. It is intended to be consumed by Remoting applications; it is not intended to be implemented by them. Methods may be added to this interface in future minor releases without advance notice.
| Nested Class Summary | |
|---|---|
static class |
Endpoint.ListenerFlag
Flags which can be passed in to listener registration methods. |
static interface |
Endpoint.ServiceBuilder<I,O>
A service builder for new service registration. |
| Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable |
|---|
HandleableCloseable.Key |
| Method Summary | ||
|---|---|---|
ConnectionProviderRegistration |
addConnectionProvider(String uriScheme,
ConnectionProviderFactory providerFactory)
Register a connection provider for a URI scheme. |
|
|
addProtocolService(ProtocolServiceType<T> type,
String name,
T provider)
Register a protocol service. |
|
Registration |
addServiceRegistrationListener(ServiceRegistrationListener listener,
Set<Endpoint.ListenerFlag> flags)
Add a service registration listener which is called whenever a local service is registered. |
|
org.jboss.xnio.IoFuture<? extends Connection> |
connect(URI destination,
org.jboss.xnio.OptionMap connectOptions)
Open a connection with a peer. |
|
org.jboss.xnio.IoFuture<? extends Connection> |
connect(URI destination,
org.jboss.xnio.OptionMap connectOptions,
CallbackHandler callbackHandler)
Open a connection with a peer. |
|
org.jboss.xnio.IoFuture<? extends Connection> |
connect(URI destination,
org.jboss.xnio.OptionMap connectOptions,
String userName,
String realmName,
char[] password)
Open a connection with a peer. |
|
|
createClient(RequestHandler handler,
Class<I> requestClass,
Class<O> replyClass)
Create a client that uses the given request handler to handle its requests. |
|
|
createLocalRequestHandler(RequestListener<? super I,? extends O> requestListener,
Class<I> requestClass,
Class<O> replyClass)
Create a request handler that can be used to receive incoming requests on this endpoint. |
|
|
getConnectionProviderInterface(String uriScheme,
Class<T> expectedType)
Get the interface for a connection provider. |
|
String |
getName()
Get the name of this endpoint. |
|
Endpoint.ServiceBuilder<?,?> |
serviceBuilder()
Get a new service builder which can be used to register a service. |
|
|
serviceBuilder(Class<I> requestClass,
Class<O> replyClass)
Get a new service builder which can be used to register a service. |
|
| Methods inherited from interface org.jboss.remoting3.HandleableCloseable |
|---|
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close |
| Methods inherited from interface org.jboss.remoting3.Attachable |
|---|
getAttachments |
| Method Detail |
|---|
String getName()
null if there is no nameEndpoint.ServiceBuilder<?,?> serviceBuilder()
<I,O> Endpoint.ServiceBuilder<I,O> serviceBuilder(Class<I> requestClass,
Class<O> replyClass)
I - the request typeO - the reply typerequestClass - the request classreplyClass - the reply class
Registration addServiceRegistrationListener(ServiceRegistrationListener listener,
Set<Endpoint.ListenerFlag> flags)
addServiceListener EndpointPermission to invoke this method.
listener - the listenerflags - the flags to apply to the listener
<I,O> RequestHandler createLocalRequestHandler(RequestListener<? super I,? extends O> requestListener,
Class<I> requestClass,
Class<O> replyClass)
throws IOException
createRequestHandler EndpointPermission to invoke this method.
I - the request typeO - the reply typerequestListener - the request listenerrequestClass - the class of requests sent to this request listenerreplyClass - the class of replies received back from this request listener
IOException - if an error occurs
<I,O> Client<I,O> createClient(RequestHandler handler,
Class<I> requestClass,
Class<O> replyClass)
throws IOException
createClient EndpointPermission to invoke this method.
I - the request typeO - the reply typehandler - the request handlerrequestClass - the class of requests sent through this clientreplyClass - the class of replies received back through this client
IOException - if an error occurs
org.jboss.xnio.IoFuture<? extends Connection> connect(URI destination,
org.jboss.xnio.OptionMap connectOptions)
throws IOException
connect EndpointPermission to invoke this method.
destination - the destinationconnectOptions - options to configure this connection
IOException - if an error occurs while starting the connect attempt
org.jboss.xnio.IoFuture<? extends Connection> connect(URI destination,
org.jboss.xnio.OptionMap connectOptions,
CallbackHandler callbackHandler)
throws IOException
connect EndpointPermission to invoke this method.
destination - the destinationconnectOptions - options to configure this connectioncallbackHandler - the local callback handler to use for authentication
IOException - if an error occurs while starting the connect attempt
org.jboss.xnio.IoFuture<? extends Connection> connect(URI destination,
org.jboss.xnio.OptionMap connectOptions,
String userName,
String realmName,
char[] password)
throws IOException
connect EndpointPermission to invoke this method.
destination - the destinationconnectOptions - options to configure this connectionuserName - the user name to authenticate as, or null if it is unspecifiedrealmName - the user realm to authenticate with, or null if it is unspecifiedpassword - the password to send, or null if it is unspecified
IOException - if an error occurs while starting the connect attempt
ConnectionProviderRegistration addConnectionProvider(String uriScheme,
ConnectionProviderFactory providerFactory)
throws DuplicateRegistrationException
addConnectionProvider EndpointPermission to invoke this method.
uriScheme - the URI schemeproviderFactory - the provider factory
DuplicateRegistrationException - if there is already a provider registered to that URI scheme
<T> T getConnectionProviderInterface(String uriScheme,
Class<T> expectedType)
throws UnknownURISchemeException,
ClassCastException
getConnectionProviderInterface EndpointPermission to invoke this method.
T - the expected type of the interfaceuriScheme - the URI scheme of the registered connection providerexpectedType - the expected type of the interface
UnknownURISchemeException - if the given URI scheme is not registered
ClassCastException - if the interface type does not match the expected type
<T> Registration addProtocolService(ProtocolServiceType<T> type,
String name,
T provider)
throws DuplicateRegistrationException
T - the provider typetype - the type of service being registeredname - the name of the protocol providerprovider - the provider instance
DuplicateRegistrationException - if there is already a protocol registered to that name
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||