Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 jdk.jcmd.jmod - JCmd Tool
JDK 17 jdk.jcmd.jmod is the JMOD file for JDK 17 JCmd tool,
which can be invoked by the "jcmd" command.
JDK 17 JCmd tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jcmd.jmod.
JDK 17 JCmd tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JCmd source code files are stored in \fyicenter\jdk-17.0.5\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/OptionFinder.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.net.*;
import java.io.*;
/**
* A class for finding a specific special option in the jstat_options file.
*
* @author Brian Doherty
* @since 1.5
*/
public class OptionFinder {
private static final boolean debug = false;
List<URL> optionsSources;
public OptionFinder(List<URL> optionsSources) {
this.optionsSources = optionsSources;
}
public OptionFormat getOptionFormat(String option, boolean useTimestamp) {
OptionFormat of = getOptionFormat(option, optionsSources);
OptionFormat tof = null;
if ((of != null) && (useTimestamp)) {
// prepend the timestamp column as first column
tof = getOptionFormat("timestamp", optionsSources);
if (tof != null) {
ColumnFormat cf = (ColumnFormat)tof.getSubFormat(0);
of.insertSubFormat(0, cf);
}
}
return of;
}
protected OptionFormat getOptionFormat(String option, List<URL> sources) {
OptionFormat of = null;
for (URL u : sources) {
try {
Reader r = new BufferedReader(
new InputStreamReader(u.openStream()));
of = new Parser(r).parse(option);
if (of != null)
break;
} catch (IOException e) {
if (debug) {
System.err.println("Error processing " + u
+ " : " + e.getMessage());
e.printStackTrace();
}
} catch (ParserException e) {
// Exception in parsing the options file.
System.err.println(u + ": " + e.getMessage());
System.err.println("Parsing of " + u + " aborted");
}
}
return of;
}
}
⏎ sun/tools/jstat/OptionFinder.java
Or download all of them as a single archive file:
File name: jdk.jcmd-17.0.5-src.zip File size: 51997 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jconsole.jmod - JConsole Tool
2023-08-17, ≈10🔥, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
Java Servlet API 4.0.1 Source Code Files are important if you want to compile them with different JD...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...