public interface FailoverContext
Modifier and Type | Method and Description |
---|---|
String |
affinityCacheName()
Returns affinity cache name if the task was launched using
IgniteCompute.affinityRun(String, Object, IgniteRunnable) or
IgniteCompute.affinityCall(String, Object, IgniteCallable) calls. |
ClusterNode |
getBalancedNode(List<ClusterNode> top)
Gets the next balanced node for failed job.
|
ComputeJobResult |
getJobResult()
Gets failed result of job execution.
|
ComputeTaskSession |
getTaskSession()
Gets current task session.
|
int |
partition()
|
ComputeTaskSession getTaskSession()
ComputeJobResult getJobResult()
ClusterNode getBalancedNode(List<ClusterNode> top) throws IgniteException
LoadBalancingSpi
to
determine the optimal node for execution.top
- Topology to pick balanced node from.IgniteException
- If anything failed.int partition()
IgniteCompute.affinityRun(Collection, int, IgniteRunnable)
and IgniteCompute.affinityCall(Collection, int, IgniteCallable)
.String affinityCacheName()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
or
IgniteCompute.affinityCall(String, Object, IgniteCallable)
calls.null
if task was not an partition-aware task.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024