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<T extends Host.Builder<T>>
           
static class Host.ClusterType
           
static class Host.State
           
static class Host.Type
           
 
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, 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
static Host.Builder<?> builder()
           
 int compareTo(Host other)
           
 boolean equals(Object obj)
           
 AllocationState getAllocationState()
           
 int getAverageLoad()
           
 String getCapabilities()
           
 String 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 getHypervisor()
           
 String getId()
           
 String getIpAddress()
           
 String getJobId()
           
 AsyncJob.Status getJobStatus()
           
 Date getLastPinged()
           
 String getManagementServerId()
           
 long getMemoryAllocated()
           
 long getMemoryTotal()
           
 long getMemoryUsed()
           
 String getName()
           
 long getNetworkKbsRead()
           
 long getNetworkKbsWrite()
           
 String getOsCategoryId()
           
 String getOsCategoryName()
           
 String getPodId()
           
 String getPodName()
           
 Date getRemoved()
           
 Host.State getState()
           
 Set<String> getTags()
           
 Host.Type getType()
           
 String getVersion()
           
 String getZoneId()
           
 String getZoneName()
           
 int hashCode()
           
 boolean isHasEnoughCapacity()
           
 boolean isLocalStorageActive()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Host.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
                                          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()

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()

getTags

public Set<String> getTags()
Returns:
the tags for the host

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-2013 jclouds. All Rights Reserved.