com.vmware.vim25.mo
Class Datastore

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.Datastore

public class Datastore
extends ManagedEntity

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

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
Datastore(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 StoragePlacementResult datastoreEnterMaintenanceMode()
           
 Task datastoreExitMaintenanceMode_Task()
           
 void destroyDatastore()
           
 HostDatastoreBrowser getBrowser()
           
 DatastoreCapability getCapability()
           
 DatastoreHostMount[] getHost()
           
 DatastoreInfo getInfo()
           
 StorageIORMInfo getIormConfiguration()
           
 DatastoreSummary getSummary()
           
 VirtualMachine[] getVms()
           
 void refreshDatastore()
           
 void refreshDatastoreStorageInfo()
           
 void renameDatastore(String newName)
           
 Task updateVirtualMachineFiles_Task(DatastoreMountPathDatastorePair[] mountPathDatastoreMapping)
           
 
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

Datastore

public Datastore(ServerConnection serverConnection,
                 ManagedObjectReference mor)
Method Detail

getBrowser

public HostDatastoreBrowser getBrowser()

getCapability

public DatastoreCapability getCapability()

getHost

public DatastoreHostMount[] getHost()

getInfo

public DatastoreInfo getInfo()

getIormConfiguration

public StorageIORMInfo getIormConfiguration()
Since:
SDK4.1

getSummary

public DatastoreSummary getSummary()

getVms

public VirtualMachine[] getVms()

datastoreEnterMaintenanceMode

public StoragePlacementResult datastoreEnterMaintenanceMode()
                                                     throws InvalidState,
                                                            RuntimeFault,
                                                            RemoteException
Throws:
InvalidState
RuntimeFault
RemoteException
Since:
SDK5.0

datastoreExitMaintenanceMode_Task

public Task datastoreExitMaintenanceMode_Task()
                                       throws InvalidState,
                                              RuntimeFault,
                                              RemoteException
Throws:
InvalidState
RuntimeFault
RemoteException
Since:
SDK5.0

destroyDatastore

public void destroyDatastore()
                      throws ResourceInUse,
                             RuntimeFault,
                             RemoteException
Throws:
ResourceInUse
RuntimeFault
RemoteException

refreshDatastore

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

refreshDatastoreStorageInfo

public void refreshDatastoreStorageInfo()
                                 throws RuntimeFault,
                                        RemoteException
Throws:
RuntimeFault
RemoteException
Since:
SDK4.0

renameDatastore

public void renameDatastore(String newName)
                     throws InvalidName,
                            DuplicateName,
                            RuntimeFault,
                            RemoteException
Throws:
InvalidName
DuplicateName
RuntimeFault
RemoteException

updateVirtualMachineFiles_Task

public Task updateVirtualMachineFiles_Task(DatastoreMountPathDatastorePair[] mountPathDatastoreMapping)
                                    throws PlatformConfigFault,
                                           ResourceInUse,
                                           TaskInProgress,
                                           InvalidDatastore,
                                           RuntimeFault,
                                           RemoteException
Throws:
PlatformConfigFault
ResourceInUse
TaskInProgress
InvalidDatastore
RuntimeFault
RemoteException
Since:
SDK4.1


Copyright © 2011-2012. All Rights Reserved.