net.conquiris.api.index
Enum WriterResult

java.lang.Object
  extended by java.lang.Enum<WriterResult>
      extended by net.conquiris.api.index.WriterResult
All Implemented Interfaces:
Serializable, Comparable<WriterResult>

public enum WriterResult
extends Enum<WriterResult>

Writer result.

Author:
Andres Rodriguez

Enum Constant Summary
ERROR
          The writer was cancelled, interrupted or there was an error before being commited.
IDLE
          The writer had nothing to do.
NORMAL
          The writer commited useful work.
 
Method Summary
static WriterResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WriterResult[] 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

NORMAL

public static final WriterResult NORMAL
The writer commited useful work.


IDLE

public static final WriterResult IDLE
The writer had nothing to do.


ERROR

public static final WriterResult ERROR
The writer was cancelled, interrupted or there was an error before being commited.

Method Detail

values

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

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

valueOf

public static WriterResult 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


Copyright © 2012 Derquinse Projects. All Rights Reserved.