java.lang.Object
jdk.management.jfr.ConfigurationInfo
Management representation of a
Configuration
.- Since:
- 9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationInfo
from
(CompositeData cd) Returns aConfigurationInfo
object represented by the specifiedCompositeData
.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 a short sentence that describes the configuration associated with thisConfigurationInfo
(for example,"Low overhead configuration safe for continuous use in production environments"
.getLabel()
Returns the human-readable name (for example,"Continuous"
or"Profiling"
) for the configuration associated with thisConfigurationInfo
getName()
Returns the name of the configuration associated with thisConfigurationInfo
(for example,"default"
).Returns the provider of the configuration associated with thisConfigurationInfo
(for example,"OpenJDK"
).Returns the settings for the configuration associated with thisConfigurationInfo
.toString()
Returns a description of the configuration that is associated with thisConfigurationInfo
.
-
Method Details
-
getProvider
Returns the provider of the configuration associated with thisConfigurationInfo
(for example,"OpenJDK"
).- Returns:
- the provider, or
null
if doesn't exist - See Also:
-
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
null
if doesn't exist - See Also:
-
getSettings
Returns the settings for the configuration associated with thisConfigurationInfo
.- Returns:
- a
Map
with settings, notnull
- See Also:
-
getLabel
Returns the human-readable name (for example,"Continuous"
or"Profiling"
) for the configuration associated with thisConfigurationInfo
- Returns:
- the label, or
null
if doesn't exist - See Also:
-
getName
Returns the name of the configuration associated with thisConfigurationInfo
(for example,"default"
).- Returns:
- the name, or
null
if doesn't exist - See Also:
-
getDescription
Returns a short sentence that describes the configuration associated with thisConfigurationInfo
(for example,"Low overhead configuration safe for continuous use in production environments"
.- Returns:
- the description, or
null
if doesn't exist
-
from
Returns aConfigurationInfo
object represented by the specifiedCompositeData
.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 aTabularType
with the keys"key"
and"value"
, both of theString
type- Parameters:
cd
-CompositeData
representing aConfigurationInfo
- Returns:
- a
ConfigurationInfo
object represented bycd
ifcd
is notnull
,null
otherwise - Throws:
IllegalArgumentException
- ifcd
does not represent aConfigurationInfo
with the required attributes
-
toString
Returns a description of the configuration that is associated with thisConfigurationInfo
.
-