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 |
Host(long id,
AllocationState allocationState,
int averageLoad,
String capabilities,
long 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,
long jobId,
AsyncJob.Status jobStatus,
Date lastPinged,
long managementServerId,
long memoryAllocated,
long memoryTotal,
long memoryUsed,
String name,
long networkKbsRead,
long networkKbsWrite,
long osCategoryId,
long osCategoryName,
long podId,
String podName,
Date removed,
Host.State state,
Host.Type type,
String version,
long zoneId,
String zoneName)
|
Host
public Host(long id,
AllocationState allocationState,
int averageLoad,
String capabilities,
long 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,
long jobId,
AsyncJob.Status jobStatus,
Date lastPinged,
long managementServerId,
long memoryAllocated,
long memoryTotal,
long memoryUsed,
String name,
long networkKbsRead,
long networkKbsWrite,
long osCategoryId,
long osCategoryName,
long podId,
String podName,
Date removed,
Host.State state,
Host.Type type,
String version,
long zoneId,
String zoneName)
builder
public static Host.Builder builder()
getId
public long getId()
getAllocationState
public AllocationState getAllocationState()
getAverageLoad
public int getAverageLoad()
getCapabilities
public String getCapabilities()
getClusterId
public long getClusterId()
getClusterName
public String getClusterName()
getClusterType
public Host.ClusterType getClusterType()
getCpuAllocated
public String getCpuAllocated()
getCpuNumber
public int getCpuNumber()
getCpuSpeed
public int getCpuSpeed()
getCpuUsed
public String getCpuUsed()
getCpuWithOverProvisioning
public float getCpuWithOverProvisioning()
getCreated
public Date getCreated()
getDisconnected
public Date getDisconnected()
getDiskSizeAllocated
public long getDiskSizeAllocated()
getDiskSizeTotal
public long getDiskSizeTotal()
getEvents
public String getEvents()
isHasEnoughCapacity
public boolean isHasEnoughCapacity()
getHostTags
public String getHostTags()
getHypervisor
public String getHypervisor()
getIpAddress
public String getIpAddress()
isLocalStorageActive
public boolean isLocalStorageActive()
getJobId
public long getJobId()
getJobStatus
public AsyncJob.Status getJobStatus()
getLastPinged
public Date getLastPinged()
getManagementServerId
public long getManagementServerId()
getMemoryAllocated
public long getMemoryAllocated()
getMemoryTotal
public long getMemoryTotal()
getMemoryUsed
public long getMemoryUsed()
getName
public String getName()
getNetworkKbsRead
public long getNetworkKbsRead()
getNetworkKbsWrite
public long getNetworkKbsWrite()
getOsCategoryId
public long getOsCategoryId()
getOsCategoryName
public long getOsCategoryName()
getPodId
public long getPodId()
getPodName
public String getPodName()
getRemoved
public Date getRemoved()
getState
public Host.State getState()
getType
public Host.Type getType()
getVersion
public String getVersion()
getZoneId
public long getZoneId()
getZoneName
public String getZoneName()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
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.