org.apache.hadoop.hdfs.protocol
Enum DataTransferProtocol.Status

java.lang.Object
  extended by java.lang.Enum<DataTransferProtocol.Status>
      extended by org.apache.hadoop.hdfs.protocol.DataTransferProtocol.Status
All Implemented Interfaces:
Serializable, Comparable<DataTransferProtocol.Status>
Enclosing interface:
DataTransferProtocol

public static enum DataTransferProtocol.Status
extends Enum<DataTransferProtocol.Status>

Status


Enum Constant Summary
CHECKSUM_OK
           
ERROR
           
ERROR_ACCESS_TOKEN
           
ERROR_CHECKSUM
           
ERROR_EXISTS
           
ERROR_INVALID
           
SUCCESS
           
 
Method Summary
static DataTransferProtocol.Status read(DataInput in)
          Read from in
static DataTransferProtocol.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataTransferProtocol.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void write(DataOutput out)
          Write to out
 void writeOutputStream(OutputStream out)
          Write to out
 
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

SUCCESS

public static final DataTransferProtocol.Status SUCCESS

ERROR

public static final DataTransferProtocol.Status ERROR

ERROR_CHECKSUM

public static final DataTransferProtocol.Status ERROR_CHECKSUM

ERROR_INVALID

public static final DataTransferProtocol.Status ERROR_INVALID

ERROR_EXISTS

public static final DataTransferProtocol.Status ERROR_EXISTS

ERROR_ACCESS_TOKEN

public static final DataTransferProtocol.Status ERROR_ACCESS_TOKEN

CHECKSUM_OK

public static final DataTransferProtocol.Status CHECKSUM_OK
Method Detail

values

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

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

valueOf

public static DataTransferProtocol.Status 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

read

public static DataTransferProtocol.Status read(DataInput in)
                                        throws IOException
Read from in

Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Write to out

Throws:
IOException

writeOutputStream

public void writeOutputStream(OutputStream out)
                       throws IOException
Write to out

Throws:
IOException


Copyright © 2009 The Apache Software Foundation