public class GridFailoverContextImpl extends Object implements FailoverContext
| Constructor and Description |
|---|
GridFailoverContextImpl(GridTaskSessionImpl taskSes,
ComputeJobResult jobRes,
GridLoadBalancerManager loadMgr,
int partId,
@Nullable String affCacheName,
@Nullable AffinityTopologyVersion topVer)
Initializes failover context.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
affinityCacheName()
Returns affinity cache name
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable). |
@Nullable 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 @Nullable String affCacheName, @Nullable @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 @Nullable 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 @Nullable AffinityTopologyVersion affinityTopologyVersion()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020