@InterfaceAudience.Public public enum GlobalStorageStatistics extends Enum<GlobalStorageStatistics>
列挙型定数と説明 |
---|
INSTANCE
The GlobalStorageStatistics singleton.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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)
指定した名前を持つこの型の列挙型定数を返します。
|
static GlobalStorageStatistics[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合public 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 © 2016 Apache Software Foundation. All rights reserved.