Class ConfigurationInfo
java.lang.Object
jdk.management.jfr.ConfigurationInfo
Management representation of a
Configuration.- Since:
- 9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationInfofrom(CompositeData cd) Returns aConfigurationInfoobject 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 thisConfigurationInfogetName()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.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Method Details
-
getProvider
Returns the provider of the configuration associated with thisConfigurationInfo(for example,"OpenJDK").- Returns:
- the provider, or
nullif 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
nullif doesn't exist - See Also:
-
getSettings
-
getLabel
Returns the human-readable name (for example,"Continuous"or"Profiling") for the configuration associated with thisConfigurationInfo- Returns:
- the label, or
nullif doesn't exist - See Also:
-
getName
Returns the name of the configuration associated with thisConfigurationInfo(for example,"default").- Returns:
- the name, or
nullif 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
nullif doesn't exist
-
from
Returns aConfigurationInfoobject represented by the specifiedCompositeData.The following table shows the required attributes that the specified
CompositeDatamust contain.Required names and types for CompositeData Name Type name Stringlabel Stringdescription Stringprovider Stringcontents Stringsettings javax.management.openmbean.TabularDatawith aTabularTypewith the keys"key"and"value", both of theStringtype- Parameters:
cd-CompositeDatarepresenting aConfigurationInfo- Returns:
- a
ConfigurationInfoobject represented bycdifcdis notnull,nullotherwise - Throws:
IllegalArgumentException- ifcddoes not represent aConfigurationInfowith the required attributes
-
toString
-