public class Host extends Object implements Comparable<Host>
| Modifier and Type | Class and Description |
|---|---|
static class |
Host.Builder<T extends Host.Builder<T>> |
static class |
Host.ClusterType |
static class |
Host.State |
static class |
Host.Type |
| Modifier | Constructor and Description |
|---|---|
protected |
Host(String id,
AllocationState allocationState,
int averageLoad,
String capabilities,
String clusterId,
String clusterName,
Host.ClusterType clusterType,
String cpuAllocated,
int cpuNumber,
int cpuSpeed,
String cpuUsed,
float cpuWithOverProvisioning,
Date created,
Date disconnected,
long diskSizeAllocated,
long diskSizeTotal,
String events,
boolean hasEnoughCapacity,
Iterable<String> tags,
String hypervisor,
String ipAddress,
boolean localStorageActive,
String jobId,
AsyncJob.Status jobStatus,
Date lastPinged,
String managementServerId,
long memoryAllocated,
long memoryTotal,
long memoryUsed,
String name,
long networkKbsRead,
long networkKbsWrite,
String osCategoryId,
String osCategoryName,
String podId,
String podName,
Date removed,
Host.State state,
Host.Type type,
String version,
String zoneId,
String zoneName) |
@ConstructorProperties(value={"id","allocationstate","averageload","capabilities","clusterid","clustername","clustertype","cpuallocated","cpunumber","cpuspeed","cpuused","cpuwithoverprovisioning","created","disconnected","disksizeallocated","disksizetotal","events","hasenoughcapacity","hosttags","hypervisor","ipaddress","islocalstorageactive","jobid","jobstatus","lastpinged","managementserverid","memoryallocated","memorytotal","memoryused","name","networkkbsread","networkkbswrite","oscategoryid","oscategoryname","podid","podname","removed","state","type","version","zoneid","zonename"}) protected Host(String id, @Nullable AllocationState allocationState, int averageLoad, @Nullable String capabilities, @Nullable String clusterId, @Nullable String clusterName, @Nullable Host.ClusterType clusterType, @Nullable String cpuAllocated, int cpuNumber, int cpuSpeed, @Nullable String cpuUsed, float cpuWithOverProvisioning, @Nullable Date created, @Nullable Date disconnected, long diskSizeAllocated, long diskSizeTotal, @Nullable String events, boolean hasEnoughCapacity, @Nullable Iterable<String> tags, @Nullable String hypervisor, @Nullable String ipAddress, boolean localStorageActive, @Nullable String jobId, @Nullable AsyncJob.Status jobStatus, @Nullable Date lastPinged, @Nullable String managementServerId, long memoryAllocated, long memoryTotal, long memoryUsed, @Nullable String name, long networkKbsRead, long networkKbsWrite, @Nullable String osCategoryId, @Nullable String osCategoryName, @Nullable String podId, @Nullable String podName, @Nullable Date removed, @Nullable Host.State state, @Nullable Host.Type type, @Nullable String version, @Nullable String zoneId, @Nullable String zoneName)
public static Host.Builder<?> builder()
public Host.Builder<?> toBuilder()
public String getId()
@Nullable public AllocationState getAllocationState()
public int getAverageLoad()
@Nullable public String getCapabilities()
@Nullable public String getClusterId()
@Nullable public String getClusterName()
@Nullable public Host.ClusterType getClusterType()
@Nullable public String getCpuAllocated()
public int getCpuNumber()
public int getCpuSpeed()
@Nullable public String getCpuUsed()
public float getCpuWithOverProvisioning()
@Nullable public Date getCreated()
@Nullable public Date getDisconnected()
public long getDiskSizeAllocated()
public long getDiskSizeTotal()
@Nullable public String getEvents()
public boolean isHasEnoughCapacity()
@Nullable public String getHypervisor()
@Nullable public String getIpAddress()
public boolean isLocalStorageActive()
@Nullable public String getJobId()
@Nullable public AsyncJob.Status getJobStatus()
@Nullable public Date getLastPinged()
@Nullable public String getManagementServerId()
public long getMemoryAllocated()
public long getMemoryTotal()
public long getMemoryUsed()
@Nullable public String getName()
public long getNetworkKbsRead()
public long getNetworkKbsWrite()
@Nullable public String getOsCategoryId()
@Nullable public String getOsCategoryName()
@Nullable public String getPodId()
@Nullable public String getPodName()
@Nullable public Date getRemoved()
@Nullable public Host.State getState()
@Nullable public Host.Type getType()
@Nullable public String getVersion()
@Nullable public String getZoneId()
@Nullable public String getZoneName()
protected com.google.common.base.Objects.ToStringHelper string()
public int compareTo(Host other)
compareTo in interface Comparable<Host>Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.