com.neeve.rog.log
Enum RogLogCompactor.State

java.lang.Object
  extended by java.lang.Enum<RogLogCompactor.State>
      extended by com.neeve.rog.log.RogLogCompactor.State
All Implemented Interfaces:
Serializable, Comparable<RogLogCompactor.State>
Enclosing class:
RogLogCompactor

public static enum RogLogCompactor.State
extends Enum<RogLogCompactor.State>

Enmerates the various compactor states


Enum Constant Summary
Compacted
          Log has been compacted but work pending to switch to live
Complete
          Log has been compacted and switched live
Failed
          Log compaction failed
InProgress
          Compaction is in progress
NotStarted
          Compaction has not been started
 
Method Summary
static RogLogCompactor.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RogLogCompactor.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NotStarted

public static final RogLogCompactor.State NotStarted
Compaction has not been started


InProgress

public static final RogLogCompactor.State InProgress
Compaction is in progress


Compacted

public static final RogLogCompactor.State Compacted
Log has been compacted but work pending to switch to live


Complete

public static final RogLogCompactor.State Complete
Log has been compacted and switched live


Failed

public static final RogLogCompactor.State Failed
Log compaction failed

Method Detail

values

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

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

valueOf

public static RogLogCompactor.State 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 © 2016 Neeve Research, LLC. All Rights Reserved.