public static enum TransferFsImage.TransferResult extends Enum<TransferFsImage.TransferResult>
Enum Constant and Description |
---|
AUTHENTICATION_FAILURE |
NOT_ACTIVE_NAMENODE_FAILURE |
OLD_TRANSACTION_ID_FAILURE |
SUCCESS |
UNEXPECTED_FAILURE |
Modifier and Type | Method and Description |
---|---|
static TransferFsImage.TransferResult |
getResultForCode(int code) |
static TransferFsImage.TransferResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferFsImage.TransferResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferFsImage.TransferResult SUCCESS
public static final TransferFsImage.TransferResult AUTHENTICATION_FAILURE
public static final TransferFsImage.TransferResult NOT_ACTIVE_NAMENODE_FAILURE
public static final TransferFsImage.TransferResult OLD_TRANSACTION_ID_FAILURE
public static final TransferFsImage.TransferResult UNEXPECTED_FAILURE
public static TransferFsImage.TransferResult[] values()
for (TransferFsImage.TransferResult c : TransferFsImage.TransferResult.values()) System.out.println(c);
public static TransferFsImage.TransferResult 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 TransferFsImage.TransferResult getResultForCode(int code)
Copyright © 2019 Apache Software Foundation. All Rights Reserved.