@InterfaceAudience.Private @InterfaceStability.Evolving public enum Op extends Enum<Op>
Enum Constant and Description |
---|
BLOCK_CHECKSUM |
COPY_BLOCK |
READ_BLOCK |
READ_METADATA |
REPLACE_BLOCK |
REQUEST_SHORT_CIRCUIT_FDS |
TRANSFER_BLOCK |
WRITE_BLOCK |
Modifier and Type | Field and Description |
---|---|
byte |
code
The code for this operation.
|
Modifier and Type | Method and Description |
---|---|
static Op |
read(DataInput in)
Read from in
|
static Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static 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
|
public static final Op WRITE_BLOCK
public static final Op READ_BLOCK
public static final Op READ_METADATA
public static final Op REPLACE_BLOCK
public static final Op COPY_BLOCK
public static final Op BLOCK_CHECKSUM
public static final Op TRANSFER_BLOCK
public static final Op REQUEST_SHORT_CIRCUIT_FDS
public static Op[] values()
for (Op c : Op.values()) System.out.println(c);
public static 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 nameNullPointerException
- if the argument is nullpublic static Op read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.