Package com.vmware.fcd.helpers
Class FcdHelper
- java.lang.Object
-
- com.vmware.fcd.helpers.FcdHelper
-
public class FcdHelper extends java.lang.ObjectHelper class for FCD Samples
-
-
Constructor Summary
Constructors Constructor Description FcdHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<com.vmware.vim25.VirtualMachineProfileSpec>generateVirtualMachineProfileSpec(java.lang.String pbmProfileId, java.lang.String deviceGroupId, java.lang.String faultDomainId)Utility method to create a VirtualMachineProfileSpec from profileId, deviceGroupId and faultDomainIdstatic java.lang.StringgetFcdFilePath(com.vmware.vim25.VStorageObject vStorageObject)Utility 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)Utility method to verify if Fcd Id List<String> is included in fcdIDListstatic com.vmware.vim25.IDmakeId(java.lang.String idStr)Utility method to wrap ID string in an ID object.
-
-
-
Method Detail
-
makeId
public static com.vmware.vim25.ID makeId(java.lang.String idStr)
Utility method to wrap ID string in an ID object.- Parameters:
idStr- The idStr to be wrapped.- Returns:
- id in ID format.
-
generateVirtualMachineProfileSpec
public static java.util.List<com.vmware.vim25.VirtualMachineProfileSpec> generateVirtualMachineProfileSpec(java.lang.String pbmProfileId, java.lang.String deviceGroupId, java.lang.String faultDomainId)Utility method to create a VirtualMachineProfileSpec from profileId, deviceGroupId and faultDomainId- Parameters:
pbmProfileId- Id of SPBM profiledeviceGroupId- Id of the replication device group.faultDomainId- ID of the fault domain to which the group belongs.- Returns:
-
isFcdIdInFcdList
public static boolean isFcdIdInFcdList(java.util.List<java.lang.String> fcdStrIdList, java.util.List<com.vmware.vim25.ID> fcdIdList)Utility method to verify if Fcd Id List<String> is included in fcdIDList- Parameters:
fcdStrIdList- List of FCD IDs as StringfcdIdList- List of FCD IDs as ID- Returns:
- true if fcdIDList<ID> contains all the fcds in fcdStrIDList<String>
-
getFcdFilePath
public static java.lang.String getFcdFilePath(com.vmware.vim25.VStorageObject vStorageObject)
Utility method to get the FilePath of a given VStorageObject.- Parameters:
vStorageObject- The vStorageObject whose path is to be found.- Returns:
- filePath of vStorageObject
-
-