public enum Quota extends Enum<Quota>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Quota.CountsCounters for quota counts. | 
| Enum Constant and Description | 
|---|
| NAMESPACEThe namespace usage, i.e. | 
| STORAGESPACEThe storage space usage in bytes including replication. | 
| Modifier and Type | Method and 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(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(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 boolean isViolated(long quota,
                                 long usage)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.