public static enum HdfsServerConstants.NamenodeRole extends Enum<HdfsServerConstants.NamenodeRole>
| Enum Constant and Description |
|---|
BACKUP |
CHECKPOINT |
NAMENODE |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static HdfsServerConstants.NamenodeRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsServerConstants.NamenodeRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsServerConstants.NamenodeRole NAMENODE
public static final HdfsServerConstants.NamenodeRole BACKUP
public static final HdfsServerConstants.NamenodeRole CHECKPOINT
public static HdfsServerConstants.NamenodeRole[] values()
for (HdfsServerConstants.NamenodeRole c : HdfsServerConstants.NamenodeRole.values()) System.out.println(c);
public static HdfsServerConstants.NamenodeRole 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 String toString()
toString in class Enum<HdfsServerConstants.NamenodeRole>Copyright © 2022 Apache Software Foundation. All rights reserved.