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
- Author:
- Andrei Savu
|
Constructor Summary |
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,
String hostTags,
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)
|
Host
@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
String hostTags,
@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)
builder
public static Host.Builder<?> builder()
toBuilder
public Host.Builder<?> toBuilder()
getId
public String getId()
getAllocationState
@Nullable
public AllocationState getAllocationState()
getAverageLoad
public int getAverageLoad()
getCapabilities
@Nullable
public String getCapabilities()
getClusterId
@Nullable
public String getClusterId()
getClusterName
@Nullable
public String getClusterName()
getClusterType
@Nullable
public Host.ClusterType getClusterType()
getCpuAllocated
@Nullable
public String getCpuAllocated()
getCpuNumber
public int getCpuNumber()
getCpuSpeed
public int getCpuSpeed()
getCpuUsed
@Nullable
public String getCpuUsed()
getCpuWithOverProvisioning
public float getCpuWithOverProvisioning()
getCreated
@Nullable
public Date getCreated()
getDisconnected
@Nullable
public Date getDisconnected()
getDiskSizeAllocated
public long getDiskSizeAllocated()
getDiskSizeTotal
public long getDiskSizeTotal()
getEvents
@Nullable
public String getEvents()
isHasEnoughCapacity
public boolean isHasEnoughCapacity()
getHostTags
@Nullable
public String getHostTags()
getHypervisor
@Nullable
public String getHypervisor()
getIpAddress
@Nullable
public String getIpAddress()
isLocalStorageActive
public boolean isLocalStorageActive()
getJobId
@Nullable
public String getJobId()
getJobStatus
@Nullable
public AsyncJob.Status getJobStatus()
getLastPinged
@Nullable
public Date getLastPinged()
getManagementServerId
@Nullable
public String getManagementServerId()
getMemoryAllocated
public long getMemoryAllocated()
getMemoryTotal
public long getMemoryTotal()
getMemoryUsed
public long getMemoryUsed()
getName
@Nullable
public String getName()
getNetworkKbsRead
public long getNetworkKbsRead()
getNetworkKbsWrite
public long getNetworkKbsWrite()
getOsCategoryId
@Nullable
public String getOsCategoryId()
getOsCategoryName
@Nullable
public String getOsCategoryName()
getPodId
@Nullable
public String getPodId()
getPodName
@Nullable
public String getPodName()
getRemoved
@Nullable
public Date getRemoved()
getState
@Nullable
public Host.State getState()
getType
@Nullable
public Host.Type getType()
getVersion
@Nullable
public String getVersion()
getZoneId
@Nullable
public String getZoneId()
getZoneName
@Nullable
public String getZoneName()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Host other)
- Specified by:
compareTo in interface Comparable<Host>
Copyright © 2009-2012 jclouds. All Rights Reserved.