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.jcmd.jmod - JCmd Tool
JDK 11 jdk.jcmd.jmod is the JMOD file for JDK 11 JCmd tool, which can be invoked by the "jcmd" command.
JDK 11 JCmd tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jcmd.jmod.
JDK 11 JCmd tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JCmd source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jcmd.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jstat/JStatLogger.java
/* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.jstat; import java.util.*; import java.io.*; import sun.jvmstat.monitor.*; import sun.jvmstat.monitor.event.*; import java.util.regex.PatternSyntaxException; /** * Class to sample and output various jvmstat statistics for a target Java * a target Java Virtual Machine. * * @author Brian Doherty * @since 1.5 */ public class JStatLogger { private MonitoredVm monitoredVm; private volatile boolean active = true; public JStatLogger(MonitoredVm monitoredVm) { this.monitoredVm = monitoredVm; } /** * print the monitors that match the given monitor name pattern string. */ public void printNames(String names, Comparator<Monitor> comparator, boolean showUnsupported, PrintStream out) throws MonitorException, PatternSyntaxException { // get the set of all monitors List<Monitor> items = monitoredVm.findByPattern(names); Collections.sort(items, comparator); for (Monitor m: items) { if (!(m.isSupported() || showUnsupported)) { continue; } out.println(m.getName()); } } /** * print name=value pairs for the given list of monitors. */ public void printSnapShot(String names, Comparator<Monitor> comparator, boolean verbose, boolean showUnsupported, PrintStream out) throws MonitorException, PatternSyntaxException { // get the set of all monitors List<Monitor> items = monitoredVm.findByPattern(names); Collections.sort(items, comparator); printList(items, verbose, showUnsupported, out); } /** * print name=value pairs for the given list of monitors. */ public void printList(List<Monitor> list, boolean verbose, boolean showUnsupported, PrintStream out) throws MonitorException { // print out the name of each available counter for (Monitor m: list ) { if (!(m.isSupported() || showUnsupported)) { continue; } StringBuilder buffer = new StringBuilder(); buffer.append(m.getName()).append("="); if (m instanceof StringMonitor) { buffer.append("\"").append(m.getValue()).append("\""); } else { buffer.append(m.getValue()); } if (verbose) { buffer.append(" ").append(m.getUnits()); buffer.append(" ").append(m.getVariability()); buffer.append(" ").append(m.isSupported() ? "Supported" : "Unsupported"); } out.println(buffer); } } /** * method to for asynchronous termination of sampling loops */ public void stopLogging() { active = false; } /** * print samples according to the given format. */ public void logSamples(OutputFormatter formatter, int headerRate, int sampleInterval, int sampleCount, PrintStream out) throws MonitorException { long iterationCount = 0; int printHeaderCount = 0; // if printHeader == 0, then only an initial column header is desired. int printHeader = headerRate; if (printHeader == 0) { // print the column header once, disable future printing out.println(formatter.getHeader()); printHeader = -1; } while (active) { // check if it's time to print another column header if (printHeader > 0 && --printHeaderCount <= 0) { printHeaderCount = printHeader; out.println(formatter.getHeader()); } out.println(formatter.getRow()); // check if we've hit the specified sample count if (sampleCount > 0 && ++iterationCount >= sampleCount) { break; } try { Thread.sleep(sampleInterval); } catch (Exception e) { }; } } }
⏎ sun/tools/jstat/JStatLogger.java
Or download all of them as a single archive file:
File name: jdk.jcmd-11.0.1-src.zip File size: 47892 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jconsole.jmod - JConsole Tool
2020-07-07, 13773👍, 0💬
Popular Posts:
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...