java.io.Serializable, java.lang.Comparable<NNStorage.NameNodeDirType>, Storage.StorageDirType@VisibleForTesting public static enum NNStorage.NameNodeDirType extends java.lang.Enum<NNStorage.NameNodeDirType> implements Storage.StorageDirType
| Enum Constant | Description |
|---|---|
EDITS |
|
IMAGE |
|
IMAGE_AND_EDITS |
|
UNDEFINED |
| Modifier and Type | Method | Description |
|---|---|---|
Storage.StorageDirType |
getStorageDirType() |
|
boolean |
isOfType(Storage.StorageDirType type) |
|
static NNStorage.NameNodeDirType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static NNStorage.NameNodeDirType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NNStorage.NameNodeDirType UNDEFINED
public static final NNStorage.NameNodeDirType IMAGE
public static final NNStorage.NameNodeDirType EDITS
public static final NNStorage.NameNodeDirType IMAGE_AND_EDITS
public static NNStorage.NameNodeDirType[] values()
for (NNStorage.NameNodeDirType c : NNStorage.NameNodeDirType.values()) System.out.println(c);
public static NNStorage.NameNodeDirType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Storage.StorageDirType getStorageDirType()
getStorageDirType in interface Storage.StorageDirTypepublic boolean isOfType(Storage.StorageDirType type)
isOfType in interface Storage.StorageDirTypeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.