public class Capacity extends Object implements Comparable<Capacity>
Modifier and Type | Class and Description |
---|---|
static class |
Capacity.Builder<T extends Capacity.Builder<T>> |
static class |
Capacity.Type |
Modifier | Constructor and Description |
---|---|
protected |
Capacity(long capacityTotal,
long capacityUsed,
double percentUsed,
String podId,
String podName,
Capacity.Type type,
String zoneId,
String zoneName) |
Modifier and Type | Method and Description |
---|---|
static Capacity.Builder<?> |
builder() |
int |
compareTo(Capacity other) |
boolean |
equals(Object obj) |
long |
getCapacityTotal() |
long |
getCapacityUsed() |
double |
getPercentUsed() |
String |
getPodId() |
String |
getPodName() |
Capacity.Type |
getType() |
String |
getZoneId() |
String |
getZoneName() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
Capacity.Builder<?> |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"capacitytotal","capacityused","percentused","podid","podname","type","zoneid","zonename"}) protected Capacity(long capacityTotal, long capacityUsed, double percentUsed, @Nullable String podId, @Nullable String podName, @Nullable Capacity.Type type, @Nullable String zoneId, @Nullable String zoneName)
public static Capacity.Builder<?> builder()
public Capacity.Builder<?> toBuilder()
public long getCapacityTotal()
public long getCapacityUsed()
public double getPercentUsed()
@Nullable public Capacity.Type getType()
protected com.google.common.base.Objects.ToStringHelper string()
public int compareTo(Capacity other)
compareTo
in interface Comparable<Capacity>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.