storm.kafka
Enum KafkaError

java.lang.Object
  extended by java.lang.Enum<KafkaError>
      extended by storm.kafka.KafkaError
All Implemented Interfaces:
Serializable, Comparable<KafkaError>

public enum KafkaError
extends Enum<KafkaError>


Enum Constant Summary
BROKER_NOT_AVAILABLE
           
INVALID_FETCH_SIZE
           
INVALID_MESSAGE
           
LEADER_NOT_AVAILABLE
           
MESSAGE_SIZE_TOO_LARGE
           
NO_ERROR
           
NOT_LEADER_FOR_PARTITION
           
OFFSET_METADATA_TOO_LARGE
           
OFFSET_OUT_OF_RANGE
           
REPLICA_NOT_AVAILABLE
           
REQUEST_TIMED_OUT
           
STALE_CONTROLLER_EPOCH
           
UNKNOWN
           
UNKNOWN_TOPIC_OR_PARTITION
           
 
Method Summary
static KafkaError getError(int errorCode)
           
static KafkaError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KafkaError[] 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_ERROR

public static final KafkaError NO_ERROR

OFFSET_OUT_OF_RANGE

public static final KafkaError OFFSET_OUT_OF_RANGE

INVALID_MESSAGE

public static final KafkaError INVALID_MESSAGE

UNKNOWN_TOPIC_OR_PARTITION

public static final KafkaError UNKNOWN_TOPIC_OR_PARTITION

INVALID_FETCH_SIZE

public static final KafkaError INVALID_FETCH_SIZE

LEADER_NOT_AVAILABLE

public static final KafkaError LEADER_NOT_AVAILABLE

NOT_LEADER_FOR_PARTITION

public static final KafkaError NOT_LEADER_FOR_PARTITION

REQUEST_TIMED_OUT

public static final KafkaError REQUEST_TIMED_OUT

BROKER_NOT_AVAILABLE

public static final KafkaError BROKER_NOT_AVAILABLE

REPLICA_NOT_AVAILABLE

public static final KafkaError REPLICA_NOT_AVAILABLE

MESSAGE_SIZE_TOO_LARGE

public static final KafkaError MESSAGE_SIZE_TOO_LARGE

STALE_CONTROLLER_EPOCH

public static final KafkaError STALE_CONTROLLER_EPOCH

OFFSET_METADATA_TOO_LARGE

public static final KafkaError OFFSET_METADATA_TOO_LARGE

UNKNOWN

public static final KafkaError UNKNOWN
Method Detail

values

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

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

valueOf

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

getError

public static KafkaError getError(int errorCode)


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.