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

public final Class PlatformRecorder

extends Object
Class Inheritance
Static Imports
jdk.jfr.internal.LogLevel.INFO, .LogLevel.TRACE, .LogLevel.WARN, .LogTag.JFR, .LogTag.JFR_SYSTEM

Field Summary

Modifier and TypeField and Description
private static final List<FlightRecorderListener>
private RepositoryChunk
private boolean
private static volatile boolean
private long
private final ArrayList<PlatformRecording>
private final Repository
private boolean
private final Thread
private Timer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static synchronized void
pack-priv synchronized void
private void
private Instant
private void
public synchronized void
pack-priv synchronized void
private void
public synchronized void
public RepositoryChunk
pack-priv static synchronized List<FlightRecorderListener>
public synchronized List<PlatformRecording>
private List<PlatformRecording>
pack-priv synchronized Timer
public boolean
pack-priv static boolean
private boolean
public List<RepositoryChunk>
makeChunkList(Instant startTime, Instant endTime)

public synchronized void
migrate(Path repo)

pack-priv synchronized Recording
newCopy(PlatformRecording r, boolean stop)

public synchronized PlatformRecording
newRecording(Boolean register, Map<String, String> settings)

private synchronized PlatformRecording
newRecording(boolean register, Map<String, String> settings, long id)

public PlatformRecording
public static void
private void
public static synchronized boolean
pack-priv synchronized void
pack-priv static void
private void
setRunPeriodicTask(boolean runPeriodicTask)

pack-priv synchronized long
private void
pack-priv synchronized void
private void
takeNap(long duration)

pack-priv void
updateSettings(boolean writeSettingEvents)

pack-priv void
updateSettingsButIgnoreRecording(PlatformRecording ignoreMe, boolean writeSettingEvents)

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

changeListenersback to summary
private static final List<FlightRecorderListener> changeListeners
currentChunkback to summary
private RepositoryChunk currentChunk
destroyedback to summary
private boolean destroyed
inShutdownback to summary
private static volatile boolean inShutdown
recordingCounterback to summary
private long recordingCounter
recordingsback to summary
private final ArrayList<PlatformRecording> recordings
repositoryback to summary
private final Repository repository
runPeriodicTaskback to summary
private boolean runPeriodicTask
shutdownHookback to summary
private final Thread shutdownHook
timerback to summary
private Timer timer

Constructor Detail

PlatformRecorderback to summary
public PlatformRecorder() throws Exception

Method Detail

addListenerback to summary
public static synchronized void addListener(FlightRecorderListener changeListener)
destroyback to summary
pack-priv synchronized void destroy()
disableEventsback to summary
private void disableEvents()
dumpMemoryToDestinationback to summary
private Instant dumpMemoryToDestination(PlatformRecording recording)
fillWithDiskChunksback to summary
private void fillWithDiskChunks(PlatformRecording target)
fillWithRecordedDataback to summary
public synchronized void fillWithRecordedData(PlatformRecording target, Boolean pathToGcRoots)
finishback to summary
pack-priv synchronized void finish(PlatformRecording recording)
finishChunkback to summary
private void finishChunk(RepositoryChunk chunk, Instant time, PlatformRecording ignoreMe)
flushback to summary
public synchronized void flush()
getCurrentChunkback to summary
public RepositoryChunk getCurrentChunk()
getListenersback to summary
pack-priv static synchronized List<FlightRecorderListener> getListeners()
getRecordingsback to summary
public synchronized List<PlatformRecording> getRecordings()
getRunningRecordingsback to summary
private List<PlatformRecording> getRunningRecordings()
getTimerback to summary
pack-priv synchronized Timer getTimer()
isDestroyedback to summary
public boolean isDestroyed()
isInShutDownback to summary
pack-priv static boolean isInShutDown()
isToDiskback to summary
private boolean isToDisk()
makeChunkListback to summary
public List<RepositoryChunk> makeChunkList(Instant startTime, Instant endTime)
migrateback to summary
public synchronized void migrate(Path repo) throws IOException
newCopyback to summary
pack-priv synchronized Recording newCopy(PlatformRecording r, boolean stop)
newRecordingback to summary
public synchronized PlatformRecording newRecording(Boolean register, Map<String, String> settings)
newRecordingback to summary
private synchronized PlatformRecording newRecording(boolean register, Map<String, String> settings, long id)
newTemporaryRecordingback to summary
public PlatformRecording newTemporaryRecording()
notifyRecorderInitializedback to summary
public static void notifyRecorderInitialized(FlightRecorder recorder)
periodicTaskback to summary
private void periodicTask()
removeListenerback to summary
public static synchronized boolean removeListener(FlightRecorderListener changeListener)
rotateDiskback to summary
pack-priv synchronized void rotateDisk()
setInShutDownback to summary
pack-priv static void setInShutDown()
setRunPeriodicTaskback to summary
private void setRunPeriodicTask(boolean runPeriodicTask)
startback to summary
pack-priv synchronized long start(PlatformRecording recording)
startDiskMonitorback to summary
private void startDiskMonitor()
stopback to summary
pack-priv synchronized void stop(PlatformRecording recording)
takeNapback to summary
private void takeNap(long duration)
updateSettingsback to summary
pack-priv void updateSettings(boolean writeSettingEvents)
updateSettingsButIgnoreRecordingback to summary
pack-priv void updateSettingsButIgnoreRecording(PlatformRecording ignoreMe, boolean writeSettingEvents)
writeMetaEventsback to summary
private void writeMetaEvents()
writeReportsback to summary
private void writeReports()