com.vmware.vim25.mo
Class Folder

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.Folder
Direct Known Subclasses:
StoragePod

public class Folder
extends ManagedEntity

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

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
Folder(ServerConnection sc, ManagedObjectReference mor)
           
 
Method Summary
 Task addStandaloneHost_Task(HostConnectSpec spec, ComputeResourceConfigSpec compResSpec, boolean addConnected)
           
 Task addStandaloneHost_Task(HostConnectSpec spec, ComputeResourceConfigSpec compResSpec, boolean addConnected, String license)
           
 ClusterComputeResource createCluster(String name, ClusterConfigSpec spec)
           
 ClusterComputeResource createClusterEx(String name, ClusterConfigSpecEx spec)
           
 Datacenter createDatacenter(String name)
           
 Task createDVS_Task(DVSCreateSpec spec)
           
 Folder createFolder(String name)
           
 StoragePod createStoragePod(String name)
           
 Task createVM_Task(VirtualMachineConfigSpec config, ResourcePool pool, HostSystem host)
           
 ManagedEntity[] getChildEntity()
           
 String[] getChildType()
           
 Task moveIntoFolder_Task(ManagedEntity[] entities)
           
 Task registerVM_Task(String path, String name, boolean asTemplate, ResourcePool pool, HostSystem host)
           
 Task unregisterAndDestroy_Task()
           
 
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

Folder

public Folder(ServerConnection sc,
              ManagedObjectReference mor)
Method Detail

getChildEntity

public ManagedEntity[] getChildEntity()
                               throws InvalidProperty,
                                      RuntimeFault,
                                      RemoteException
Throws:
InvalidProperty
RuntimeFault
RemoteException

getChildType

public String[] getChildType()

addStandaloneHost_Task

public Task addStandaloneHost_Task(HostConnectSpec spec,
                                   ComputeResourceConfigSpec compResSpec,
                                   boolean addConnected)
                            throws InvalidLogin,
                                   HostConnectFault,
                                   RuntimeFault,
                                   RemoteException
Throws:
InvalidLogin
HostConnectFault
RuntimeFault
RemoteException

addStandaloneHost_Task

public Task addStandaloneHost_Task(HostConnectSpec spec,
                                   ComputeResourceConfigSpec compResSpec,
                                   boolean addConnected,
                                   String license)
                            throws InvalidLogin,
                                   HostConnectFault,
                                   RuntimeFault,
                                   RemoteException
Throws:
InvalidLogin
HostConnectFault
RuntimeFault
RemoteException

createCluster

public ClusterComputeResource createCluster(String name,
                                            ClusterConfigSpec spec)
                                     throws InvalidName,
                                            DuplicateName,
                                            RuntimeFault,
                                            RemoteException
Throws:
InvalidName
DuplicateName
RuntimeFault
RemoteException

createClusterEx

public ClusterComputeResource createClusterEx(String name,
                                              ClusterConfigSpecEx spec)
                                       throws InvalidName,
                                              DuplicateName,
                                              RuntimeFault,
                                              RemoteException
Throws:
InvalidName
DuplicateName
RuntimeFault
RemoteException

createDatacenter

public Datacenter createDatacenter(String name)
                            throws InvalidName,
                                   DuplicateName,
                                   RuntimeFault,
                                   RemoteException
Throws:
InvalidName
DuplicateName
RuntimeFault
RemoteException

createDVS_Task

public Task createDVS_Task(DVSCreateSpec spec)
                    throws DvsNotAuthorized,
                           DvsFault,
                           DuplicateName,
                           InvalidName,
                           NotFound,
                           RuntimeFault,
                           RemoteException
Throws:
DvsNotAuthorized
DvsFault
DuplicateName
InvalidName
NotFound
RuntimeFault
RemoteException
Since:
4.0

createFolder

public Folder createFolder(String name)
                    throws InvalidName,
                           DuplicateName,
                           RuntimeFault,
                           RemoteException
Throws:
InvalidName
DuplicateName
RuntimeFault
RemoteException

createStoragePod

public StoragePod createStoragePod(String name)
                            throws DuplicateName,
                                   InvalidName,
                                   RuntimeFault,
                                   RemoteException
Throws:
DuplicateName
InvalidName
RuntimeFault
RemoteException
Since:
SDK5.0

createVM_Task

public Task createVM_Task(VirtualMachineConfigSpec config,
                          ResourcePool pool,
                          HostSystem host)
                   throws InvalidName,
                          VmConfigFault,
                          DuplicateName,
                          FileFault,
                          OutOfBounds,
                          InsufficientResourcesFault,
                          InvalidDatastore,
                          RuntimeFault,
                          RemoteException
Throws:
InvalidName
VmConfigFault
DuplicateName
FileFault
OutOfBounds
InsufficientResourcesFault
InvalidDatastore
RuntimeFault
RemoteException

moveIntoFolder_Task

public Task moveIntoFolder_Task(ManagedEntity[] entities)
                         throws DuplicateName,
                                InvalidState,
                                InvalidFolder,
                                RuntimeFault,
                                RemoteException
Throws:
DuplicateName
InvalidState
InvalidFolder
RuntimeFault
RemoteException

registerVM_Task

public Task registerVM_Task(String path,
                            String name,
                            boolean asTemplate,
                            ResourcePool pool,
                            HostSystem host)
                     throws VmConfigFault,
                            InvalidName,
                            DuplicateName,
                            FileFault,
                            OutOfBounds,
                            InsufficientResourcesFault,
                            InvalidDatastore,
                            AlreadyExists,
                            NotFound,
                            RuntimeFault,
                            RemoteException
Throws:
VmConfigFault
InvalidName
DuplicateName
FileFault
OutOfBounds
InsufficientResourcesFault
InvalidDatastore
AlreadyExists
NotFound
RuntimeFault
RemoteException

unregisterAndDestroy_Task

public Task unregisterAndDestroy_Task()
                               throws InvalidState,
                                      ConcurrentAccess,
                                      RuntimeFault,
                                      RemoteException
Throws:
InvalidState
ConcurrentAccess
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.