public class GridFailoverContextImpl extends Object implements FailoverContext
| Constructor and Description |
|---|
GridFailoverContextImpl(GridTaskSessionImpl taskSes,
ComputeJobResult jobRes,
GridLoadBalancerManager loadMgr,
Object affKey,
String affCacheName)
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). |
Object |
affinityKey()
|
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.
|
String |
toString() |
public GridFailoverContextImpl(GridTaskSessionImpl taskSes, ComputeJobResult jobRes, GridLoadBalancerManager loadMgr, @Nullable Object affKey, @Nullable String affCacheName)
taskSes - Grid task session.jobRes - Failed job result.loadMgr - Load manager.affKey - Affinity key.affCacheName - Affinity cache name.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 Object affinityKey()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable).affinityKey in interface FailoverContext@Nullable public String affinityCacheName()
IgniteCompute.affinityRun(String, Object, IgniteRunnable)
and IgniteCompute.affinityCall(String, Object, IgniteCallable).affinityCacheName in interface FailoverContext
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016