Class FcdUtil


  • public class FcdUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FcdUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.vmware.vim25.VslmCreateSpec generateVslmCreateSpec​(com.vmware.vim25.ManagedObjectReference dsMor, FcdUtil.DiskProvisioningTypes provisioningType, java.lang.String deviceName, java.lang.String vStorageObjectName, long vStorageObjectSizeInMB)
      This method constructs a VslmCreateSpec for the vStorageObject
      static java.lang.String getFcdFilePath​(com.vmware.vim25.VStorageObject vStorageObject)
      Util method to get the FilePath of a given VStorageObject.
      static boolean isFcdIdInFcdList​(java.util.List<java.lang.String> fcdStrIdList, java.util.List<com.vmware.vim25.ID> fcdIdList)
      Verifies if Fcd Id as string List is included in fcdIDList
      • Methods inherited from class java.lang.Object

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

      • FcdUtil

        public FcdUtil()
    • Method Detail

      • generateVslmCreateSpec

        public static com.vmware.vim25.VslmCreateSpec generateVslmCreateSpec​(com.vmware.vim25.ManagedObjectReference dsMor,
                                                                             FcdUtil.DiskProvisioningTypes provisioningType,
                                                                             java.lang.String deviceName,
                                                                             java.lang.String vStorageObjectName,
                                                                             long vStorageObjectSizeInMB)
                                                                      throws java.lang.IllegalArgumentException
        This method constructs a VslmCreateSpec for the vStorageObject
        Parameters:
        dsMor - The ManagedObjectReferece of the datastore
        provisioningType - The provisioningType of the disk
        deviceName - Device name
        vStorageObjectName - Given FCD name
        vStorageObjectSizeInMB - FCD size
        Returns:
        VslmCreateSpec
        Throws:
        java.lang.IllegalArgumentException
      • isFcdIdInFcdList

        public static boolean isFcdIdInFcdList​(java.util.List<java.lang.String> fcdStrIdList,
                                               java.util.List<com.vmware.vim25.ID> fcdIdList)
        Verifies if Fcd Id as string List is included in fcdIDList
        Parameters:
        fcdStrIdList - List of FCD IDs as String
        fcdIdList - List of FCD IDs as ID
        Returns:
        true if fcdIDListontains all the fcds in fcdStrIDList
      • getFcdFilePath

        public static java.lang.String getFcdFilePath​(com.vmware.vim25.VStorageObject vStorageObject)
        Util method to get the FilePath of a given VStorageObject.
        Parameters:
        vStorageObject - The vStorageObject whose path is to be found.
        Returns:
        filePath of vStorageObject