|
JBoss Remoting 3.0.0.Beta2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.Remoting
public final class Remoting
The standalone interface into Remoting. This class contains static methods that are useful to standalone programs for managing endpoints and services in a simple fashion.
Method Summary | ||
---|---|---|
static Endpoint |
createEndpoint(Executor executor,
String name)
Create an endpoint using the given Executor to execute tasks. |
|
static Endpoint |
createEndpoint(String name)
Create an endpoint. |
|
static Endpoint |
createEndpoint(String name,
int maxThreads)
Create an endpoint. |
|
static CloseableExecutor |
createExecutor(int maxThreads)
Create a simple thread pool that is compatible with Remoting. |
|
static
|
createLocalClient(Endpoint endpoint,
RequestListener<I,O> requestListener,
Class<I> requestClass,
Class<O> replyClass)
Create a local client from a request listener. |
|
static
|
createLocalClientSource(Endpoint endpoint,
LocalServiceConfiguration<I,O> config)
Create a local client source from a local service configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Endpoint createEndpoint(String name)
name
- the name of the endpoint
public static Endpoint createEndpoint(String name, int maxThreads)
maxThreads
threads.
name
- the name of the endpointmaxThreads
- the maximum thread count
public static CloseableExecutor createExecutor(int maxThreads)
maxThreads
threads.
maxThreads
- the maximum thread count
public static Endpoint createEndpoint(Executor executor, String name)
Executor
to execute tasks.
executor
- the executor to usename
- the name of the endpoint
public static <I,O> Client<I,O> createLocalClient(Endpoint endpoint, RequestListener<I,O> requestListener, Class<I> requestClass, Class<O> replyClass) throws IOException
I
- the request typeO
- the reply typeendpoint
- the endpoint to bind the request listener torequestListener
- the request listenerrequestClass
- the request classreplyClass
- the reply class
IOException
- if an error occurspublic static <I,O> ClientSource<I,O> createLocalClientSource(Endpoint endpoint, LocalServiceConfiguration<I,O> config) throws IOException
I
- the request typeO
- the reply typeendpoint
- the endpoint to bind the service toconfig
- the service configuration
IOException
- if an error occurs
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |