@InterfaceAudience.Private public static class SpaceQuotaSnapshot.SpaceQuotaStatus extends Object
Constructor and Description |
---|
SpaceQuotaStatus(SpaceViolationPolicy policy) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SpaceViolationPolicy |
getPolicy()
The violation policy which may be null.
|
int |
hashCode() |
boolean |
isInViolation()
true if the quota is being violated, false otherwise. |
static SpaceQuotaSnapshot.SpaceQuotaStatus |
notInViolation()
Returns a singleton referring to a quota which is not in violation.
|
static QuotaProtos.SpaceQuotaStatus |
toProto(SpaceQuotaSnapshot.SpaceQuotaStatus status) |
static SpaceQuotaSnapshot.SpaceQuotaStatus |
toStatus(QuotaProtos.SpaceQuotaStatus proto) |
String |
toString() |
public SpaceQuotaStatus(SpaceViolationPolicy policy)
public SpaceViolationPolicy getPolicy()
isInViolation()
is true
, and false
otherwise.public boolean isInViolation()
true
if the quota is being violated, false
otherwise.public static SpaceQuotaSnapshot.SpaceQuotaStatus notInViolation()
public static QuotaProtos.SpaceQuotaStatus toProto(SpaceQuotaSnapshot.SpaceQuotaStatus status)
public static SpaceQuotaSnapshot.SpaceQuotaStatus toStatus(QuotaProtos.SpaceQuotaStatus proto)