|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RpcTreeCacheMBean
MBean interface for the RpcTreeCache
.
Field Summary |
---|
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary | |
---|---|
java.util.List |
callRemoteMethods(java.lang.String serviceName,
java.util.Vector mbrs,
org.jgroups.blocks.MethodCall method_call,
boolean synchronous,
boolean exclude_self,
long timeout)
Deprecated. Calls a remote method on nodes in the cluster, targeted at objects registered under a given serviceName . |
java.util.List |
callRemoteMethods(java.lang.String serviceName,
java.util.Vector members,
java.lang.reflect.Method method,
java.lang.Object[] args,
boolean synchronous,
boolean exclude_self,
long timeout)
Deprecated. Calls a remote method on nodes in the cluster, targeted at objects registered under a given serviceName . |
java.util.List |
callRemoteMethods(java.lang.String serviceName,
java.util.Vector members,
java.lang.String method_name,
java.lang.Class[] types,
java.lang.Object[] args,
boolean synchronous,
boolean exclude_self,
long timeout)
Deprecated. Calls a remote method on nodes in the cluster, targeted at objects registered under a given serviceName . |
void |
registerRPCHandler(java.lang.String serviceName,
java.lang.Object handler)
Deprecated. Registers the given object as the on which any MethodCall associated with the given service should be invoked. |
void |
unregisterRPCHandler(java.lang.String serviceName,
java.lang.Object handler)
Deprecated. Removes the given object as a handler for RPC calls for the given service. |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Method Detail |
---|
java.util.List callRemoteMethods(java.lang.String serviceName, java.util.Vector members, java.lang.reflect.Method method, java.lang.Object[] args, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception
serviceName
.
serviceName
- name of a callback handler that will have been
registered on the remote end via
registerRPCHandler(String, Object)
.members
- Vector, each of whose members is the Address of one
the nodes in the cache's
member list
.
If null
, the method will be invoked on
all members.method
- method to executeargs
- method argumentssynchronous
- true
if the call should block until
all members respond (or timeout); false
if the call should return immediately without
waiting for responsesexclude_self
- should the call be invoked on the callee?timeout
- how long to wait for synchronous responses
null
if the call is asynchronous.
Elements of the list will either be a returned value
or an exception if one was returned. Any
NoHandlerForRPCException returned will be removed.
java.lang.Exception
java.util.List callRemoteMethods(java.lang.String serviceName, java.util.Vector mbrs, org.jgroups.blocks.MethodCall method_call, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception
serviceName
.
If the cache's cache mode
is TreeCache.LOCAL
and parameter exclude_self
is false
this request will be made directly to #_dispatchRpcCall()
.
serviceName
- name of a callback handler that will have been
registered on the remote end via
registerRPCHandler(String, Object)
.members
- Vector, each of whose members is the Address of one
the nodes in the cache's
member list
.
If null
, the method will be invoked on
all members.method_call
- method call to executesynchronous
- true
if the call should block until
all members respond (or timeout); false
if the call should return immediately without
waiting for responsesexclude_self
- should the call be invoked on the callee?timeout
- how long to wait for synchronous responses
null
if the call is asynchronous.
Elements of the list will either be a returned value
or an exception if one was returned. Any
NoHandlerForRPCException returned will be removed.
java.lang.Exception
java.util.List callRemoteMethods(java.lang.String serviceName, java.util.Vector members, java.lang.String method_name, java.lang.Class[] types, java.lang.Object[] args, boolean synchronous, boolean exclude_self, long timeout) throws java.lang.Exception
serviceName
.
serviceName
- name of a callback handler that will have been
registered on the remote end via
registerRPCHandler(String, Object)
.members
- Vector, each of whose members is the Address of one
the nodes in the cache's
member list
.
If null
, the method will be invoked on
all members.method_name
- name of the method to executeargs
- method argumentssynchronous
- true
if the call should block until
all members respond (or timeout); false
if the call should return immediately without
waiting for responsesexclude_self
- should the call be invoked on the callee?timeout
- how long to wait for synchronous responses
null
if the call is asynchronous.
Elements of the list will either be a returned value
or an exception if one was returned. Any
NoHandlerForRPCException returned will be removed.
NoHandlerForRPCException
- if no handler is registered on this node
under serviceName
.
java.lang.Exception
void registerRPCHandler(java.lang.String serviceName, java.lang.Object handler)
serviceName
- name of a service that will be receiving RPC callshandler
- object on which RPC calls for
serviceName
can be invoked.#_dispatchRpcCall
void unregisterRPCHandler(java.lang.String serviceName, java.lang.Object handler)
serviceName
- name of a service that will be receiving RPC callshandler
- object that was previously passed to
registerRPCHandler(String, Object)
for
serviceName
.handler
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |