Package com.vmware.fcd.helpers
Class FcdUtil
- java.lang.Object
-
- com.vmware.fcd.helpers.FcdUtil
-
public class FcdUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFcdUtil.DiskProvisioningTypes
-
Constructor Summary
Constructors Constructor Description FcdUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.vmware.vim25.VslmCreateSpecgenerateVslmCreateSpec(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 vStorageObjectstatic java.lang.StringgetFcdFilePath(com.vmware.vim25.VStorageObject vStorageObject)Util method to get the FilePath of a given VStorageObject.static booleanisFcdIdInFcdList(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
-
-
-
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.IllegalArgumentExceptionThis method constructs a VslmCreateSpec for the vStorageObject- Parameters:
dsMor- The ManagedObjectReferece of the datastoreprovisioningType- The provisioningType of the diskdeviceName- Device namevStorageObjectName- Given FCD namevStorageObjectSizeInMB- 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 StringfcdIdList- 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
-
-