Package org.jclouds.cloudstack.domain
Class Host
java.lang.Object
org.jclouds.cloudstack.domain.Host
- All Implemented Interfaces:
Comparable<Host>
Represents a host issued by Cloudstack
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Host.Builder<T extends Host.Builder<T>>
static enum
static enum
static enum
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionstatic Host.Builder
<?> builder()
int
boolean
int
int
int
float
long
long
getId()
getJobId()
long
long
long
getName()
long
long
getPodId()
getState()
getTags()
getType()
int
hashCode()
boolean
boolean
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Host.Builder
<?> toString()
-
Constructor Details
-
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 Details
-
builder
-
toBuilder
-
getId
-
getAllocationState
-
getAverageLoad
public int getAverageLoad() -
getCapabilities
-
getClusterId
-
getClusterName
-
getClusterType
-
getCpuAllocated
-
getCpuNumber
public int getCpuNumber() -
getCpuSpeed
public int getCpuSpeed() -
getCpuUsed
-
getCpuWithOverProvisioning
public float getCpuWithOverProvisioning() -
getCreated
-
getDisconnected
-
getDiskSizeAllocated
public long getDiskSizeAllocated() -
getDiskSizeTotal
public long getDiskSizeTotal() -
getEvents
-
isHasEnoughCapacity
public boolean isHasEnoughCapacity() -
getTags
- Returns:
- the tags for the host
-
getHypervisor
-
getIpAddress
-
isLocalStorageActive
public boolean isLocalStorageActive() -
getJobId
-
getJobStatus
-
getLastPinged
-
getManagementServerId
-
getMemoryAllocated
public long getMemoryAllocated() -
getMemoryTotal
public long getMemoryTotal() -
getMemoryUsed
public long getMemoryUsed() -
getName
-
getNetworkKbsRead
public long getNetworkKbsRead() -
getNetworkKbsWrite
public long getNetworkKbsWrite() -
getOsCategoryId
-
getOsCategoryName
-
getPodId
-
getPodName
-
getRemoved
-
getState
-
getType
-
getVersion
-
getZoneId
-
getZoneName
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Host>
-