| Modifier and Type | Class | Description |
|---|---|---|
static class |
Quota.Counts |
Counters for quota counts.
|
| Enum Constant | Description |
|---|---|
NAMESPACE |
The namespace usage, i.e.
|
STORAGESPACE |
The storage space usage in bytes including replication.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isViolated(long quota,
long usage) |
Is quota violated?
The quota is violated if quota is set and usage > quota.
|
static Quota |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Quota[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quota NAMESPACE
public static final Quota STORAGESPACE
public static Quota[] values()
for (Quota c : Quota.values()) System.out.println(c);
public static Quota 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 static boolean isViolated(long quota,
long usage)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.