org.elasticsearch.action.support.broadcast
Enum BroadcastOperationThreading

java.lang.Object
  extended by java.lang.Enum<BroadcastOperationThreading>
      extended by org.elasticsearch.action.support.broadcast.BroadcastOperationThreading
All Implemented Interfaces:
Serializable, Comparable<BroadcastOperationThreading>

public enum BroadcastOperationThreading
extends Enum<BroadcastOperationThreading>

Controls the operation threading model for broadcast operation that are performed locally on the executing node.


Enum Constant Summary
NO_THREADS
          No threads are used, all the local shards operations will be performed on the calling thread.
SINGLE_THREAD
          The local shards operations will be performed in serial manner on a single forked thread.
THREAD_PER_SHARD
          Each local shard operation will execute on its own thread.
 
Method Summary
static BroadcastOperationThreading fromId(byte id)
           
static BroadcastOperationThreading fromString(String value, BroadcastOperationThreading defaultValue)
           
 byte id()
           
static BroadcastOperationThreading valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BroadcastOperationThreading[] 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

NO_THREADS

public static final BroadcastOperationThreading NO_THREADS
No threads are used, all the local shards operations will be performed on the calling thread.


SINGLE_THREAD

public static final BroadcastOperationThreading SINGLE_THREAD
The local shards operations will be performed in serial manner on a single forked thread.


THREAD_PER_SHARD

public static final BroadcastOperationThreading THREAD_PER_SHARD
Each local shard operation will execute on its own thread.

Method Detail

values

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

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

valueOf

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

id

public byte id()

fromId

public static BroadcastOperationThreading fromId(byte id)

fromString

public static BroadcastOperationThreading fromString(String value,
                                                     BroadcastOperationThreading defaultValue)


Copyright © 2009-2012. All Rights Reserved.