Package com.vmware.vim25.mo
Class ClusterComputeResource
java.lang.Object
com.vmware.vim25.mo.ManagedObject
com.vmware.vim25.mo.ExtensibleManagedObject
com.vmware.vim25.mo.ManagedEntity
com.vmware.vim25.mo.ComputeResource
com.vmware.vim25.mo.ClusterComputeResource
-
Constructor Summary
ConstructorsConstructorDescriptionClusterComputeResource(ServerConnection serverConnection, ManagedObjectReference mor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHost_Task(HostConnectSpec spec, boolean asConnected, ResourcePool resourcePool) addHost_Task(HostConnectSpec spec, boolean asConnected, ResourcePool resourcePool, String license) voidvoidclusterEnterMaintenanceMode(HostSystem[] hosts, OptionValue[] option) clusterEnterMaintenanceMode(HostSystem[] host, OptionValue[] option, ClusterComputeResourceMaintenanceInfo info) configureHCI_Task(ClusterComputeResourceHCIConfigSpec clusterSpec, ClusterComputeResourceHostConfigurationInput[] hostInputs) extendHCI_Task(ClusterComputeResourceHostConfigurationInput[] hostInputs, SDDCBase vSanConfigSpec) Finds all enabled and disabled VM-VM Affinity and Anti-Affinity rules, involving the given Virtual Machine.This API can be invoked to get the current CPU, memory and storage usage in the cluster.moveHostInto_Task(HostSystem host, ResourcePool resourcePool) moveInto_Task(HostSystem[] hosts) placeVm(PlacementSpec placementSpec) This method returns a PlacementResult object.recommendHostsForVm(VirtualMachine vm, ResourcePool pool) reconfigureCluster_Task(ClusterConfigSpec spec, boolean modify) voidvoidsetCryptoMode(String cryptoMode, ClusterComputeResourceCryptoModePolicy policy) validateHCIConfiguration(ClusterComputeResourceHCIConfigSpec hciConfigSpec, HostSystem[] hosts) Methods inherited from class com.vmware.vim25.mo.ComputeResource
disableNetworkBoot_Task, enableNetworkBoot_Task, getConfigManagerEnabled, getConfigurationEx, getDatastore, getEnvironmentBrowser, getHost, getLifecycleManaged, getNetwork, getNetworkBootMode, getNetworks, getResourcePool, getSummary, reconfigureComputeResource_TaskMethods inherited from class com.vmware.vim25.mo.ManagedEntity
destroy_Task, getAlarmActionEabled, getConfigIssue, getConfigStatus, getCustomValue, getDeclaredAlarmState, getDisabledMethod, getEffectiveRole, getName, getOverallStatus, getParent, getPermission, getRecentTasks, getTag, getTriggeredAlarmState, reload, rename_TaskMethods inherited from class com.vmware.vim25.mo.ExtensibleManagedObject
getAvailableField, getValues, setCustomValueMethods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setCachedProperty, setMOR, setServerConnection, toString, waitForValues
-
Constructor Details
-
ClusterComputeResource
-
-
Method Details
-
getActionHistory
-
getConfiguration
-
getDrsFault
-
getDrsRecommendation
-
getHciConfig
-
getMigrationHistory
-
getRecommendation
-
getSummaryEx
-
abandonHciWorkflow
- Throws:
InvalidStateRuntimeFaultRemoteException
-
addHost_Task
public Task addHost_Task(HostConnectSpec spec, boolean asConnected, ResourcePool resourcePool, String license) throws DuplicateName, HostConnectFault, InvalidLogin, RuntimeFault, RemoteException -
applyRecommendation
- Throws:
RuntimeFaultRemoteException
-
cancelRecommendation
- Throws:
RuntimeFaultRemoteException
-
configureHCI_Task
public Task configureHCI_Task(ClusterComputeResourceHCIConfigSpec clusterSpec, ClusterComputeResourceHostConfigurationInput[] hostInputs) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
clusterEnterMaintenanceMode
public ClusterEnterMaintenanceResult clusterEnterMaintenanceMode(HostSystem[] host, OptionValue[] option, ClusterComputeResourceMaintenanceInfo info) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
evcManager
- Throws:
RuntimeFaultRemoteException
-
extendHCI_Task
public Task extendHCI_Task(ClusterComputeResourceHostConfigurationInput[] hostInputs, SDDCBase vSanConfigSpec) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
getSystemVMsRestrictedDatastores
- Throws:
RuntimeFaultRemoteException
-
reconfigureCluster_Task
public Task reconfigureCluster_Task(ClusterConfigSpec spec, boolean modify) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
refreshRecommendation
- Throws:
RuntimeFaultRemoteException
-
setCryptoMode
public void setCryptoMode(String cryptoMode, ClusterComputeResourceCryptoModePolicy policy) throws InvalidArgument, InvalidRequest, RuntimeFault, RemoteException -
stampAllRulesWithUuid_Task
- Throws:
RuntimeFaultRemoteException
-
validateHCIConfiguration
public ClusterComputeResourceValidationResultBase[] validateHCIConfiguration(ClusterComputeResourceHCIConfigSpec hciConfigSpec, HostSystem[] hosts) throws InvalidState, RuntimeFault, RemoteException - Throws:
InvalidStateRuntimeFaultRemoteException
-
addHost_Task
public Task addHost_Task(HostConnectSpec spec, boolean asConnected, ResourcePool resourcePool) throws InvalidLogin, HostConnectFault, RuntimeFault, RemoteException -
clusterEnterMaintenanceMode
public ClusterEnterMaintenanceResult clusterEnterMaintenanceMode(HostSystem[] hosts, OptionValue[] option) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException- Since:
- SDK5.0
-
moveHostInto_Task
public Task moveHostInto_Task(HostSystem host, ResourcePool resourcePool) throws TooManyHosts, InvalidState, RuntimeFault, RemoteException -
moveInto_Task
public Task moveInto_Task(HostSystem[] hosts) throws TooManyHosts, DuplicateName, InvalidState, RuntimeFault, RemoteException -
recommendHostsForVm
public ClusterHostRecommendation[] recommendHostsForVm(VirtualMachine vm, ResourcePool pool) throws RuntimeFault, RemoteException - Throws:
RuntimeFaultRemoteException
-
retrieveDasAdvancedRuntimeInfo
public ClusterDasAdvancedRuntimeInfo retrieveDasAdvancedRuntimeInfo() throws RuntimeFault, RemoteException- Throws:
RuntimeFaultRemoteException- Since:
- 4.0
-
findRulesForVm
Finds all enabled and disabled VM-VM Affinity and Anti-Affinity rules, involving the given Virtual Machine.- Parameters:
vm- The vm whose rules need to be looked up.- Returns:
- Array of rule info
- Throws:
RuntimeFaultRemoteException- Since:
- 6.0
-
getResourceUsage
This API can be invoked to get the current CPU, memory and storage usage in the cluster.- Returns:
- An instance of ClusterResourceUsageSummary
- Throws:
RuntimeFaultRemoteException- Since:
- 6.0
-
placeVm
public PlacementResult placeVm(PlacementSpec placementSpec) throws InvalidArgument, InvalidState, RuntimeFault, RemoteException This method returns a PlacementResult object. This API can be invoked to ask DRS for a set of recommendations for moving a virtual machine and its virtual disks into a cluster.- Parameters:
placementSpec- Specification for placing a virtual machine and its virtual disks- Returns:
- PlacementResult
- Throws:
InvalidArgumentInvalidStateRuntimeFaultRemoteException- Since:
- 6.0
-