|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvocationService
The InvocationService is a Service for delivering executable objects to cluster members for distributed invocation. The executable objects must implement the Invocable interface, which extends the Java Runnable interface. Using this interface, application code can cause execution of an Invocable object to occur on any one, any set of, or all cluster members that are running the InvocationService.
Note: Invocable objects that do not implement the PriorityTask
interface will execute without any timeout. Furthermore, the executing service or worker thread will not be protected by the service guardian while the invocation is in progress.
Note: The InvocationService is a feature of the Coherence Enterprise Edition or Grid Edition. This service cannot be used in a Coherence Standard Edition cluster.
Field Summary | |
---|---|
static java.lang.String |
TYPE_DEFAULT Invocation service type constant. |
static java.lang.String |
TYPE_REMOTE Remote invocation service type constant. |
Method Summary | |
---|---|
void |
execute(Invocable task, java.util.Set setMembers, InvocationObserver observer) Asynchronously invoke the specified task on each of the specified members. |
java.util.Map |
query(Invocable task, java.util.Set setMembers) Synchronously invoke the specified task on each of the specified members. |
Methods inherited from interface com.tangosol.net.Service |
---|
addMemberListener, getCluster, getInfo, getSerializer, getUserContext, removeMemberListener, setUserContext |
Methods inherited from interface com.tangosol.util.Service |
---|
addServiceListener, removeServiceListener |
Methods inherited from interface com.tangosol.util.Controllable |
---|
configure, isRunning, shutdown, start, stop |
Methods inherited from interface com.tangosol.io.ClassLoaderAware |
---|
getContextClassLoader, setContextClassLoader |
Field Detail |
---|
static final java.lang.String TYPE_DEFAULT
Cluster.ensureService(String, String)
, Constant Field Valuesstatic final java.lang.String TYPE_REMOTE
Cluster.ensureService(String, String)
, Constant Field ValuesMethod Detail |
---|
void execute(Invocable task, java.util.Set setMembers, InvocationObserver observer)
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 objectjava.util.Map query(Invocable task, java.util.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:
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 service
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |