|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.InvokerRegistry
InvokerRegistry is a simple registery for creating client and server side Invoker implementations, getting information about the invokers and register as a invoker creator for one or more specific transports.
Constructor Summary | |
InvokerRegistry()
|
Method Summary | |
static ClientInvoker |
createClientInvoker(InvokerLocator locator)
create a ClientInvoker instance, using the specific InvokerLocator, which is just a client-side invoker to a remote server. |
static ClientInvoker |
createClientInvoker(InvokerLocator locator,
java.util.Map configuration)
create a ClientInvoker instance, using the specific InvokerLocator, which is just a client-side invoker to a remote server |
static ServerInvoker |
createServerInvoker(InvokerLocator locator)
create a ServerInvoker instance, using the specific Invoker locator data and an implementation of the ServerInvocationHandler interface. |
static ServerInvoker |
createServerInvoker(InvokerLocator locator,
java.util.Map configuration)
create a ServerInvoker instance, using the specific Invoker locator data and an implementation of the ServerInvocationHandler interface along with |
static void |
destroyClientInvoker(InvokerLocator locator)
called to destroy any cached RemoteClientInvoker copies inside the registry. |
static void |
destroyServerInvoker(ServerInvoker invoker)
|
static ClientInvoker[] |
getClientInvokers()
return an array of ClientInvokers that are connected |
static java.lang.String[] |
getRegisteredInvokerTransports()
return an array of String of the registered transports |
static InvokerLocator[] |
getRegisteredServerLocators()
return an array of InvokerLocators that are local to this VM (server invokers) |
static ServerInvoker[] |
getServerInvokers()
return an array of ServerInvokers that are connected |
static InvokerLocator |
getSuitableServerLocatorForRemote(InvokerLocator remote)
return a suitable local server invoker that can service the remote invoker locator based on a compatible transport |
static boolean |
isClientInvokerRegistered(InvokerLocator locator)
returns true if the client invoker is registered in the local JVM for a given locator |
static boolean |
isServerInvokerRegistered(InvokerLocator locator)
returns true if the server invoker is registered in the local JVM for a given locator/handler pair |
static void |
registerInvoker(java.lang.String transport,
java.lang.Class client,
java.lang.Class server)
register a client/server invoker Class pair for a given transport |
static void |
registerInvoker(java.lang.String transport,
java.lang.String clientClassName,
java.lang.String serverClassName)
register a client/server invoker Class pair for a given transport |
static void |
unregisterInvoker(java.lang.String transport)
unregister a client/server invoker pair for the given transport |
static void |
unregisterLocator(InvokerLocator locator)
|
static void |
updateServerInvokerLocator(InvokerLocator locator,
InvokerLocator newLocator)
This is needed by the ServerInvoker since it may change the port being used (if port specified was <= 0) to next available port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InvokerRegistry()
Method Detail |
public static final InvokerLocator[] getRegisteredServerLocators()
public static InvokerLocator getSuitableServerLocatorForRemote(InvokerLocator remote)
remote
-
public static final java.lang.String[] getRegisteredInvokerTransports()
public static final ClientInvoker[] getClientInvokers()
public static final ServerInvoker[] getServerInvokers()
public static void registerInvoker(java.lang.String transport, java.lang.String clientClassName, java.lang.String serverClassName)
transport
- clientClassName
- serverClassName
- public static void registerInvoker(java.lang.String transport, java.lang.Class client, java.lang.Class server)
transport
- client
- server
- public static void unregisterInvoker(java.lang.String transport)
transport
- public static void unregisterLocator(InvokerLocator locator)
public static boolean isClientInvokerRegistered(InvokerLocator locator)
locator
-
public static void destroyClientInvoker(InvokerLocator locator)
locator
- public static ClientInvoker createClientInvoker(InvokerLocator locator) throws java.lang.Exception
locator
-
java.lang.Exception
public static ClientInvoker createClientInvoker(InvokerLocator locator, java.util.Map configuration) throws java.lang.Exception
locator
-
java.lang.Exception
public static boolean isServerInvokerRegistered(InvokerLocator locator)
locator
-
public static ServerInvoker createServerInvoker(InvokerLocator locator) throws java.lang.Exception
locator
-
java.lang.Exception
public static ServerInvoker createServerInvoker(InvokerLocator locator, java.util.Map configuration) throws java.lang.Exception
locator
-
java.lang.Exception
public static void destroyServerInvoker(ServerInvoker invoker)
public static void updateServerInvokerLocator(InvokerLocator locator, InvokerLocator newLocator)
locator
- newLocator
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |