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 Host.ClusterType getClusterType()
public int getCpuNumber()
public int getCpuSpeed()
public float getCpuWithOverProvisioning()
public long getDiskSizeAllocated()
public long getDiskSizeTotal()
public boolean isHasEnoughCapacity()
public boolean isLocalStorageActive()
@Nullable public AsyncJob.Status getJobStatus()
public long getMemoryAllocated()
public long getMemoryTotal()
public long getMemoryUsed()
public long getNetworkKbsRead()
public long getNetworkKbsWrite()
@Nullable public Host.State getState()
protected com.google.common.base.Objects.ToStringHelper string()
public int compareTo(Host other)
compareTo
in interface Comparable<Host>
Copyright © 2009-2013 jclouds. All Rights Reserved.