Package com.oracle.coherence.concurrent.executor
Classes to allow submission of tasks to the grid for execution.
- Since:
- 21.12
-
Interface Summary Interface Description ComposableContinuation This extension allows composition of Continuations.ExecutionPlan Defines proposedExecutionPlan.Actions for assigning aTaskto zero or moreExecutors for execution.ExecutionStrategy Analyzes current runtime information to define anExecutionPlanfor executing aTaskwith availableExecutors.RemoteExecutor A RemoteExecutor allows submitting and/or schedulingrunnablesandcallablesfor execution within a Coherence cluster.Task<T> A task which may take a long time to execute, may be executed by multipleExecutors, may generate intermediate results, and may yield for later execution.Task.Collectable<T,R> Provides the mechanism to submit, orchestrate and collect results from aTaskdefined as part of anTask.Orchestration, including the creation of aTask.Coordinatorto subscribe to results, manage and interact with an orchestratedTask.Task.Collector<T,A,R> A mutable reduction operation that accumulates results into a mutable result container, optionally transforming the accumulated result into a final representation after all results have been processed.Task.Completable<T,R> ATask.Collectablethat supports performing operations when aTaskorchestration is complete.Task.CompletionRunnable<T> A runnable to be called upon task completion.Task.Context<T> Task.Coordinator<T> Task.Option An option for configuringTaskorchestration.Task.Orchestration<T> Defines information concerning the orchestration of aTaskacross a set ofExecutors for a givenTaskExecutorService.Task.Properties Define an interface to allow states sharing between the task executors.Task.SubscribedOrchestration<T> Defines the subset ofTask.Orchestrationmethods which are permitted afterTask.SubscribedOrchestration.subscribe(Subscriber)is called.Task.Subscriber<T> A receiver of items produced by aTask.Coordinator.Task.Subscription<T> Represents a subscription aTask.Subscriberhas made to aTask.Coordinator, allowing control and termination of theTask.Subscription.TaskExecutorService AnExecutorServicethat orchestrates execution of submitted executables, for exampleRunnables,Callables andTasks, across zero or more registeredExecutorServices.TaskExecutorService.ExecutorInfo Provides access to the currently available information for a registeredExecutorService.TaskExecutorService.Registration Provides registration information about anExecutorServiceregistration.TaskExecutorService.Registration.Option AnTaskExecutorService.Registration.Optionfor anExecutorServicewhen registered. -
Class Summary Class Description AbstractCollectable<T,R,O extends AbstractOrchestration<T,?>> A base implementation of aTask.CollectableandTask.Completable.AbstractCollector<T,R> An abstractTask.Collector.AbstractOrchestration<T,C extends TaskExecutorService> A base implementation of aTask.Orchestration.AbstractTaskCoordinator<T> A base implementation of aTask.Coordinator.ClusteredAssignment ClusteredAssignment.AssignmentProcessor AnInvocableMap.EntryProcessorwhich updates an assignment due to an assignmentExecutionPlan.Action.ClusteredAssignment.SetStateProcessor AnInvocableMap.EntryProcessorto compare and set the state of aClusteredAssignment, returning the previous state.ClusteredExecutorInfo A Coherence-based implementation of aTaskExecutorService.ExecutorInfo.ClusteredExecutorInfo.CacheAwareContinuation ClusteredExecutorInfo.ClosingContinuation ClusteredExecutorInfo.ClosingGracefullyContinuation AComposableContinuationto gracefully close aClusteredExecutorInfo, allowing already assignedTasks to complete.ClusteredExecutorInfo.JoiningContinuation ClusteredExecutorInfo.RemoveContinuation AComposableContinuationto remove aClusteredExecutorInfo.ClusteredExecutorInfo.SetStateProcessor AnInvocableMap.EntryProcessorto compare and set the state of aClusteredExecutorInfo, returning the previous state.ClusteredExecutorInfo.TouchProcessor AnInvocableMap.EntryProcessorto update the last update timestamp of aClusteredExecutorInfo.ClusteredExecutorInfo.TouchRunnable ARunnableto asynchronously touch.ClusteredExecutorInfo.UpdateInfoProcessor AnInvocableMap.EntryProcessorto update the state of anTaskExecutorService.ExecutorInfo.ClusteredExecutorInfo.UpdateInfoRunnable ARunnableto asynchronously update the state ofClusteredExecutorInfousing the information based on the currentRuntime.ClusteredExecutorService An Oracle Coherence basedTaskExecutorService.ClusteredExecutorService.CESRunnableFuture<V> CESRunnableFutureis a holder for the Callable or Runnable which will be executed byClusteredExecutorService.execute(Remote.Runnable).ClusteredOrchestration<T> A clustered implementation of aTask.Orchestration.ClusteredProperties A clustered implementation of aTask.Properties.ClusteredProperties.PropertyKey<T extends Serializable> Property key.ClusteredProperties.PropertyValue<T extends Serializable> Property value.ClusteredProperties.SetPropertyValueProcessor<K extends Serializable,V extends Serializable> AnInvocableMap.EntryProcessorfor inserting/updatingClusteredProperties.PropertyKey/ClusteredProperties.PropertyValuemappings.ClusteredRegistration A cluster-based implementation of anTaskExecutorService.Registration.ClusteredTaskCoordinator<T> An implementation of aTask.Coordinatorfor Coherence-based implementation.ClusteredTaskManager<T,A,R> Manages the definition and current state of an individualTaskbeing orchestrated by anTaskExecutorService.ClusteredTaskManager.CancellationProcessor AnInvocableMap.EntryProcessorto terminate a runningTask.ClusteredTaskManager.ChainedProcessor AClusteredTaskManager.ChainedProcessorexecutes zero or more containedInvocableMap.EntryProcessors in sequence against a singleInvocableMap.Entryas a single transaction.ClusteredTaskManager.NotifyExecutionStrategyProcessor AnInvocableMap.EntryProcessorto notify theTaskthat an event has occurred which requires theExecutionStrategyto be re-evaluated.ClusteredTaskManager.OptimizeExecutionPlanProcessor ClusteredTaskManager.SetActionProcessor AnInvocableMap.EntryProcessorto compare and set the action of aExecutionPlanfor a givenExecutor.ClusteredTaskManager.UpdateCollectedResultProcessor<T> AnPortableAbstractProcessorto update the collected result for aTask.ClusteredTaskManager.UpdateContributedResultProcessor ClusteredTaskManager.UpdateExecutionPlanProcessor AnInvocableMap.EntryProcessorto update theExecutionPlanfor aTaskafter theExecutionStrategyhas been evaluated.ConditionalCollector<T,A,R> ATask.Collectorthat conditionally collects values based on the available result.ContinuationService<T> A service for tracking, composing and executingComposableContinuations.ExecutionStrategyBuilder A builder ofExecutionStrategys.MutableExecutionPlan A mutable implementation ofExecutionPlan.NamedClusteredExecutorService AClusteredExecutorServicethat dispatches to executors associated with a logical name.NamedClusteredExecutorService.NamedOrchestration<T> ClusteredOrchestrationextension that orchestrates only to executors associated with the givenname.PortableAbstractProcessor<K,V,R> A portableAbstractProcessor. a convenience interface for implementations having no properties to serialize.RecoveringTask Result<T> StandardExecutionStrategy AnExecutionStrategythat createsExecutionPlans for executing aTaskon a number of availableExecutors that satisfy a specifiedRemote.Predicate.TaskCollectors Static helper methods to createTask.Collectors.TaskCollectors.CountCollector<T> ATask.Collectorthat counts the number of results are present.TaskCollectors.FirstOfCollector<T> ATask.Collectorto collect any (the first provided) available result.TaskCollectors.LastOfCollector<T> ATask.Collectorthat collects and returns the last contributed result.TaskCollectors.ListOfCollector<T> ATask.Collectorthat collects and returns all contributed results that are values as aList.TaskCollectors.SetOfCollector<T> ATask.Collectorthat collects and returns all contributed results that are values as aSet.TaskProperties A basic implementation of aTask.Properties. -
Enum Summary Enum Description ClusteredAssignment.State The current state of the assignment.ClusteredExecutorService.State Enumeration representing possible state transitions of theClusteredExecutorService.ClusteredTaskManager.State The state of theClusteredTaskManager.ExecutionPlan.Action A proposedExecutionPlan.Actionfor anExecutor.ExecutionStrategy.EvaluationRationale A rationale for evaluating anExecutionStrategy.TaskExecutorService.ExecutorInfo.State The state of anExecutorService. -
Exception Summary Exception Description Task.Yield