com.vmware.vcloud.sdk
Class VirtualCpu

java.lang.Object
  extended by com.vmware.vcloud.sdk.HardwareItem
      extended by com.vmware.vcloud.sdk.VirtualCpu

public class VirtualCpu
extends HardwareItem

Helper class to access the Virtual Cpu Resource in vCloud API.

See Also:
RASDType

Method Summary
 int getCoresPerSocket()
          Gets the CoresPerSocket property
 int getNoOfCpus()
          Get the Virtual CPU Quantity.
 void setCoresPerSocket(int coresPerSocket)
          Set the CoresPerSocket property
 void setNoOfCpus(int cpuCount)
          Set the Virtual CPU Quantity.
 
Methods inherited from class com.vmware.vcloud.sdk.HardwareItem
getItemResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNoOfCpus

public int getNoOfCpus()
Get the Virtual CPU Quantity. Number of Virtual CPU Processors


setNoOfCpus

public void setNoOfCpus(int cpuCount)
Set the Virtual CPU Quantity. Number of Virtual CPU Processors. Use the VM.updateCpu(VirtualCpu) to update the cpu of the VM.

Since:
API 1.0, SDK 1.5

getCoresPerSocket

public int getCoresPerSocket()
                      throws VCloudException
Gets the CoresPerSocket property

Returns:
Integer
Throws:
VCloudException
Since:
API 5.5, SDK 5.5

setCoresPerSocket

public void setCoresPerSocket(int coresPerSocket)
Set the CoresPerSocket property

Parameters:
coresPerSocket -
Since:
API 5.5, SDK 5.5


Copyright © 2016. All Rights Reserved.