Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.management.jfr.jmod - Management JFR Module
JDK 17 jdk.management.jfr.jmod is the JMOD file for JDK 17 Management Jfr module.
JDK 17 Management JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.management.jfr.jmod.
JDK 17 Management JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.management.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/management/jfr/ConfigurationInfo.java
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.management.jfr; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.management.openmbean.CompositeData; import javax.management.openmbean.TabularData; import jdk.jfr.Configuration; /** * Management representation of a {@code Configuration}. * * @see Configuration * * @since 9 */ public final class ConfigurationInfo { private final Map<String, String> settings; private final String name; private final String label; private final String description; private final String provider; private final String contents; ConfigurationInfo(Configuration config) { this.settings = config.getSettings(); this.name = config.getName(); this.label = config.getLabel(); this.description = config.getDescription(); this.provider = config.getProvider(); this.contents = config.getContents(); } private ConfigurationInfo(CompositeData cd) { this.settings = createMap(cd.get("settings")); this.name = (String) cd.get("name"); this.label = (String) cd.get("label"); this.description = (String) cd.get("description"); this.provider = (String) cd.get("provider"); this.contents = (String) cd.get("contents"); } private static Map<String, String> createMap(Object o) { if (o instanceof TabularData) { TabularData td = (TabularData) o; Collection<?> values = td.values(); Map<String, String> map = new HashMap<>(values.size()); for (Object value : td.values()) { if (value instanceof CompositeData) { CompositeData cdRow = (CompositeData) value; Object k = cdRow.get("key"); Object v = cdRow.get("value"); if (k instanceof String && v instanceof String) { map.put((String) k, (String) v); } } } return Collections.unmodifiableMap(map); } return Collections.emptyMap(); } /** * Returns the provider of the configuration associated with this * {@code ConfigurationInfo} (for example, {@code "OpenJDK"}). * * @return the provider, or {@code null} if doesn't exist * * @see Configuration#getProvider() */ public String getProvider() { return provider; } /** * Returns the textual representation of the configuration associated with * this {@code ConfigurationInfo}, typically the contents of the * configuration file that was used to create the configuration. * * @return contents, or {@code null} if doesn't exist * * @see Configuration#getContents() */ public String getContents() { return contents; } /** * Returns the settings for the configuration associated with this * {@code ConfigurationInfo}. * * @return a {@code Map} with settings, not {@code null} * * @see Configuration#getSettings() */ public Map<String, String> getSettings() { return settings; } /** * Returns the human-readable name (for example, {@code "Continuous"} or {@code "Profiling"}) for * the configuration associated with this {@code ConfigurationInfo} * * @return the label, or {@code null} if doesn't exist * * @see Configuration#getLabel() */ public String getLabel() { return label; } /** * Returns the name of the configuration associated with this * {@code ConfigurationInfo} (for example, {@code "default"}). * * @return the name, or {@code null} if doesn't exist * * @see Configuration#getLabel() */ public String getName() { return name; } /** * Returns a short sentence that describes the configuration associated with * this {@code ConfigurationInfo} (for example, {@code "Low * overhead configuration safe for continuous use in production * environments"}. * * @return the description, or {@code null} if doesn't exist */ public String getDescription() { return description; } /** * Returns a {@code ConfigurationInfo} object represented by the specified * {@code CompositeData}. * <p> * The following table shows the required attributes that the specified {@code CompositeData} must contain. * <blockquote> * <table class="striped"> * <caption>Required names and types for CompositeData</caption> * <thead> * <tr> * <th scope="col" style="text-align:left">Name</th> * <th scope="col" style="text-align:left">Type</th> * </tr> * </thead> * <tbody> * <tr> * <th scope="row">name</th> * <td>{@code String}</td> * </tr> * <tr> * <th scope="row">label</th> * <td>{@code String}</td> * </tr> * <tr> * <th scope="row">description</th> * <td>{@code String}</td> * </tr> * <tr> * <th scope="row">provider</th> * <td>{@code String}</td> * </tr> * <tr> * <th scope="row">contents</th> * <td>{@code String}</td> * </tr> * * <tr> * <th scope="row">settings</th> * <td>{@code javax.management.openmbean.TabularData} with a * {@code TabularType} with the keys {@code "key"} and {@code "value"}, both * of the {@code String} type</td> * </tr> * </tbody> * </table> * </blockquote> * * @param cd {@code CompositeData} representing a {@code ConfigurationInfo} * * @throws IllegalArgumentException if {@code cd} does not represent a * {@code ConfigurationInfo} with the required attributes * * @return a {@code ConfigurationInfo} object represented by {@code cd} if * {@code cd} is not {@code null}, {@code null} otherwise */ public static ConfigurationInfo from(CompositeData cd) { if (cd == null) { return null; } return new ConfigurationInfo(cd); } /** * Returns a description of the configuration that is associated with this * {@code ConfigurationInfo}. * * @return the description of the configuration, not {@code null} */ @Override public String toString() { Stringifier s = new Stringifier(); s.add("name", name); s.add("label", label); s.add("description", description); s.add("provider", provider); return s.toString(); } }
⏎ jdk/management/jfr/ConfigurationInfo.java
Or download all of them as a single archive file:
File name: jdk.management.jfr-17.0.5-src.zip File size: 34348 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.naming.dns.jmod - Naming DNS Module
⇐ JDK 17 jdk.management.agent.jmod - Management Agent Module
2023-07-29, 1633👍, 0💬
Popular Posts:
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
How to perform XML Schema validation with sax\Writer.java provided in the Apache Xerces package? You...
maven-core-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Core module. Apache Maven is a software ...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...