APIdia Launch Partner
Top Description Constructors Methods
jdk.jfr.internal.management

public final Class ManagementSupport

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, .Paths, java.time.Duration, .Instant, java.util.Collections, .List, .Map, java.util.function.Consumer, jdk.jfr.Configuration, .EventSettings, .EventType, .Recording, jdk.jfr.consumer.EventStream, jdk.jfr.internal.JDKEvents, .JVMSupport, .LogLevel, .LogTag, .Logger, .MetadataRepository, .PlatformRecording, .PrivateAccess, .WriteablePath, jdk.jfr.internal.util.Utils, .ValueFormatter, .ValueParser, jdk.jfr.internal.consumer.AbstractEventStream, .EventDirectoryStream

The management API in module jdk.management.jfr should be built on top of the public API in jdk.jfr. Before putting more functionality here, consider if it should not be part of the public API, and if not, please provide motivation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static StreamBarrier
public static void
checkSetDestination(Recording recording, String destination)

public static Instant
epochNanosToInstant(long epochNanos)

public static final String
formatTimespan(Duration dValue, String separation)

public static String
public static List<EventType>
public static long
public static void
logDebug(String message)

public static void
logError(String message)

public static Configuration
newConfiguration(String name, String label, String description, String provider, Map<String, String> settings, String contents)

public static EventStream
public static EventSettings
public static long
public static void
removePath(Recording recording, Path path)

public static void
setCloseOnComplete(EventStream stream, boolean closeOnComplete)

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ManagementSupportback to summary
public ManagementSupport()

Method Detail

activateStreamBarrierback to summary
public static StreamBarrier activateStreamBarrier(EventStream stream)
checkSetDestinationback to summary
public static void checkSetDestination(Recording recording, String destination) throws IOException
epochNanosToInstantback to summary
public static Instant epochNanosToInstant(long epochNanos)
formatTimespanback to summary
public static final String formatTimespan(Duration dValue, String separation)
getDestinationOriginalTextback to summary
public static String getDestinationOriginalText(Recording recording)
getEventTypesback to summary
public static List<EventType> getEventTypes()
getStartTimeNanosback to summary
public static long getStartTimeNanos(Recording recording)
logDebugback to summary
public static void logDebug(String message)
logErrorback to summary
public static void logError(String message)
newConfigurationback to summary
public static Configuration newConfiguration(String name, String label, String description, String provider, Map<String, String> settings, String contents)
newEventDirectoryStreamback to summary
public static EventStream newEventDirectoryStream(Path directory, List<Configuration> confs) throws IOException
newEventSettingsback to summary
public static EventSettings newEventSettings(EventSettingsModifier esm)
parseTimespanback to summary
public static long parseTimespan(String s)
removePathback to summary
public static void removePath(Recording recording, Path path)
setCloseOnCompleteback to summary
public static void setCloseOnComplete(EventStream stream, boolean closeOnComplete)
setOnChunkCompleteHandlerback to summary
public static void setOnChunkCompleteHandler(EventStream stream, Consumer<Long> consumer)