Class ConfigurationInfo


  • public final class ConfigurationInfo
    extends Object
    Management representation of a Configuration.
    Since:
    9
    See Also:
    Configuration
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ConfigurationInfofrom​(CompositeData cd)
      Returns a ConfigurationInfo object represented by the specified CompositeData.
      StringgetContents()
      Returns the textual representation of the configuration associated with this ConfigurationInfo, typically the contents of the configuration file that was used to create the configuration.
      StringgetDescription()
      Returns a short sentence that describes the configuration associated with this ConfigurationInfo (for example, "Low overhead configuration safe for continuous use in production environments".
      StringgetLabel()
      Returns the human-readable name (for example, "Continuous" or "Profiling") for the configuration associated with this ConfigurationInfo
      StringgetName()
      Returns the name of the configuration associated with this ConfigurationInfo (for example, "default").
      StringgetProvider()
      Returns the provider of the configuration associated with this ConfigurationInfo (for example, "OpenJDK").
      Map<String,​String>getSettings()
      Returns the settings for the configuration associated with this ConfigurationInfo.
      StringtoString()
      Returns a description of the configuration that is associated with this ConfigurationInfo.
    • Method Detail

      • getProvider

        public String getProvider()
        Returns the provider of the configuration associated with this ConfigurationInfo (for example, "OpenJDK").
        Returns:
        the provider, or null if doesn't exist
        See Also:
        Configuration.getProvider()
      • getContents

        public String getContents()
        Returns the textual representation of the configuration associated with this ConfigurationInfo, typically the contents of the configuration file that was used to create the configuration.
        Returns:
        contents, or null if doesn't exist
        See Also:
        Configuration.getContents()
      • getSettings

        public Map<String,​String> getSettings()
        Returns the settings for the configuration associated with this ConfigurationInfo.
        Returns:
        a Map with settings, not null
        See Also:
        Configuration.getSettings()
      • getLabel

        public String getLabel()
        Returns the human-readable name (for example, "Continuous" or "Profiling") for the configuration associated with this ConfigurationInfo
        Returns:
        the label, or null if doesn't exist
        See Also:
        Configuration.getLabel()
      • getName

        public String getName()
        Returns the name of the configuration associated with this ConfigurationInfo (for example, "default").
        Returns:
        the name, or null if doesn't exist
        See Also:
        Configuration.getLabel()
      • getDescription

        public String getDescription()
        Returns a short sentence that describes the configuration associated with this ConfigurationInfo (for example, "Low overhead configuration safe for continuous use in production environments".
        Returns:
        the description, or null if doesn't exist
      • from

        public static ConfigurationInfo from​(CompositeData cd)
        Returns a ConfigurationInfo object represented by the specified CompositeData.

        The following table shows the required attributes that the specified CompositeData must contain.

        Required names and types for CompositeData
        NameType
        nameString
        labelString
        descriptionString
        providerString
        contentsString
        settingsjavax.management.openmbean.TabularData with a TabularType with the keys "key" and "value", both of the String type
        Parameters:
        cd - CompositeData representing a ConfigurationInfo
        Returns:
        a ConfigurationInfo object represented by cd if cd is not null, null otherwise
        Throws:
        IllegalArgumentException - if cd does not represent a ConfigurationInfo with the required attributes
      • toString

        public String toString()
        Returns a description of the configuration that is associated with this ConfigurationInfo.
        Overrides:
        toString in class Object
        Returns:
        the description of the configuration, not null

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部