|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DataTransferProtocol.Op>
org.apache.hadoop.hdfs.protocol.DataTransferProtocol.Op
public static enum DataTransferProtocol.Op
Operation
Enum Constant Summary | |
---|---|
BLOCK_CHECKSUM
|
|
COPY_BLOCK
|
|
READ_BLOCK
|
|
READ_METADATA
|
|
REPLACE_BLOCK
|
|
WRITE_BLOCK
|
Field Summary | |
---|---|
byte |
code
The code for this operation. |
Method Summary | |
---|---|
static DataTransferProtocol.Op |
read(DataInput in)
Read from in |
static DataTransferProtocol.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DataTransferProtocol.Op[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
write(DataOutput 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 |
---|
public static final DataTransferProtocol.Op WRITE_BLOCK
public static final DataTransferProtocol.Op READ_BLOCK
public static final DataTransferProtocol.Op READ_METADATA
public static final DataTransferProtocol.Op REPLACE_BLOCK
public static final DataTransferProtocol.Op COPY_BLOCK
public static final DataTransferProtocol.Op BLOCK_CHECKSUM
Field Detail |
---|
public final byte code
Method Detail |
---|
public static DataTransferProtocol.Op[] values()
for (DataTransferProtocol.Op c : DataTransferProtocol.Op.values()) System.out.println(c);
public static DataTransferProtocol.Op valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static DataTransferProtocol.Op read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |