GridGain™ 2.0.3
Java API Specification

org.gridgain.grid
Enum GridJobResultPolicy

java.lang.Object
  extended by java.lang.Enum<GridJobResultPolicy>
      extended by org.gridgain.grid.GridJobResultPolicy
All Implemented Interfaces:
Serializable, Comparable<GridJobResultPolicy>

@Apache20LicenseCompatible
public enum GridJobResultPolicy
extends Enum<GridJobResultPolicy>

This enumeration provides different types of actions following the last received job result. See GridTask.result(GridJobResult, List) for more details.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

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

 

Enum Constant Summary
FAILOVER
          Fail-over job to execute on another node.
REDUCE
          Ignore all not yet received results and start reducing results.
WAIT
          Wait for results if any are still expected.
 
Method Summary
static GridJobResultPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridJobResultPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WAIT

public static final GridJobResultPolicy WAIT
Wait for results if any are still expected. If all results have been received - it will start reducing results.


REDUCE

public static final GridJobResultPolicy REDUCE
Ignore all not yet received results and start reducing results.


FAILOVER

public static final GridJobResultPolicy FAILOVER
Fail-over job to execute on another node.

Method Detail

values

public static final GridJobResultPolicy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GridJobResultPolicy c : GridJobResultPolicy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static GridJobResultPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

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.