public static enum HdfsConstants.StoragePolicySatisfierMode extends Enum<HdfsConstants.StoragePolicySatisfierMode>
Enum Constant and Description |
---|
EXTERNAL
This mode represents that SPS service is running outside Namenode as an
external service and can accept any SPS call request.
|
NONE
This mode represents that SPS service is disabled and cannot accept any
SPS call request.
|
Modifier and Type | Method and Description |
---|---|
static HdfsConstants.StoragePolicySatisfierMode |
fromString(String s)
Convert the given String to a StoragePolicySatisfierMode.
|
static HdfsConstants.StoragePolicySatisfierMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsConstants.StoragePolicySatisfierMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsConstants.StoragePolicySatisfierMode EXTERNAL
public static final HdfsConstants.StoragePolicySatisfierMode NONE
public static HdfsConstants.StoragePolicySatisfierMode[] values()
for (HdfsConstants.StoragePolicySatisfierMode c : HdfsConstants.StoragePolicySatisfierMode.values()) System.out.println(c);
public static HdfsConstants.StoragePolicySatisfierMode 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 HdfsConstants.StoragePolicySatisfierMode fromString(String s)
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.