@InterfaceAudience.Public public enum GlobalStorageStatistics extends Enum<GlobalStorageStatistics>
Enum Constant and Description |
---|
INSTANCE
The GlobalStorageStatistics singleton.
|
Modifier and Type | Method and Description |
---|---|
StorageStatistics |
get(String name)
Get the StorageStatistics object with the given name.
|
Iterator<StorageStatistics> |
iterator()
Get an iterator that we can use to iterate throw all the global storage
statistics objects.
|
StorageStatistics |
put(String name,
org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider provider)
Create or return the StorageStatistics object with the given name.
|
void |
reset()
Reset all global storage statistics.
|
static GlobalStorageStatistics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalStorageStatistics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalStorageStatistics INSTANCE
public static GlobalStorageStatistics[] values()
for (GlobalStorageStatistics c : GlobalStorageStatistics.values()) System.out.println(c);
public static GlobalStorageStatistics 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 StorageStatistics get(String name)
name
- The storage statistics object name.public StorageStatistics put(String name, org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider provider)
name
- The storage statistics object name.provider
- An object which can create a new StorageStatistics
object if needed.RuntimeException
- If the StorageStatisticsProvider provides a null
object or a new StorageStatistics object with the
wrong name.public void reset()
public Iterator<StorageStatistics> iterator()
Copyright © 2022 Apache Software Foundation. All rights reserved.