public interface FailoverContext
Modifier and Type | Method and Description |
---|---|
@Nullable String |
affinityCacheName()
Returns affinity cache name
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable) . |
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)
.@Nullable @Nullable String affinityCacheName()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable)
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019