org.apache.accumulo.core.client.admin
Enum ActiveCompaction.CompactionReason

java.lang.Object
  extended by java.lang.Enum<ActiveCompaction.CompactionReason>
      extended by org.apache.accumulo.core.client.admin.ActiveCompaction.CompactionReason
All Implemented Interfaces:
Serializable, Comparable<ActiveCompaction.CompactionReason>
Enclosing class:
ActiveCompaction

public static enum ActiveCompaction.CompactionReason
extends Enum<ActiveCompaction.CompactionReason>


Enum Constant Summary
CHOP
          Compaction initiated by merge operation
CLOSE
          Compaction initiated to close a unload a tablet
IDLE
          idle compaction
SYSTEM
          Compaction initiated by system
USER
          compaction initiated by user
 
Method Summary
static ActiveCompaction.CompactionReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActiveCompaction.CompactionReason[] 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

USER

public static final ActiveCompaction.CompactionReason USER
compaction initiated by user


SYSTEM

public static final ActiveCompaction.CompactionReason SYSTEM
Compaction initiated by system


CHOP

public static final ActiveCompaction.CompactionReason CHOP
Compaction initiated by merge operation


IDLE

public static final ActiveCompaction.CompactionReason IDLE
idle compaction


CLOSE

public static final ActiveCompaction.CompactionReason CLOSE
Compaction initiated to close a unload a tablet

Method Detail

values

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

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

valueOf

public static ActiveCompaction.CompactionReason 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 © 2015 Apache Accumulo Project. All rights reserved.