Package org.jclouds.cloudstack.domain
Class Host
- java.lang.Object
-
- org.jclouds.cloudstack.domain.Host
-
- All Implemented Interfaces:
Comparable<Host>
public class Host extends Object implements Comparable<Host>
Represents a host issued by Cloudstack
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Host.Builder<T extends Host.Builder<T>>
static class
Host.ClusterType
static class
Host.State
static class
Host.Type
-
Constructor Summary
Constructors Modifier Constructor 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)
-
Method Summary
-
-
-
Constructor Detail
-
Host
@ConstructorProperties({"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)
-
-
Method Detail
-
builder
public static Host.Builder<?> builder()
-
toBuilder
public Host.Builder<?> toBuilder()
-
getId
public String getId()
-
getAllocationState
@Nullable public AllocationState getAllocationState()
-
getAverageLoad
public int getAverageLoad()
-
getClusterType
@Nullable public Host.ClusterType getClusterType()
-
getCpuNumber
public int getCpuNumber()
-
getCpuSpeed
public int getCpuSpeed()
-
getCpuWithOverProvisioning
public float getCpuWithOverProvisioning()
-
getDiskSizeAllocated
public long getDiskSizeAllocated()
-
getDiskSizeTotal
public long getDiskSizeTotal()
-
isHasEnoughCapacity
public boolean isHasEnoughCapacity()
-
isLocalStorageActive
public boolean isLocalStorageActive()
-
getJobStatus
@Nullable public AsyncJob.Status getJobStatus()
-
getMemoryAllocated
public long getMemoryAllocated()
-
getMemoryTotal
public long getMemoryTotal()
-
getMemoryUsed
public long getMemoryUsed()
-
getNetworkKbsRead
public long getNetworkKbsRead()
-
getNetworkKbsWrite
public long getNetworkKbsWrite()
-
getState
@Nullable public Host.State getState()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Host other)
- Specified by:
compareTo
in interfaceComparable<Host>
-
-