java.io.Serializable, java.lang.Comparable<GlobalStorageStatistics>@Public public enum GlobalStorageStatistics extends java.lang.Enum<GlobalStorageStatistics>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
GlobalStorageStatistics.StorageStatisticsProvider |
A callback API for creating new StorageStatistics instances.
|
| Enum Constant | Description |
|---|---|
INSTANCE |
The GlobalStorageStatistics singleton.
|
| Modifier and Type | Method | Description |
|---|---|---|
StorageStatistics |
get(java.lang.String name) |
Get the StorageStatistics object with the given name.
|
java.util.Iterator<StorageStatistics> |
iterator() |
Get an iterator that we can use to iterate throw all the global storage
statistics objects.
|
StorageStatistics |
put(java.lang.String name,
GlobalStorageStatistics.StorageStatisticsProvider provider) |
Create or return the StorageStatistics object with the given name.
|
void |
reset() |
Reset all global storage statistics.
|
static GlobalStorageStatistics |
valueOf(java.lang.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(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 StorageStatistics get(java.lang.String name)
name - The storage statistics object name.public StorageStatistics put(java.lang.String name, GlobalStorageStatistics.StorageStatisticsProvider provider)
name - The storage statistics object name.provider - An object which can create a new StorageStatistics
object if needed.java.lang.RuntimeException - If the StorageStatisticsProvider provides a null
object or a new StorageStatistics object with the
wrong name.public void reset()
public java.util.Iterator<StorageStatistics> iterator()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.