Class FcdReconcileDatastoreInventoryOperations


  • @Sample(name="fcd-reconciledatastoreinventoryoperations",
            description="This sample reconcile the datastore inventory info of virtual storage objects and schedules reconcile of the inventory info of virtual storage objects on one of the hosts that is connected with the datastore from vslm.")
    public class FcdReconcileDatastoreInventoryOperations
    extends com.vmware.connection.ConnectedVimServiceBase
     FcdReconcileDatastoreInventoryOperations
    
     This sample executes reconcile related
     operations on a given VStorageObject from vslm:
    
     1. Reconcile the datastore inventory info of virtual storage objects.
     2. Schedule reconcile of the inventory info of
        virtual storage objects on one of the hosts that is connected
        with the datastore
    
     Parameters:
     url                    [required] : url of the web service
     username               [required] : username for the authentication
     password               [required] : password for the authentication
     datastorename          [required] : Name of the datastore which contains
                                         the virtual storage object
    
     Command Line:
     Reconcile the datastore inventory info of virtual storage objects.
     run.bat com.vmware.fcd.FcdReconcileDatastoreInventoryOperations --url [webserviceurl]
     --username [username] --password [password] --datastorename [datastorename]
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase

        com.vmware.connection.ConnectedVimServiceBase.ConnectionException
    • Field Summary

      • Fields inherited from class com.vmware.connection.ConnectedVimServiceBase

        PROP_ME_NAME, SVC_INST_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void setDatastoreName​(java.lang.String datastoreName)  
      • Methods inherited from class com.vmware.connection.ConnectedVimServiceBase

        basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FcdReconcileDatastoreInventoryOperations

        public FcdReconcileDatastoreInventoryOperations()
    • Method Detail

      • setDatastoreName

        @Option(name="datastorename",
                required=true,
                description="Name of datastore that needs to be reconciled from vslm.")
        public void setDatastoreName​(java.lang.String datastoreName)
        Parameters:
        datastoreName - the datastoreName to set
      • run

        @Action
        public void run()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception