GridGain™ 3.6.0e
Enterprise Edition

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>

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.

Wiki & Forum:


Wiki
Forum

 

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 fromOrdinal(byte ord)
          Efficiently gets enumerated value from its ordinal.
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 are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
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 GridJobResultPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are 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
NullPointerException - if the argument is null
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

fromOrdinal

@Nullable
public static GridJobResultPolicy fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.

Parameters:
ord - Ordinal value.
Returns:
Enumerated value.

GridGain™ 3.6.0e
Enterprise Edition

GridGain - Real Time Big Data
Enterprise Edition, ver. 3.6.0e.13012012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Follow GridGain on Facebook Join GridGain User Group Follow GridGain on Twitter Follow GridGain on YouTube