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 FailoverContext
public ComputeJobResult getJobResult()
getJobResult
in interface FailoverContext
public ClusterNode getBalancedNode(List<ClusterNode> top)
LoadBalancingSpi
to
determine the optimal node for execution.getBalancedNode
in interface FailoverContext
top
- Topology to pick balanced node from.@Nullable public String affinityCacheName()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable)
.affinityCacheName
in interface FailoverContext
public 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.0.0 Release Date : April 30 2017