com.hazelcast.mapreduce.impl.operation
Enum RequestPartitionResult.ResultState

java.lang.Object
  extended by java.lang.Enum<RequestPartitionResult.ResultState>
      extended by com.hazelcast.mapreduce.impl.operation.RequestPartitionResult.ResultState
All Implemented Interfaces:
Serializable, Comparable<RequestPartitionResult.ResultState>
Enclosing class:
RequestPartitionResult

public static enum RequestPartitionResult.ResultState
extends Enum<RequestPartitionResult.ResultState>

This enum is used to define the basic state of an operations result


Enum Constant Summary
CHECK_STATE_FAILED
          Operation wasn't executed since the old partition owner is not the requesting member, value of partitionId is undefined (depending on the operation)
NO_MORE_PARTITIONS
          Operation was executed but no more partitions seem to be available for mapping, partitionId value is -1
NO_SUPERVISOR
          Operation wasn't executed, because no supervisor could be found for the given name-jobId combination, partitionId is -1
SUCCESSFUL
          Operation was successfully executed, partitionId contains value other than -1
 
Method Summary
static RequestPartitionResult.ResultState byOrdinal(int ordinal)
           
static RequestPartitionResult.ResultState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RequestPartitionResult.ResultState[] 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

SUCCESSFUL

public static final RequestPartitionResult.ResultState SUCCESSFUL
Operation was successfully executed, partitionId contains value other than -1


NO_SUPERVISOR

public static final RequestPartitionResult.ResultState NO_SUPERVISOR
Operation wasn't executed, because no supervisor could be found for the given name-jobId combination, partitionId is -1


CHECK_STATE_FAILED

public static final RequestPartitionResult.ResultState CHECK_STATE_FAILED
Operation wasn't executed since the old partition owner is not the requesting member, value of partitionId is undefined (depending on the operation)


NO_MORE_PARTITIONS

public static final RequestPartitionResult.ResultState NO_MORE_PARTITIONS
Operation was executed but no more partitions seem to be available for mapping, partitionId value is -1

Method Detail

values

public static RequestPartitionResult.ResultState[] 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 (RequestPartitionResult.ResultState c : RequestPartitionResult.ResultState.values())
    System.out.println(c);

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

valueOf

public static RequestPartitionResult.ResultState 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.)

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

byOrdinal

public static RequestPartitionResult.ResultState byOrdinal(int ordinal)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.