org.jclouds.cloudstack.domain
Class Host

java.lang.Object
  extended by 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

Nested Class Summary
static class Host.Builder
           
static class Host.ClusterType
           
static class Host.State
           
static class Host.Type
           
 
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)
           
 
Method Summary
static Host.Builder builder()
           
 int compareTo(Host other)
           
 boolean equals(Object o)
           
 AllocationState getAllocationState()
           
 int getAverageLoad()
           
 String getCapabilities()
           
 long getClusterId()
           
 String getClusterName()
           
 Host.ClusterType getClusterType()
           
 String getCpuAllocated()
           
 int getCpuNumber()
           
 int getCpuSpeed()
           
 String getCpuUsed()
           
 float getCpuWithOverProvisioning()
           
 Date getCreated()
           
 Date getDisconnected()
           
 long getDiskSizeAllocated()
           
 long getDiskSizeTotal()
           
 String getEvents()
           
 String getHostTags()
           
 String getHypervisor()
           
 long getId()
           
 String getIpAddress()
           
 long getJobId()
           
 AsyncJob.Status getJobStatus()
           
 Date getLastPinged()
           
 long getManagementServerId()
           
 long getMemoryAllocated()
           
 long getMemoryTotal()
           
 long getMemoryUsed()
           
 String getName()
           
 long getNetworkKbsRead()
           
 long getNetworkKbsWrite()
           
 long getOsCategoryId()
           
 long getOsCategoryName()
           
 long getPodId()
           
 String getPodName()
           
 Date getRemoved()
           
 Host.State getState()
           
 Host.Type getType()
           
 String getVersion()
           
 long getZoneId()
           
 String getZoneName()
           
 int hashCode()
           
 boolean isHasEnoughCapacity()
           
 boolean isLocalStorageActive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.