GridGain™ 2.0.3
Java API Specification

org.gridgain.grid.spi.failover
Interface GridFailoverContext


@Apache20LicenseCompatible
public interface GridFailoverContext

This interface defines a set of operations available to failover SPI one a given failed job.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

 

Method Summary
 GridNode getBalancedNode(List<GridNode> top)
          Gets the next balanced node for failed job.
 GridJobResult getJobResult()
          Gets failed result of job execution.
 GridTaskSession getTaskSession()
          Gets current task session.
 

Method Detail

getTaskSession

GridTaskSession getTaskSession()
Gets current task session.

Returns:
Grid task session.

getJobResult

GridJobResult getJobResult()
Gets failed result of job execution.

Returns:
Result of a failed job.

getBalancedNode

GridNode getBalancedNode(List<GridNode> top)
                         throws GridException
Gets the next balanced node for failed job. Internally this method will delegate to load balancing SPI (see GridLoadBalancingSpi to determine the optimal node for execution.

Throws:
GridException - If anything failed.
Parameters:
top - Topology to pick balanced node from.
Returns:
The next balanced node.

GridGain™ 2.0.3
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.