public class GridFailoverContextImpl extends Object implements FailoverContext
| Constructor and Description |
|---|
GridFailoverContextImpl(GridTaskSessionImpl taskSes,
ComputeJobResult jobRes,
GridLoadBalancerManager loadMgr,
int partId,
String affCacheName,
AffinityTopologyVersion topVer)
Initializes failover context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
affinityCacheName()
Returns affinity cache name
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable). |
AffinityTopologyVersion |
affinityTopologyVersion() |
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()
|
String |
toString() |
public GridFailoverContextImpl(GridTaskSessionImpl taskSes, ComputeJobResult jobRes, GridLoadBalancerManager loadMgr, int partId, @Nullable String affCacheName, @Nullable AffinityTopologyVersion topVer)
taskSes - Grid task session.jobRes - Failed job result.loadMgr - Load manager.partId - Partition.affCacheName - Affinity cache name.topVer - Affinity topology version.public ComputeTaskSession getTaskSession()
getTaskSession in interface FailoverContextpublic ComputeJobResult getJobResult()
getJobResult in interface FailoverContextpublic ClusterNode getBalancedNode(List<ClusterNode> top)
LoadBalancingSpi to
determine the optimal node for execution.getBalancedNode in interface FailoverContexttop - Topology to pick balanced node from.@Nullable public String affinityCacheName()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable).affinityCacheName in interface FailoverContextpublic int partition()
IgniteCompute.affinityRun(Collection, int, IgniteRunnable)
and IgniteCompute.affinityCall(Collection, int, IgniteCallable).partition in interface FailoverContext@Nullable public AffinityTopologyVersion affinityTopologyVersion()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018