org.apache.hadoop.hbase.executor
Enum HBaseExecutorService.HBaseExecutorServiceType

java.lang.Object
  extended by java.lang.Enum<HBaseExecutorService.HBaseExecutorServiceType>
      extended by org.apache.hadoop.hbase.executor.HBaseExecutorService.HBaseExecutorServiceType
All Implemented Interfaces:
Serializable, Comparable<HBaseExecutorService.HBaseExecutorServiceType>
Enclosing class:
HBaseExecutorService

public static enum HBaseExecutorService.HBaseExecutorServiceType
extends Enum<HBaseExecutorService.HBaseExecutorServiceType>

The following is a list of names for the various executor services in both the master and the region server.


Enum Constant Summary
MASTER_CLOSEREGION
           
MASTER_OPENREGION
           
NONE
           
 
Method Summary
 HBaseExecutorService getExecutor(String serverName)
           
 String getExecutorName(String serverName)
           
 void startExecutorService(String serverName)
           
static HBaseExecutorService.HBaseExecutorServiceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HBaseExecutorService.HBaseExecutorServiceType[] 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

NONE

public static final HBaseExecutorService.HBaseExecutorServiceType NONE

MASTER_CLOSEREGION

public static final HBaseExecutorService.HBaseExecutorServiceType MASTER_CLOSEREGION

MASTER_OPENREGION

public static final HBaseExecutorService.HBaseExecutorServiceType MASTER_OPENREGION
Method Detail

values

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

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

valueOf

public static HBaseExecutorService.HBaseExecutorServiceType 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

startExecutorService

public void startExecutorService(String serverName)

getExecutor

public HBaseExecutorService getExecutor(String serverName)

getExecutorName

public String getExecutorName(String serverName)


Copyright © 2010 Apache Software Foundation. All Rights Reserved.