Class VirtualMachine


  • public class VirtualMachine
    extends Object
    Class VirtualMachine
    • Method Detail

      • getId

        public String getId()
        Returns:
        the ID of the virtual machine
      • getAccount

        @Nullable
        public String 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

        @Nullable
        public String getDisplayName()
        Returns:
        user generated name. The name of the virtual machine is returned if no displayname exists.
      • getCreated

        @Nullable
        public Date getCreated()
        Returns:
        the date when this virtual machine was created
      • getDomain

        @Nullable
        public String getDomain()
        Returns:
        the name of the domain in which the virtual machine exists
      • getDomainId

        @Nullable
        public String 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

        @Nullable
        public String getGroup()
        Returns:
        the group name of the virtual machine
      • getGroupId

        @Nullable
        public String getGroupId()
        Returns:
        the group ID of the virtual machine
      • getGuestOSId

        @Nullable
        public String getGuestOSId()
        Returns:
        Os type ID of the virtual machine
      • isHAEnabled

        public boolean isHAEnabled()
        Returns:
        true if high-availability is enabled, false otherwise
      • getHostId

        @Nullable
        public String getHostId()
        Returns:
        the ID of the host for the virtual machine
      • getHostname

        @Nullable
        public String getHostname()
        Returns:
        the name of the host for the virtual machine
      • getIPAddress

        @Nullable
        public String getIPAddress()
        Returns:
        the ip address of the virtual machine
      • getISODisplayText

        @Nullable
        public String getISODisplayText()
        Returns:
        an alternate display text of the ISO attached to the virtual machine
      • getISOId

        @Nullable
        public String getISOId()
        Returns:
        the ID of the ISO attached to the virtual machine
      • getISOName

        @Nullable
        public String getISOName()
        Returns:
        the name of the ISO attached to the virtual machine
      • getJobId

        @Nullable
        public String 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

        @Nullable
        public Integer getJobStatus()
        Returns:
        shows the current pending asynchronous job status
      • getMemory

        public long getMemory()
        Returns:
        the memory allocated for the virtual machine
      • getName

        @Nullable
        public String getName()
        Returns:
        the name of the virtual machine
      • getNetworkKbsRead

        @Nullable
        public Long getNetworkKbsRead()
        Returns:
        the incoming network traffic on the vm
      • getNetworkKbsWrite

        @Nullable
        public Long getNetworkKbsWrite()
        Returns:
        the outgoing network traffic on the host
      • getPassword

        @Nullable
        public String 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

        @Nullable
        public String getPublicIP()
        Returns:
        public IP of this virtual machine
      • getPublicIPId

        @Nullable
        public String getPublicIPId()
        Returns:
        ID of the public IP of this virtual machine
      • getRootDeviceId

        @Nullable
        public String getRootDeviceId()
        Returns:
        device ID of the root volume
      • getRootDeviceType

        @Nullable
        public String getRootDeviceType()
        Returns:
        device type of the root volume
      • getServiceOfferingId

        @Nullable
        public String getServiceOfferingId()
        Returns:
        the ID of the service offering of the virtual machine
      • getServiceOfferingName

        @Nullable
        public String getServiceOfferingName()
        Returns:
        the name of the service offering of the virtual machine
      • getTemplateDisplayText

        @Nullable
        public String getTemplateDisplayText()
        Returns:
        an alternate display text of the template for the virtual machine
      • getTemplateId

        @Nullable
        public String 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

        @Nullable
        public String getTemplateName()
        Returns:
        the name of the template for the virtual machine
      • getZoneId

        @Nullable
        public String getZoneId()
        Returns:
        the ID of the availability zone for the virtual machine
      • getZoneName

        @Nullable
        public String getZoneName()
        Returns:
        the name of the availability zone for the virtual machine
      • getNICs

        public Set<NIC> getNICs()
      • getHypervisor

        @Nullable
        public String getHypervisor()
        Returns:
        type of the hypervisor
      • getSecurityGroups

        public Set<SecurityGroup> getSecurityGroups()
        Returns:
        list of security groups associated with the virtual machine
      • getTags

        public Set<Tag> getTags()
        Returns:
        the tags for the virtual machine
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()