APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.internal.dcmd

pack-priv abstract Class AbstractDCmd

extends Object
Class Inheritance
Known Direct Subclasses
jdk.jfr.internal.dcmd.DCmdCheck, jdk.jfr.internal.dcmd.DCmdConfigure, jdk.jfr.internal.dcmd.DCmdDump, jdk.jfr.internal.dcmd.DCmdQuery, jdk.jfr.internal.dcmd.DCmdStart, jdk.jfr.internal.dcmd.DCmdStop, jdk.jfr.internal.dcmd.DCmdView
Imports
java.io.IOException, java.nio.file.Files, .InvalidPathException, .Path, .Paths, java.time.Duration, java.util.ArrayList, .Comparator, .List, jdk.jfr.FlightRecorder, .Recording, jdk.jfr.internal.JVM, .JVMSupport, .LogLevel, .LogTag, .Logger, jdk.jfr.internal.util.Output.LinePrinter, .Output, .ValueFormatter

Base class for JFR diagnostic commands

Field Summary

Modifier and TypeField and Description
private final Output.LinePrinter
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final String
protected final String
protected final String
protected abstract void
public final String[]
execute(String source, String arg, char delimiter)

protected final Recording
private Recording
private Recording
public abstract Argument[]
protected final FlightRecorder
public abstract String[]
protected final Output
protected Argument[]
public String
protected final List<Recording>
protected final String[]
protected boolean
protected void
logWarning(String message)

private Path
makeGenerated(Recording recording, Path directory)

protected final void
printBytes(long bytes)

protected final void
protected final void
protected final void
println(String s, Object... args)

protected final void
protected final void
printTimespan(Duration timespan, String separator)

pack-priv static String
protected final void
reportOperationComplete(String actionPrefix, String name, Path file)

protected Path
resolvePath(Recording recording, String filename)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outputback to summary
private final Output.LinePrinter output
sourceback to summary
private String source

Constructor Detail

AbstractDCmdback to summary
pack-priv AbstractDCmd()

Method Detail

exampleDirectoryback to summary
protected final String exampleDirectory()
exampleFilenameback to summary
protected final String exampleFilename()
exampleRepositoryback to summary
protected final String exampleRepository()
executeback to summary
protected abstract void execute(ArgumentParser parser) throws DCmdException
executeback to summary
public final String[] execute(String source, String arg, char delimiter) throws DCmdException
findRecordingback to summary
protected final Recording findRecording(String name) throws DCmdException
findRecordingByIdback to summary
private Recording findRecordingById(int id) throws DCmdException
findRecordingByNameback to summary
private Recording findRecordingByName(String name) throws DCmdException
getArgumentInfosback to summary
public abstract Argument[] getArgumentInfos()
getFlightRecorderback to summary
protected final FlightRecorder getFlightRecorder()
getHelpback to summary
public abstract String[] getHelp()
getOutputback to summary
protected final Output getOutput()
getParseArgumentsback to summary
protected Argument[] getParseArguments(String source)
getPidback to summary
public String getPid()
getRecordingsback to summary
protected final List<Recording> getRecordings()
getResultback to summary
protected final String[] getResult()
isInteractiveback to summary
protected boolean isInteractive()
logWarningback to summary
protected void logWarning(String message)
makeGeneratedback to summary
private Path makeGenerated(Recording recording, Path directory)
printBytesback to summary
protected final void printBytes(long bytes)
printHelpTextback to summary
protected final void printHelpText()
printlnback to summary
protected final void println()
printlnback to summary
protected final void println(String s, Object... args)
printPathback to summary
protected final void printPath(Path path)
printTimespanback to summary
protected final void printTimespan(Duration timespan, String separator)
quoteIfNeededback to summary
pack-priv static String quoteIfNeeded(String text)
reportOperationCompleteback to summary
protected final void reportOperationComplete(String actionPrefix, String name, Path file)
resolvePathback to summary
protected Path resolvePath(Recording recording, String filename) throws InvalidPathException