- java.lang.Object
-
- jdk.management.jfr.ConfigurationInfo
-
public final class ConfigurationInfo extends Object
Management representation of aConfiguration.- Since:
- 9
- See Also:
Configuration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigurationInfofrom(CompositeData cd)Returns aConfigurationInfoobject represented by the specifiedCompositeData.StringgetContents()Returns the textual representation of the configuration associated with thisConfigurationInfo, typically the contents of the configuration file that was used to create the configuration.StringgetDescription()Returns a sentence or two, describing the configuration associated with thisConfigurationInfo, for example"Low overhead configuration safe for continuous use in production environments".StringgetLabel()Returns the human-readable name, for example"Continuous". for the configuration associated with thisConfigurationInfoStringgetName()Returns the name of the configuration associated with thisConfigurationInfo, for example"default".StringgetProvider()Returns the configuration provider, for example"Oracle".Map<String,String>getSettings()Returns the settings for the configuration associated with thisConfigurationInfo.StringtoString()Returns a string description of the configuration associated with thisConfigurationInfo.
-
-
-
Method Detail
-
getProvider
public String getProvider()
Returns the configuration provider, for example"Oracle".- Returns:
- the provider, or
nullif not available - See Also:
Configuration.getProvider()
-
getContents
public String getContents()
Returns the textual representation of the configuration associated with thisConfigurationInfo, typically the contents of the configuration file that was used to create the configuration.- Returns:
- contents, or
nullif not available - See Also:
Configuration.getContents()
-
getSettings
public Map<String,String> getSettings()
Returns the settings for the configuration associated with thisConfigurationInfo.- Returns:
- map with settings, not
null - See Also:
Configuration.getSettings()
-
getLabel
public String getLabel()
Returns the human-readable name, for example"Continuous". for the configuration associated with thisConfigurationInfo- Returns:
- the label, or
nullif not available - See Also:
Configuration.getLabel()
-
getName
public String getName()
Returns the name of the configuration associated with thisConfigurationInfo, for example"default".- Returns:
- the name, or
nullif not available - See Also:
Configuration.getLabel()
-
getDescription
public String getDescription()
Returns a sentence or two, describing the configuration associated with thisConfigurationInfo, for example"Low overhead configuration safe for continuous use in production environments".- Returns:
- the description, or
nullif not available
-
from
public static ConfigurationInfo from(CompositeData cd)
Returns aConfigurationInfoobject represented by the specifiedCompositeData.The specified
CompositeDatamust contain the following attributesName Type name Stringlabel Stringdescription String provider Stringcontents Stringsettings javax.management.openmbean.TabularDatawith aTabularTypewith the keys"key"and"value", both of the String type- Parameters:
cd-CompositeDatarepresenting aConfigurationInfo- Returns:
- a
ConfigurationInfoobject represented bycdifcdis notnull, otherwisenull - Throws:
IllegalArgumentException- ifcddoes not represent aConfigurationInfowith the attributes described above
-
-