com.vmware.vim25.mo
Class HostDatastoreSystem

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.HostDatastoreSystem

public class HostDatastoreSystem
extends ManagedObject

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

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
HostDatastoreSystem(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 void configureDatastorePrincipal(String userName, String password)
           
 Datastore createLocalDatastore(String name, String path)
           
 Datastore createNasDatastore(HostNasVolumeSpec spec)
           
 Datastore createVmfsDatastore(VmfsDatastoreCreateSpec spec)
           
 Datastore expandVmfsDatastore(Datastore datastore, VmfsDatastoreExpandSpec spec)
           
 Datastore extendVmfsDatastore(Datastore datastore, VmfsDatastoreExtendSpec spec)
           
 HostDatastoreSystemCapabilities getCapabilities()
           
 Datastore[] getDatastores()
           
 HostScsiDisk[] queryAvailableDisksForVmfs(Datastore datastore)
           
 HostUnresolvedVmfsVolume[] queryUnresolvedVmfsVolumes()
           
 VmfsDatastoreOption[] queryVmfsDatastoreCreateOptions(String devicePath)
           
 VmfsDatastoreOption[] queryVmfsDatastoreCreateOptions(String devicePath, int vmfsMajorVersion)
           
 VmfsDatastoreOption[] queryVmfsDatastoreExpandOptions(Datastore datastore)
           
 VmfsDatastoreOption[] queryVmfsDatastoreExtendOptions(Datastore datastore, String devicePath)
           
 VmfsDatastoreOption[] queryVmfsDatastoreExtendOptions(Datastore datastore, String devicePath, Boolean suppressExpandCandidates)
           
 void removeDatastore(Datastore datastore)
           
 Task resignatureUnresolvedVmfsVolume_Task(HostUnresolvedVmfsResignatureSpec resolutionSpec)
           
 void updateLocalSwapDatastore(Datastore datastore)
           
 
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

HostDatastoreSystem

public HostDatastoreSystem(ServerConnection serverConnection,
                           ManagedObjectReference mor)
Method Detail

getCapabilities

public HostDatastoreSystemCapabilities getCapabilities()

getDatastores

public Datastore[] getDatastores()

configureDatastorePrincipal

public void configureDatastorePrincipal(String userName,
                                        String password)
                                 throws HostConfigFault,
                                        InvalidState,
                                        RuntimeFault,
                                        RemoteException
Throws:
HostConfigFault
InvalidState
RuntimeFault
RemoteException

createLocalDatastore

public Datastore createLocalDatastore(String name,
                                      String path)
                               throws HostConfigFault,
                                      DuplicateName,
                                      RuntimeFault,
                                      RemoteException
Throws:
HostConfigFault
DuplicateName
RuntimeFault
RemoteException

createNasDatastore

public Datastore createNasDatastore(HostNasVolumeSpec spec)
                             throws HostConfigFault,
                                    DuplicateName,
                                    AlreadyExists,
                                    RuntimeFault,
                                    RemoteException
Throws:
HostConfigFault
DuplicateName
AlreadyExists
RuntimeFault
RemoteException

createVmfsDatastore

public Datastore createVmfsDatastore(VmfsDatastoreCreateSpec spec)
                              throws HostConfigFault,
                                     DuplicateName,
                                     RuntimeFault,
                                     RemoteException
Throws:
HostConfigFault
DuplicateName
RuntimeFault
RemoteException

expandVmfsDatastore

public Datastore expandVmfsDatastore(Datastore datastore,
                                     VmfsDatastoreExpandSpec spec)
                              throws NotFound,
                                     HostConfigFault,
                                     RuntimeFault,
                                     RemoteException
Throws:
NotFound
HostConfigFault
RuntimeFault
RemoteException
Since:
4.0

extendVmfsDatastore

public Datastore extendVmfsDatastore(Datastore datastore,
                                     VmfsDatastoreExtendSpec spec)
                              throws HostConfigFault,
                                     NotFound,
                                     RuntimeFault,
                                     RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryAvailableDisksForVmfs

public HostScsiDisk[] queryAvailableDisksForVmfs(Datastore datastore)
                                          throws HostConfigFault,
                                                 NotFound,
                                                 RuntimeFault,
                                                 RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryVmfsDatastoreCreateOptions

public VmfsDatastoreOption[] queryVmfsDatastoreCreateOptions(String devicePath)
                                                      throws HostConfigFault,
                                                             NotFound,
                                                             RuntimeFault,
                                                             RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryVmfsDatastoreCreateOptions

public VmfsDatastoreOption[] queryVmfsDatastoreCreateOptions(String devicePath,
                                                             int vmfsMajorVersion)
                                                      throws HostConfigFault,
                                                             NotFound,
                                                             RuntimeFault,
                                                             RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryVmfsDatastoreExtendOptions

public VmfsDatastoreOption[] queryVmfsDatastoreExtendOptions(Datastore datastore,
                                                             String devicePath)
                                                      throws HostConfigFault,
                                                             NotFound,
                                                             RuntimeFault,
                                                             RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryVmfsDatastoreExtendOptions

public VmfsDatastoreOption[] queryVmfsDatastoreExtendOptions(Datastore datastore,
                                                             String devicePath,
                                                             Boolean suppressExpandCandidates)
                                                      throws HostConfigFault,
                                                             NotFound,
                                                             RuntimeFault,
                                                             RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

queryVmfsDatastoreExpandOptions

public VmfsDatastoreOption[] queryVmfsDatastoreExpandOptions(Datastore datastore)
                                                      throws NotFound,
                                                             HostConfigFault,
                                                             RuntimeFault,
                                                             RemoteException
Throws:
NotFound
HostConfigFault
RuntimeFault
RemoteException
Since:
4.0

queryUnresolvedVmfsVolumes

public HostUnresolvedVmfsVolume[] queryUnresolvedVmfsVolumes()
                                                      throws RuntimeFault,
                                                             RemoteException
Throws:
RuntimeFault
RemoteException
Since:
4.0

removeDatastore

public void removeDatastore(Datastore datastore)
                     throws HostConfigFault,
                            ResourceInUse,
                            NotFound,
                            RuntimeFault,
                            RemoteException
Throws:
HostConfigFault
ResourceInUse
NotFound
RuntimeFault
RemoteException

resignatureUnresolvedVmfsVolume_Task

public Task resignatureUnresolvedVmfsVolume_Task(HostUnresolvedVmfsResignatureSpec resolutionSpec)
                                          throws VmfsAmbiguousMount,
                                                 HostConfigFault,
                                                 RuntimeFault,
                                                 RemoteException
Throws:
VmfsAmbiguousMount
HostConfigFault
RuntimeFault
RemoteException
Since:
4.0

updateLocalSwapDatastore

public void updateLocalSwapDatastore(Datastore datastore)
                              throws InaccessibleDatastore,
                                     DatastoreNotWritableOnHost,
                                     RuntimeFault,
                                     RemoteException
Throws:
InaccessibleDatastore
DatastoreNotWritableOnHost
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.