Class FcdHelper


  • public class FcdHelper
    extends java.lang.Object
    Helper 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 faultDomainId
      static java.lang.String getFcdFilePath​(com.vmware.vim25.VStorageObject vStorageObject)
      Utility 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)
      Utility method to verify if Fcd Id List<String> is included in fcdIDList
      static com.vmware.vim25.ID makeId​(java.lang.String idStr)
      Utility method to wrap ID string in an ID object.
      • Methods inherited from class java.lang.Object

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

      • FcdHelper

        public FcdHelper()
    • 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 profile
        deviceGroupId - 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 String
        fcdIdList - 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