APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.management.jfr

public final Class ConfigurationInfo

extends Object
Class Inheritance
Imports
java.util.Collection, .Collections, .HashMap, .Map, javax.management.openmbean.CompositeData, .TabularData, jdk.jfr.Configuration

Management representation of a Configuration.
Since
9
See Also
Configuration

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String
private final String
private final String
private final Map<String, String>

Constructor Summary

AccessConstructor and Description
pack-priv
private

Method Summary

Modifier and TypeMethod and Description
private static Map<String, String>
public static ConfigurationInfo

Returns:

a ConfigurationInfo object represented by cd if cd is not null, null otherwise
from
(CompositeData
CompositeData representing a ConfigurationInfo
cd
)

Returns a ConfigurationInfo object represented by the specified CompositeData.

public String

Returns:

contents, or null if doesn't exist
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.

public String

Returns:

the description, or null if doesn't exist
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".

public String

Returns:

the label, or null if doesn't exist
getLabel
()

Returns the human-readable name (for example, "Continuous" or "Profiling") for the configuration associated with this ConfigurationInfo

public String

Returns:

the name, or null if doesn't exist
getName
()

Returns the name of the configuration associated with this ConfigurationInfo (for example, "default").

public String

Returns:

the provider, or null if doesn't exist
getProvider
()

Returns the provider of the configuration associated with this ConfigurationInfo (for example, "OpenJDK").

public Map<String, String>

Returns:

a Map with settings, not null
getSettings
()

Returns the settings for the configuration associated with this ConfigurationInfo.

public String

Returns:

the description of the configuration, not null
toString
()

Overrides java.lang.Object.toString.

Returns a description of the configuration that is associated with this ConfigurationInfo.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

contentsback to summary
private final String contents
descriptionback to summary
private final String description
labelback to summary
private final String label
nameback to summary
private final String name
providerback to summary
private final String provider
settingsback to summary
private final Map<String, String> settings

Constructor Detail

ConfigurationInfoback to summary
pack-priv ConfigurationInfo(Configuration config)
ConfigurationInfoback to summary
private ConfigurationInfo(CompositeData cd)

Method Detail

createMapback to summary
private static Map<String, String> createMap(Object o)
fromback to summary
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
Name Type
name String
label String
description String
provider String
contents String
settings javax.management.openmbean.TabularData with a TabularType with the keys "key" and "value", both of the String type
Parameters
cd:CompositeData

CompositeData representing a ConfigurationInfo

Returns:ConfigurationInfo

a ConfigurationInfo object represented by cd if cd is not null, null otherwise

Exceptions
IllegalArgumentException:
if cd does not represent a ConfigurationInfo with the required attributes
getContentsback to summary
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:String

contents, or null if doesn't exist

See Also
Configuration#getContents()
getDescriptionback to summary
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:String

the description, or null if doesn't exist

getLabelback to summary
public String getLabel()

Returns the human-readable name (for example, "Continuous" or "Profiling") for the configuration associated with this ConfigurationInfo

Returns:String

the label, or null if doesn't exist

See Also
Configuration#getLabel()
getNameback to summary
public String getName()

Returns the name of the configuration associated with this ConfigurationInfo (for example, "default").

Returns:String

the name, or null if doesn't exist

See Also
Configuration#getLabel()
getProviderback to summary
public String getProvider()

Returns the provider of the configuration associated with this ConfigurationInfo (for example, "OpenJDK").

Returns:String

the provider, or null if doesn't exist

See Also
Configuration#getProvider()
getSettingsback to summary
public Map<String, String> getSettings()

Returns the settings for the configuration associated with this ConfigurationInfo.

Returns:Map<String, String>

a Map with settings, not null

See Also
Configuration#getSettings()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a description of the configuration that is associated with this ConfigurationInfo.

Returns:String

the description of the configuration, not null

Annotations
@Override