Class PbmUtil


  • public class PbmUtil
    extends java.lang.Object
    Utility class for PBM Samples
    • Constructor Summary

      Constructors 
      Constructor Description
      PbmUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.vmware.pbm.PbmCapabilityMetadata getCapabilityMeta​(java.lang.String capabilityName, java.util.List<com.vmware.pbm.PbmCapabilityMetadataPerCategory> schema)
      Returns the Capability Metadata for the specified capability name
      static com.vmware.pbm.PbmCapabilityProfile getPbmProfile​(Connection connection, java.lang.String name)
      This method returns the Profile Spec for the given Storage Profile name
      static com.vmware.pbm.PbmProfileResourceType getStorageResourceType()
      Returns the Storage Resource Type Object
      static com.vmware.pbm.PbmCapabilityMetadata getTagCategoryMeta​(java.lang.String tagCategoryName, java.util.List<com.vmware.pbm.PbmCapabilityMetadataPerCategory> schema)
      Returns the Capability Metadata associated to a Tag Category
      • Methods inherited from class java.lang.Object

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

      • PbmUtil

        public PbmUtil()
    • Method Detail

      • getCapabilityMeta

        public static com.vmware.pbm.PbmCapabilityMetadata getCapabilityMeta​(java.lang.String capabilityName,
                                                                             java.util.List<com.vmware.pbm.PbmCapabilityMetadataPerCategory> schema)
        Returns the Capability Metadata for the specified capability name
        Parameters:
        capabilityName -
        schema -
        Returns:
      • getPbmProfile

        public static com.vmware.pbm.PbmCapabilityProfile getPbmProfile​(Connection connection,
                                                                        java.lang.String name)
                                                                 throws com.vmware.pbm.InvalidArgumentFaultMsg,
                                                                        com.vmware.pbm.RuntimeFaultFaultMsg,
                                                                        com.vmware.pbm.RuntimeFaultFaultMsg
        This method returns the Profile Spec for the given Storage Profile name
        Returns:
        Throws:
        com.vmware.pbm.InvalidArgumentFaultMsg
        com.vmware.pbm.RuntimeFaultFaultMsg
        com.vmware.pbm.RuntimeFaultFaultMsg
      • getStorageResourceType

        public static com.vmware.pbm.PbmProfileResourceType getStorageResourceType()
        Returns the Storage Resource Type Object
        Returns:
      • getTagCategoryMeta

        public static com.vmware.pbm.PbmCapabilityMetadata getTagCategoryMeta​(java.lang.String tagCategoryName,
                                                                              java.util.List<com.vmware.pbm.PbmCapabilityMetadataPerCategory> schema)
        Returns the Capability Metadata associated to a Tag Category
        Parameters:
        tagCategoryName -
        schema -
        Returns: