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/ReconstructCommand.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.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Deque; import java.util.List; final class ReconstructCommand extends Command { @Override public String getOptionSyntax() { return "<repository> <file>"; } @Override public String getName() { return "reconstruct"; } @Override public String getDescription() { return "Assemble leftover chunks, from a disk repository, into a recording file (.jfr)"; } @Override public void displayOptionUsage() { println(" <repository> Directory where the repository is located"); println(); println(" <file> Name of the recording file (.jfr) to create"); } @Override public void execute(Deque<String> options) { ensureMinArgumentCount(options, 2); ensureMaxArgumentCount(options, 2); Path repository = Paths.get(options.pop()).toAbsolutePath(); if (!Files.exists(repository)) { userFailed("Could not find disk repository at " + repository); } if (!Files.isDirectory(repository)) { userFailed("Must specify a directory as disk repository"); } Path output = Paths.get(options.pop()); ensureFileDoesNotExist(output); ensureJFRFile(output); try (FileOutputStream fos = new FileOutputStream(output.toFile())) { List<Path> files = listJFRFiles(repository); if (files.isEmpty()) { throw new IllegalStateException("No *.jfr files found at " + repository); } println(); println("Combining files... "); println(); transferTo(files, output, fos.getChannel()); println(); println("Reconstruction complete."); } catch (IOException e) { userFailed("Could not open destination file " + output + ". " + e.getMessage()); } } private List<Path> listJFRFiles(Path path) throws IOException { try { List<Path> files = new ArrayList<>(); if (Files.isDirectory(path)) { try (DirectoryStream<Path> stream = Files.newDirectoryStream(path, "*.jfr")) { for (Path p : stream) { if (!Files.isDirectory(p) && Files.isReadable(p)) { files.add(p); } } } } files.sort((u, v) -> u.getFileName().compareTo(v.getFileName())); return files; } catch (IOException ioe) { throw new IllegalStateException("Could not list *.jfr for directory " + path + ". " + ioe.getMessage()); } } private void transferTo(List<Path> sourceFiles, Path output, FileChannel out) { long pos = 0; for (Path p : sourceFiles) { println(" " + p.toString()); try (FileChannel sourceChannel = FileChannel.open(p)) { long rem = Files.size(p); while (rem > 0) { long n = Math.min(rem, 1024 * 1024); long w = out.transferFrom(sourceChannel, pos, n); pos += w; rem -= w; } } catch (IOException ioe) { throw new IllegalStateException("Could not copy recording chunk " + p + " to new file. " + ioe.getMessage()); } } } }
⏎ jdk/jfr/internal/cmd/ReconstructCommand.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, 37704👍, 0💬
Popular Posts:
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
How to download and install ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is a Java 5 J...