com.vmware.vim25.mo
Class ResourcePool

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.ExtensibleManagedObject
          extended by com.vmware.vim25.mo.ManagedEntity
              extended by com.vmware.vim25.mo.ResourcePool
Direct Known Subclasses:
VirtualApp

public class ResourcePool
extends ManagedEntity

The managed object class corresponding to the one defined in VI SDK API reference.

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
ResourcePool(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 Task createChildVM_Task(VirtualMachineConfigSpec config, HostSystem host)
           
 ResourcePool createResourcePool(String name, ResourceConfigSpec spec)
           
 VirtualApp createVApp(String name, ResourceConfigSpec resSpec, VAppConfigSpec configSpec, Folder vmFolder)
           
 void destroyChildren()
           
 ResourceConfigSpec[] getChildConfiguration()
           
 ResourceConfigSpec getConfig()
           
 ComputeResource getOwner()
           
 ResourcePool[] getResourcePools()
           
 ResourcePoolRuntimeInfo getRuntime()
           
 ResourcePoolSummary getSummary()
           
 VirtualMachine[] getVMs()
           
 HttpNfcLease importVApp(ImportSpec spec, Folder folder, HostSystem host)
           
 void moveIntoResourcePool(ManagedEntity[] entities)
           
 ResourceConfigOption queryResourceConfigOption()
           
 void refreshRuntime()
           
 Task registerChildVM_Task(String path, String name, HostSystem host)
           
 void updateChildResourceConfiguration(ResourceConfigSpec[] spec)
           
 void updateConfig(String name, ResourceConfigSpec spec)
           
 
Methods 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_Task
 
Methods inherited from class com.vmware.vim25.mo.ExtensibleManagedObject
getAvailableField, getValues, setCustomValue
 
Methods 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, setMOR, setServerConnection, toString, waitForValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePool

public ResourcePool(ServerConnection serverConnection,
                    ManagedObjectReference mor)
Method Detail

getChildConfiguration

public ResourceConfigSpec[] getChildConfiguration()

getConfig

public ResourceConfigSpec getConfig()

getOwner

public ComputeResource getOwner()
                         throws InvalidProperty,
                                RuntimeFault,
                                RemoteException
Throws:
InvalidProperty
RuntimeFault
RemoteException

getResourcePools

public ResourcePool[] getResourcePools()
                                throws InvalidProperty,
                                       RuntimeFault,
                                       RemoteException
Throws:
InvalidProperty
RuntimeFault
RemoteException

getRuntime

public ResourcePoolRuntimeInfo getRuntime()

getSummary

public ResourcePoolSummary getSummary()

getVMs

public VirtualMachine[] getVMs()
                        throws InvalidProperty,
                               RuntimeFault,
                               RemoteException
Throws:
InvalidProperty
RuntimeFault
RemoteException

createChildVM_Task

public Task createChildVM_Task(VirtualMachineConfigSpec config,
                               HostSystem host)
                        throws VmConfigFault,
                               FileFault,
                               OutOfBounds,
                               InvalidName,
                               InvalidDatastore,
                               InsufficientResourcesFault,
                               RuntimeFault,
                               RemoteException
Throws:
VmConfigFault
FileFault
OutOfBounds
InvalidName
InvalidDatastore
InsufficientResourcesFault
RuntimeFault
RemoteException
Since:
SDK4.0

createVApp

public VirtualApp createVApp(String name,
                             ResourceConfigSpec resSpec,
                             VAppConfigSpec configSpec,
                             Folder vmFolder)
                      throws InvalidName,
                             DuplicateName,
                             InsufficientResourcesFault,
                             InvalidState,
                             VmConfigFault,
                             RuntimeFault,
                             RemoteException
Throws:
InvalidName
DuplicateName
InsufficientResourcesFault
InvalidState
VmConfigFault
RuntimeFault
RemoteException
Since:
SDK4.0

importVApp

public HttpNfcLease importVApp(ImportSpec spec,
                               Folder folder,
                               HostSystem host)
                        throws VmConfigFault,
                               FileFault,
                               OutOfBounds,
                               DuplicateName,
                               InvalidName,
                               InvalidDatastore,
                               InsufficientResourcesFault,
                               RuntimeFault,
                               RemoteException
Throws:
VmConfigFault
FileFault
OutOfBounds
DuplicateName
InvalidName
InvalidDatastore
InsufficientResourcesFault
RuntimeFault
RemoteException
Since:
SDK4.0

refreshRuntime

public void refreshRuntime()
                    throws RuntimeFault,
                           RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.1

registerChildVM_Task

public Task registerChildVM_Task(String path,
                                 String name,
                                 HostSystem host)
                          throws OutOfBounds,
                                 AlreadyExists,
                                 InvalidDatastore,
                                 NotFound,
                                 InvalidName,
                                 VmConfigFault,
                                 InsufficientResourcesFault,
                                 FileFault,
                                 RuntimeFault,
                                 RemoteException
Throws:
OutOfBounds
AlreadyExists
InvalidDatastore
NotFound
InvalidName
VmConfigFault
InsufficientResourcesFault
FileFault
RuntimeFault
RemoteException
Since:
SDK4.0

createResourcePool

public ResourcePool createResourcePool(String name,
                                       ResourceConfigSpec spec)
                                throws InvalidName,
                                       DuplicateName,
                                       InsufficientResourcesFault,
                                       RuntimeFault,
                                       RemoteException
Throws:
InvalidName
DuplicateName
InsufficientResourcesFault
RuntimeFault
RemoteException

destroyChildren

public void destroyChildren()
                     throws RuntimeFault,
                            RemoteException
Throws:
RuntimeFault
RemoteException

moveIntoResourcePool

public void moveIntoResourcePool(ManagedEntity[] entities)
                          throws DuplicateName,
                                 InsufficientResourcesFault,
                                 RuntimeFault,
                                 RemoteException
Throws:
DuplicateName
InsufficientResourcesFault
RuntimeFault
RemoteException

queryResourceConfigOption

public ResourceConfigOption queryResourceConfigOption()
                                               throws RuntimeFault,
                                                      RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.1

updateChildResourceConfiguration

public void updateChildResourceConfiguration(ResourceConfigSpec[] spec)
                                      throws InvalidState,
                                             InsufficientResourcesFault,
                                             RuntimeFault,
                                             RemoteException
Throws:
InvalidState
InsufficientResourcesFault
RuntimeFault
RemoteException

updateConfig

public void updateConfig(String name,
                         ResourceConfigSpec spec)
                  throws InvalidName,
                         DuplicateName,
                         ConcurrentAccess,
                         InsufficientResourcesFault,
                         RuntimeFault,
                         RemoteException
Throws:
InvalidName
DuplicateName
ConcurrentAccess
InsufficientResourcesFault
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.