Package org.jclouds.cloudstack.domain
Class Host.Builder<T extends Host.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.Host.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected AllocationState
allocationState
protected int
averageLoad
protected String
capabilities
protected String
clusterId
protected String
clusterName
protected Host.ClusterType
clusterType
protected String
cpuAllocated
protected int
cpuNumber
protected int
cpuSpeed
protected String
cpuUsed
protected float
cpuWithOverProvisioning
protected Date
created
protected Date
disconnected
protected long
diskSizeAllocated
protected long
diskSizeTotal
protected String
events
protected boolean
hasEnoughCapacity
protected String
hypervisor
protected String
id
protected String
ipAddress
protected String
jobId
protected AsyncJob.Status
jobStatus
protected Date
lastPinged
protected boolean
localStorageActive
protected String
managementServerId
protected long
memoryAllocated
protected long
memoryTotal
protected long
memoryUsed
protected String
name
protected long
networkKbsRead
protected long
networkKbsWrite
protected String
osCategoryId
protected String
osCategoryName
protected String
podId
protected String
podName
protected Date
removed
protected Host.State
state
protected com.google.common.collect.ImmutableSet.Builder<String>
tags
protected Host.Type
type
protected String
version
protected String
zoneId
protected String
zoneName
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
allocationState(AllocationState allocationState)
T
averageLoad(int averageLoad)
Host
build()
T
capabilities(String capabilities)
T
clusterId(String clusterId)
T
clusterName(String clusterName)
T
clusterType(Host.ClusterType clusterType)
T
cpuAllocated(String cpuAllocated)
T
cpuNumber(int cpuNumber)
T
cpuSpeed(int cpuSpeed)
T
cpuUsed(String cpuUsed)
T
cpuWithOverProvisioning(float cpuWithOverProvisioning)
T
created(Date created)
T
disconnected(Date disconnected)
T
diskSizeAllocated(long diskSizeAllocated)
T
diskSizeTotal(long diskSizeTotal)
T
events(String events)
T
fromHost(Host in)
T
hasEnoughCapacity(boolean hasEnoughCapacity)
T
hypervisor(String hypervisor)
T
id(String id)
T
ipAddress(String ipAddress)
T
jobId(String jobId)
T
jobStatus(AsyncJob.Status jobStatus)
T
lastPinged(Date lastPinged)
T
localStorageActive(boolean localStorageActive)
T
managementServerId(String managementServerId)
T
memoryAllocated(long memoryAllocated)
T
memoryTotal(long memoryTotal)
T
memoryUsed(long memoryUsed)
T
name(String name)
T
networkKbsRead(long networkKbsRead)
T
networkKbsWrite(long networkKbsWrite)
T
osCategoryId(String osCategoryId)
T
osCategoryName(String osCategoryName)
T
podId(String podId)
T
podName(String podName)
T
removed(Date removed)
protected abstract T
self()
T
state(Host.State state)
T
tag(String tag)
T
tags(Iterable<String> tags)
T
type(Host.Type type)
T
version(String version)
T
zoneId(String zoneId)
T
zoneName(String zoneName)
-
-
-
Field Detail
-
id
protected String id
-
allocationState
protected AllocationState allocationState
-
averageLoad
protected int averageLoad
-
capabilities
protected String capabilities
-
clusterId
protected String clusterId
-
clusterName
protected String clusterName
-
clusterType
protected Host.ClusterType clusterType
-
cpuAllocated
protected String cpuAllocated
-
cpuNumber
protected int cpuNumber
-
cpuSpeed
protected int cpuSpeed
-
cpuUsed
protected String cpuUsed
-
cpuWithOverProvisioning
protected float cpuWithOverProvisioning
-
created
protected Date created
-
disconnected
protected Date disconnected
-
diskSizeAllocated
protected long diskSizeAllocated
-
diskSizeTotal
protected long diskSizeTotal
-
events
protected String events
-
hasEnoughCapacity
protected boolean hasEnoughCapacity
-
tags
protected com.google.common.collect.ImmutableSet.Builder<String> tags
-
hypervisor
protected String hypervisor
-
ipAddress
protected String ipAddress
-
localStorageActive
protected boolean localStorageActive
-
jobId
protected String jobId
-
jobStatus
protected AsyncJob.Status jobStatus
-
lastPinged
protected Date lastPinged
-
managementServerId
protected String managementServerId
-
memoryAllocated
protected long memoryAllocated
-
memoryTotal
protected long memoryTotal
-
memoryUsed
protected long memoryUsed
-
name
protected String name
-
networkKbsRead
protected long networkKbsRead
-
networkKbsWrite
protected long networkKbsWrite
-
osCategoryId
protected String osCategoryId
-
osCategoryName
protected String osCategoryName
-
podId
protected String podId
-
podName
protected String podName
-
removed
protected Date removed
-
state
protected Host.State state
-
type
protected Host.Type type
-
version
protected String version
-
zoneId
protected String zoneId
-
zoneName
protected String zoneName
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- See Also:
Host.getId()
-
allocationState
public T allocationState(AllocationState allocationState)
- See Also:
Host.getAllocationState()
-
averageLoad
public T averageLoad(int averageLoad)
- See Also:
Host.getAverageLoad()
-
capabilities
public T capabilities(String capabilities)
- See Also:
Host.getCapabilities()
-
clusterId
public T clusterId(String clusterId)
- See Also:
Host.getClusterId()
-
clusterName
public T clusterName(String clusterName)
- See Also:
Host.getClusterName()
-
clusterType
public T clusterType(Host.ClusterType clusterType)
- See Also:
Host.getClusterType()
-
cpuAllocated
public T cpuAllocated(String cpuAllocated)
- See Also:
Host.getCpuAllocated()
-
cpuNumber
public T cpuNumber(int cpuNumber)
- See Also:
Host.getCpuNumber()
-
cpuSpeed
public T cpuSpeed(int cpuSpeed)
- See Also:
Host.getCpuSpeed()
-
cpuUsed
public T cpuUsed(String cpuUsed)
- See Also:
Host.getCpuUsed()
-
cpuWithOverProvisioning
public T cpuWithOverProvisioning(float cpuWithOverProvisioning)
- See Also:
Host.getCpuWithOverProvisioning()
-
created
public T created(Date created)
- See Also:
Host.getCreated()
-
disconnected
public T disconnected(Date disconnected)
- See Also:
Host.getDisconnected()
-
diskSizeAllocated
public T diskSizeAllocated(long diskSizeAllocated)
- See Also:
Host.getDiskSizeAllocated()
-
diskSizeTotal
public T diskSizeTotal(long diskSizeTotal)
- See Also:
Host.getDiskSizeTotal()
-
events
public T events(String events)
- See Also:
Host.getEvents()
-
hasEnoughCapacity
public T hasEnoughCapacity(boolean hasEnoughCapacity)
- See Also:
Host.isHasEnoughCapacity()
-
tags
public T tags(Iterable<String> tags)
- See Also:
Host.getTags()
-
tag
public T tag(String tag)
- See Also:
Host.getTags()
-
hypervisor
public T hypervisor(String hypervisor)
- See Also:
Host.getHypervisor()
-
ipAddress
public T ipAddress(String ipAddress)
- See Also:
Host.getIpAddress()
-
localStorageActive
public T localStorageActive(boolean localStorageActive)
- See Also:
Host.isLocalStorageActive()
-
jobId
public T jobId(String jobId)
- See Also:
Host.getJobId()
-
jobStatus
public T jobStatus(AsyncJob.Status jobStatus)
- See Also:
Host.getJobStatus()
-
lastPinged
public T lastPinged(Date lastPinged)
- See Also:
Host.getLastPinged()
-
managementServerId
public T managementServerId(String managementServerId)
- See Also:
Host.getManagementServerId()
-
memoryAllocated
public T memoryAllocated(long memoryAllocated)
- See Also:
Host.getMemoryAllocated()
-
memoryTotal
public T memoryTotal(long memoryTotal)
- See Also:
Host.getMemoryTotal()
-
memoryUsed
public T memoryUsed(long memoryUsed)
- See Also:
Host.getMemoryUsed()
-
name
public T name(String name)
- See Also:
Host.getName()
-
networkKbsRead
public T networkKbsRead(long networkKbsRead)
- See Also:
Host.getNetworkKbsRead()
-
networkKbsWrite
public T networkKbsWrite(long networkKbsWrite)
- See Also:
Host.getNetworkKbsWrite()
-
osCategoryId
public T osCategoryId(String osCategoryId)
- See Also:
Host.getOsCategoryId()
-
osCategoryName
public T osCategoryName(String osCategoryName)
- See Also:
Host.getOsCategoryName()
-
podId
public T podId(String podId)
- See Also:
Host.getPodId()
-
podName
public T podName(String podName)
- See Also:
Host.getPodName()
-
removed
public T removed(Date removed)
- See Also:
Host.getRemoved()
-
state
public T state(Host.State state)
- See Also:
Host.getState()
-
type
public T type(Host.Type type)
- See Also:
Host.getType()
-
version
public T version(String version)
- See Also:
Host.getVersion()
-
zoneId
public T zoneId(String zoneId)
- See Also:
Host.getZoneId()
-
zoneName
public T zoneName(String zoneName)
- See Also:
Host.getZoneName()
-
build
public Host build()
-
-