|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.remoting.HandleableCloseable |
|---|
HandleableCloseable.Key |
| Method Summary | ||
|---|---|---|
SimpleCloseable |
addServiceListener(ServiceListener serviceListener,
boolean onlyNew)
Add a listener for observing when local and remote services are added. |
|
|
createClient(RequestHandler handler,
Class<I> requestClass,
Class<O> replyClass)
Create a client that uses the given request handler to handle its requests. |
|
|
createClientSource(RequestHandlerSource handlerSource,
Class<I> requestClass,
Class<O> replyClass)
Create a client source that uses the given request handler source to generate clients. |
|
|
createRequestHandler(RequestListener<I,O> requestListener,
Class<I> requestClass,
Class<O> replyClass)
Create a request handler that can be used to receive incoming requests on this endpoint. |
|
ConcurrentMap<Object,Object> |
getAttributes()
Get the endpoint attribute map. |
|
String |
getName()
Get the name of this endpoint. |
|
|
locateService(URI serviceUri,
Class<I> requestClass,
Class<O> replyClass)
Attempt to locate a service. |
|
SimpleCloseable |
registerRemoteService(RemoteServiceConfiguration configuration)
Register a remotely available service. |
|
|
registerService(LocalServiceConfiguration<I,O> configuration)
Create a request handler source that can be used to acquire clients associated with a request listener on this endpoint. |
|
| Methods inherited from interface org.jboss.remoting.HandleableCloseable |
|---|
addCloseHandler, close |
| Method Detail |
|---|
ConcurrentMap<Object,Object> getAttributes()
String getName()
null if there is no name
<I,O> Handle<RequestHandler> createRequestHandler(RequestListener<I,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> Handle<RequestHandlerSource> registerService(LocalServiceConfiguration<I,O> configuration)
throws IOException
RequestHandler instances.
You must have the registerService EndpointPermission to invoke this method.
I - the request typeO - the reply typeconfiguration - the configuration to use
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
<I,O> ClientSource<I,O> createClientSource(RequestHandlerSource handlerSource,
Class<I> requestClass,
Class<O> replyClass)
throws IOException
createClientSource EndpointPermission to invoke this method.
I - the request typeO - the reply typehandlerSource - the request handler sourcerequestClass - the class of requests sent through this client sourcereplyClass - the class of replies received back through this client source
IOException - if an error occurs
<I,O> IoFuture<ClientSource<I,O>> locateService(URI serviceUri,
Class<I> requestClass,
Class<O> replyClass)
throws IllegalArgumentException
ClientSource.
I - the request typeO - the reply typeserviceUri - the URI of the servicerequestClass - the class of requests sent through the client sourcereplyClass - the class of replies received back through the client source
IllegalArgumentException - if the given URI is not a valid Remoting service URI
SimpleCloseable registerRemoteService(RemoteServiceConfiguration configuration)
throws IllegalArgumentException,
IOException
The remote endpoint must not have the same name as this endpoint. The group name and service type must be
non-null and non-empty. The metric must be greater than zero.
You must have the registerRemoteService EndpointPermission to invoke this method.
configuration - the remote service configuration
IllegalArgumentException - if one of the given arguments was not valid
IOException - if an error occurs with the registration
SimpleCloseable addServiceListener(ServiceListener serviceListener,
boolean onlyNew)
onlyNew to false)
or only services registered after the time of calling this method (set onlyNew to true).
You must have the addServiceListener EndpointPermission to invoke this method.
serviceListener - the listeneronlyNew - true if only new registrations should be sent to the listener
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||