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/internal/cmd/Command.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.internal.cmd; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; import java.util.Collections; import java.util.Deque; import java.util.List; abstract class Command { private final static Command HELP = new HelpCommand(); private final static List<Command> COMMANDS = createCommands(); static void displayHelp() { System.out.println("Usage: java " + Execute.class.getName() + " <command> [<options>]"); System.out.println(); displayAvailableCommands(); } static void displayAvailableCommands() { System.out.println("Available commands are:"); System.out.println(); boolean first = true; for (Command c : Command.COMMANDS) { if (!first) { System.out.println(); } System.out.println(" " + c.getName() + " " + c.getOptionSyntax()); System.out.println(" " + c.getDescription()); first = false; } } public static List<Command> getCommands() { return COMMANDS; } public static Command valueOf(String commandName) { for (Command command : COMMANDS) { if (command.getName().equals(commandName)) { return command; } } return null; } abstract public String getOptionSyntax(); abstract public String getName(); abstract public String getDescription(); abstract public void displayOptionUsage(); abstract public void execute(Deque<String> options); final protected void userFailed(String message) { println(); println(message); displayUsage(); throw new IllegalArgumentException(message); } final protected void ensureMaxArgumentCount(Deque<String> options, int maxCount) { if (options.size() > maxCount) { userFailed("Too many arguments"); } } final protected void ensureMinArgumentCount(Deque<String> options, int minCount) { if (options.size() < minCount) { userFailed("Too few arguments"); } } final protected void ensureFileExist(Path file) { if (!Files.exists(file)) { userFailed("Could not find file " + file); } } final protected Path ensureFileDoesNotExist(Path file) { if (Files.exists(file)) { userFailed("File " + file + " already exists"); } return file; } final protected void ensureJFRFile(Path path) { if (!path.toString().endsWith(".jfr")) { userFailed("Filename must end with .jfr"); } } final protected void displayUsage() { String javaText = "java " + Execute.class.getName(); println(); println("Usage: " + javaText + " " + getName() + " " + getOptionSyntax()); println(); displayOptionUsage(); } final protected void println() { System.out.println(); } final protected void print(String text) { System.out.print(text); } final protected void println(String text) { System.out.println(text); } private static List<Command> createCommands() { List<Command> commands = new ArrayList<>(); commands.add(new PrintCommand()); commands.add(new SummaryCommand()); commands.add(new ReconstructCommand()); commands.add(new SplitCommand()); commands.add(HELP); return Collections.unmodifiableList(commands); } }
⏎ jdk/jfr/internal/cmd/Command.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, 37444👍, 0💬
Popular Posts:
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
How to download and install ojdbc7.jar for Oracle 12c R1? ojdbc8.jar for Oracle 12c R1 is a Java 7 a...