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 11 jdk.jfr.jmod - JFR Module
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module.
JDK 11 JFR module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jfr.jmod.
JDK 11 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JFR module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/Configuration.java
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr; import java.io.IOException; import java.io.Reader; import java.nio.file.Files; import java.nio.file.Path; import java.text.ParseException; import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Objects; import jdk.jfr.internal.JVMSupport; import jdk.jfr.internal.jfc.JFC; /** * A collection of settings and metadata describing the configuration. * * @since 9 */ public final class Configuration { private final Map<String, String> settings; private final String label; private final String description; private final String provider; private final String contents; private final String name; // package private Configuration(String name, String label, String description, String provider, Map<String, String> settings, String contents) { this.name = name; this.label = label; this.description = description; this.provider = provider; this.settings = settings; this.contents = contents; } /** * Returns the settings that specifies how a recording is configured. * <p> * Modifying the returned {@code Map} object doesn't change the * configuration. * * @return settings, not {@code null} */ public Map<String, String> getSettings() { return new LinkedHashMap<String, String>(settings); } /** * Returns an identifying name (for example, {@code "default" or "profile")}. * * @return the name, or {@code null} if it doesn't exist */ public String getName() { return this.name; } /** * Returns a human-readable name (for example, {@code "Continuous" or "Profiling"}}. * * @return the label, or {@code null} if it doesn't exist */ public String getLabel() { return this.label; } /** * Returns a short sentence that describes the configuration (for example * {@code "Low * overhead configuration safe for continuous use in production * environments"}) * * @return the description, or {@code null} if it doesn't exist */ public String getDescription() { return description; } /** * Returns who created the configuration (for example {@code "OpenJDK"}). * * @return the provider, or {@code null} if it doesn't exist */ public String getProvider() { return provider; } /** * Returns a textual representation of the configuration (for example, the * contents of a JFC file). * * @return contents, or {@code null} if it doesn't exist * * @see Configuration#getContents() */ public String getContents() { return contents; } /** * Reads a configuration from a file. * * @param path the file that contains the configuration, not {@code null} * @return the read {@link Configuration}, not {@code null} * @throws ParseException if the file can't be parsed * @throws IOException if the file can't be read * @throws SecurityException if a security manager exists and its * {@code checkRead} method denies read access to the file. * * @see java.io.File#getPath() * @see java.lang.SecurityManager#checkRead(java.lang.String) */ public static Configuration create(Path path) throws IOException, ParseException { Objects.requireNonNull(path); JVMSupport.ensureWithIOException(); try (Reader reader = Files.newBufferedReader(path)) { return JFC.create(JFC.nameFromPath(path), reader); } } /** * Reads a configuration from a character stream. * * @param reader a {@code Reader} that provides the configuration contents, not * {@code null} * @return a configuration, not {@code null} * @throws IOException if an I/O error occurs while trying to read contents * from the {@code Reader} * @throws ParseException if the file can't be parsed */ public static Configuration create(Reader reader) throws IOException, ParseException { Objects.requireNonNull(reader); JVMSupport.ensureWithIOException(); return JFC.create(null, reader); } /** * Returns a predefined configuration. * <p> * See {@link Configuration#getConfigurations()} for available configuration * names. * * @param name the name of the configuration (for example, {@code "default"} or * {@code "profile"}) * @return a configuration, not {@code null} * * @throws IOException if a configuration with the given name does not * exist, or if an I/O error occurs while reading the * configuration file * @throws ParseException if the configuration file can't be parsed */ public static Configuration getConfiguration(String name) throws IOException, ParseException { JVMSupport.ensureWithIOException(); return JFC.getPredefined(name); } /** * Returns an immutable list of predefined configurations for this Java Virtual Machine (JVM). * * @return the list of predefined configurations, not {@code null} */ public static List<Configuration> getConfigurations() { if (JVMSupport.isNotAvailable()) { return new ArrayList<>(); } return Collections.unmodifiableList(JFC.getConfigurations()); } }
⏎ jdk/jfr/Configuration.java
Or download all of them as a single archive file:
File name: jdk.jfr-11.0.1-src.zip File size: 237632 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jlink.jmod - JLink Tool
2020-06-30, 37776👍, 0💬
Popular Posts:
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...