Interface ExecutionStrategy
- All Superinterfaces:
ExternalizableLite,Serializable
- All Known Implementing Classes:
StandardExecutionStrategy
Analyzes current runtime information to define an
ExecutionPlan for executing a Task with available
Executors.- Since:
- 21.12
- Author:
- bo
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumA rationale for evaluating anExecutionStrategy. -
Method Summary
Modifier and TypeMethodDescriptionanalyze(ExecutionPlan currentPlan, Map<String, ? extends TaskExecutorService.ExecutorInfo> mapExecutorInfo, EnumSet<ExecutionStrategy.EvaluationRationale> rationales) Analyzes the currentExecutionPlanfor aTask, together with theTaskExecutorService.ExecutorInfoto produce a newExecutionPlan.Methods inherited from interface com.tangosol.io.ExternalizableLite
readExternal, writeExternal
-
Method Details
-
analyze
ExecutionPlan analyze(ExecutionPlan currentPlan, Map<String, ? extends TaskExecutorService.ExecutorInfo> mapExecutorInfo, EnumSet<ExecutionStrategy.EvaluationRationale> rationales) Analyzes the currentExecutionPlanfor aTask, together with theTaskExecutorService.ExecutorInfoto produce a newExecutionPlan.- Parameters:
currentPlan- the currentExecutionPlan(nullwhen undefined)mapExecutorInfo- a read-onlyMapof the currentTaskExecutorService.ExecutorInfo, one for each registeredExecutor, keyed by theExecutoridrationales- theExecutionStrategy.EvaluationRationales for evaluating theExecutionStrategy- Returns:
- new
ExecutionPlan
-