public class WrapperInvocationService extends WrapperService implements InvocationService
Service.MemberJoinAction
m_service
TYPE_DEFAULT, TYPE_REMOTE
Constructor and Description |
---|
WrapperInvocationService(InvocationService service)
Create a new WrapperInvocationService that delegates to the given
InvocationService instance.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Invocable task,
Set setMembers,
InvocationObserver observer)
Asynchronously invoke the specified task on each of the specified
members.
|
InvocationService |
getInvocationService()
Return the wrapped InvocationService.
|
Map |
query(Invocable task,
Set setMembers)
Synchronously invoke the specified task on each of the specified
members.
|
String |
toString() |
addMemberListener, addServiceListener, configure, getCluster, getContextClassLoader, getDependencies, getInfo, getMinimumServiceVersion, getResourceRegistry, getSerializer, getService, getUserContext, isRunning, isVersionCompatible, isVersionCompatible, isVersionCompatible, isVersionCompatible, removeMemberListener, removeServiceListener, setContextClassLoader, setDependencies, setUserContext, shutdown, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMemberListener, getCluster, getDependencies, getInfo, getMinimumServiceVersion, getResourceRegistry, getSerializer, getUserContext, isVersionCompatible, isVersionCompatible, isVersionCompatible, isVersionCompatible, removeMemberListener, setDependencies, setUserContext
addServiceListener, removeServiceListener
configure, isRunning, shutdown, start, stop
getContextClassLoader, setContextClassLoader
public WrapperInvocationService(InvocationService service)
service
- the InvocationService to wrappublic void execute(Invocable task, Set setMembers, InvocationObserver observer)
execute
in interface InvocationService
task
- the Invocable object to distribute to the specified
members in order to be invoked on those memberssetMembers
- (optional) a set of cluster members to which the
Invocable object will be distributed; if null, the
Invocable object will be distributed to all cluster
members that are running this serviceobserver
- (optional) the InvocationObserver object that will
receive notifications related to the Invocable objectpublic Map query(Invocable task, Set setMembers)
Members that are specified but are not currently running the InvocationService will not invoke the specified Invocable object. Members that leave (gracefully or otherwise) before the invocation completes will not register a result, and the amount of processing that completed is indeterminate. Members that encounter an exception during invocation will not be retried and no result is returned. Specifically, the result for a given member will not be present under the following conditions:
query
in interface InvocationService
task
- the Invocable object to distribute to the specified
members in order to be invoked on those memberssetMembers
- (optional) a set of cluster members to which the
Invocable object will be distributed; if null, the
Invocable object will be distributed to all cluster
members that are running this servicepublic String toString()
toString
in class WrapperService
public InvocationService getInvocationService()