public final class ConfigurationInfo extends Object
Configuration
.Modifier and Type | Method | Description |
---|---|---|
static ConfigurationInfo |
from |
Returns a ConfigurationInfo object represented by the specified CompositeData . |
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. |
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" . |
String |
getLabel() |
Returns the human-readable name (for example, "Continuous" or "Profiling" ) for the configuration associated with this ConfigurationInfo
|
String |
getName() |
Returns the name of the configuration associated with this ConfigurationInfo (for example, "default" ). |
String |
getProvider() |
Returns the provider of the configuration associated with this ConfigurationInfo (for example, "OpenJDK" ). |
Map |
getSettings() |
Returns the settings for the configuration associated with this ConfigurationInfo . |
String |
toString() |
Returns a description of the configuration that is associated with this ConfigurationInfo . |
public String getProvider()
ConfigurationInfo
(for example, "OpenJDK"
).null
if doesn't existpublic String getContents()
ConfigurationInfo
, typically the contents of the configuration file that was used to create the configuration.null
if doesn't existpublic Map<String,String> getSettings()
ConfigurationInfo
.Map
with settings, not null
public String getLabel()
"Continuous"
or "Profiling"
) for the configuration associated with this ConfigurationInfo
null
if doesn't existpublic String getName()
ConfigurationInfo
(for example, "default"
).null
if doesn't existpublic String getDescription()
ConfigurationInfo
(for example, "Low
overhead configuration safe for continuous use in production
environments"
.null
if doesn't existpublic static ConfigurationInfo from(CompositeData cd)
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 aTabularType
with the keys"key"
and"value"
, both of theString
type
cd
- CompositeData
representing a ConfigurationInfo
ConfigurationInfo
object represented by cd
if cd
is not null
, null
otherwiseIllegalArgumentException
- if cd
does not represent a ConfigurationInfo
with the required attributespublic String toString()
ConfigurationInfo
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.management.jfr/jdk/management/jfr/ConfigurationInfo.html