Package org.jclouds.cloudstack.domain
Class VirtualMachine
java.lang.Object
org.jclouds.cloudstack.domain.VirtualMachine
Class VirtualMachine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
VirtualMachine.Builder<T extends VirtualMachine.Builder<T>>
static enum
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VirtualMachine
(String id, String account, long cpuCount, long cpuSpeed, String cpuUsed, String displayName, Date created, String domain, String domainId, boolean usesVirtualNetwork, String group, String groupId, String guestOSId, boolean HAEnabled, String hostId, String hostname, String IPAddress, String ISODisplayText, String ISOId, String ISOName, String jobId, Integer jobStatus, long memory, String name, Long networkKbsRead, Long networkKbsWrite, String password, boolean passwordEnabled, String publicIP, String publicIPId, String rootDeviceId, String rootDeviceType, String serviceOfferingId, String serviceOfferingName, VirtualMachine.State state, String templateDisplayText, String templateId, String templateName, String zoneId, String zoneName, Set<NIC> nics, String hypervisor, Set<SecurityGroup> securityGroups, Set<Tag> tags) -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualMachine.Builder
<?> builder()
boolean
long
long
float
getGroup()
getId()
getISOId()
getJobId()
long
getName()
getNICs()
getState()
getTags()
int
hashCode()
boolean
boolean
protected com.google.common.base.MoreObjects.ToStringHelper
string()
toString()
boolean
-
Constructor Details
-
VirtualMachine
@ConstructorProperties({"id","account","cpunumber","cpuspeed","cpuused","displayname","created","domain","domainid","forvirtualnetwork","group","groupid","guestosid","haenable","hostid","hostname","ipaddress","isodisplaytext","isoid","isoname","jobid","jobstatus","memory","name","networkkbsread","networkkbswrite","password","passwordenabled","publicip","publicipid","rootdeviceid","rootdevicetype","serviceofferingid","serviceofferingname","state","templatedisplaytext","templateid","templatename","zoneid","zonename","nic","hypervisor","securitygroup","tags"}) protected VirtualMachine(String id, @Nullable String account, long cpuCount, long cpuSpeed, @Nullable String cpuUsed, @Nullable String displayName, @Nullable Date created, @Nullable String domain, @Nullable String domainId, boolean usesVirtualNetwork, @Nullable String group, @Nullable String groupId, @Nullable String guestOSId, boolean HAEnabled, @Nullable String hostId, @Nullable String hostname, String IPAddress, String ISODisplayText, @Nullable String ISOId, @Nullable String ISOName, @Nullable String jobId, @Nullable Integer jobStatus, long memory, @Nullable String name, @Nullable Long networkKbsRead, @Nullable Long networkKbsWrite, @Nullable String password, boolean passwordEnabled, @Nullable String publicIP, @Nullable String publicIPId, @Nullable String rootDeviceId, @Nullable String rootDeviceType, @Nullable String serviceOfferingId, @Nullable String serviceOfferingName, @Nullable VirtualMachine.State state, @Nullable String templateDisplayText, @Nullable String templateId, @Nullable String templateName, @Nullable String zoneId, @Nullable String zoneName, @Nullable Set<NIC> nics, @Nullable String hypervisor, @Nullable Set<SecurityGroup> securityGroups, @Nullable Set<Tag> tags)
-
-
Method Details
-
builder
-
toBuilder
-
getId
- Returns:
- the ID of the virtual machine
-
getAccount
- Returns:
- the account associated with the virtual machine
-
getCpuCount
public long getCpuCount()- Returns:
- the number of cpu this virtual machine is running with
-
getCpuSpeed
public long getCpuSpeed()- Returns:
- the speed of each cpu
-
getCpuUsed
public float getCpuUsed()- Returns:
- the amount of the vm's CPU currently used
-
getDisplayName
- Returns:
- user generated name. The name of the virtual machine is returned if no displayname exists.
-
getCreated
- Returns:
- the date when this virtual machine was created
-
getDomain
- Returns:
- the name of the domain in which the virtual machine exists
-
getDomainId
- Returns:
- the ID of the domain in which the virtual machine exists
-
usesVirtualNetwork
public boolean usesVirtualNetwork()- Returns:
- the virtual network for the service offering
-
getGroup
- Returns:
- the group name of the virtual machine
-
getGroupId
- Returns:
- the group ID of the virtual machine
-
getGuestOSId
- Returns:
- Os type ID of the virtual machine
-
isHAEnabled
public boolean isHAEnabled()- Returns:
- true if high-availability is enabled, false otherwise
-
getHostId
- Returns:
- the ID of the host for the virtual machine
-
getHostname
- Returns:
- the name of the host for the virtual machine
-
getIPAddress
- Returns:
- the ip address of the virtual machine
-
getISODisplayText
- Returns:
- an alternate display text of the ISO attached to the virtual machine
-
getISOId
- Returns:
- the ID of the ISO attached to the virtual machine
-
getISOName
- Returns:
- the name of the ISO attached to the virtual machine
-
getJobId
- Returns:
- shows the current pending asynchronous job ID. This tag is not returned if no current pending jobs are acting on the virtual machine
-
getJobStatus
- Returns:
- shows the current pending asynchronous job status
-
getMemory
public long getMemory()- Returns:
- the memory allocated for the virtual machine
-
getName
- Returns:
- the name of the virtual machine
-
getNetworkKbsRead
- Returns:
- the incoming network traffic on the vm
-
getNetworkKbsWrite
- Returns:
- the outgoing network traffic on the host
-
getPassword
- Returns:
- the password (if exists) of the virtual machine
-
isPasswordEnabled
public boolean isPasswordEnabled()- Returns:
- true if the password rest feature is enabled, false otherwise
-
getPublicIP
- Returns:
- public IP of this virtual machine
-
getPublicIPId
- Returns:
- ID of the public IP of this virtual machine
-
getRootDeviceId
- Returns:
- device ID of the root volume
-
getRootDeviceType
- Returns:
- device type of the root volume
-
getServiceOfferingId
- Returns:
- the ID of the service offering of the virtual machine
-
getServiceOfferingName
- Returns:
- the name of the service offering of the virtual machine
-
getState
- Returns:
- the state of the virtual machine
-
getTemplateDisplayText
- Returns:
- an alternate display text of the template for the virtual machine
-
getTemplateId
- Returns:
- the ID of the template for the virtual machine. A -1 is returned if the virtual machine was created from an ISO file.
-
getTemplateName
- Returns:
- the name of the template for the virtual machine
-
getZoneId
- Returns:
- the ID of the availability zone for the virtual machine
-
getZoneName
- Returns:
- the name of the availability zone for the virtual machine
-
getNICs
-
getHypervisor
- Returns:
- type of the hypervisor
-
getSecurityGroups
- Returns:
- list of security groups associated with the virtual machine
-
getTags
- Returns:
- the tags for the virtual machine
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
-