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

public final Class PlatformEventType

extends Type
Class Inheritance
Imports
java.util.ArrayList, .List, .Objects, jdk.jfr.SettingDescriptor, jdk.jfr.internal.periodic.PeriodicEvents, jdk.jfr.internal.util.ImplicitFields, .TimespanRate, .Utils, jdk.jfr.internal.settings.CPUThrottleSetting, .Throttler, jdk.jfr.internal.tracing.Modification

Implementation of event type. To avoid memory leaks, this class must not hold strong reference to an event class or a setting class

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private TimespanRate
private final boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private final boolean
private final boolean
private boolean
private final boolean
private final boolean
private final boolean
private boolean
private boolean
private long
private boolean
private final List<SettingDescriptor>
private boolean
private final int
private long
private long
private Throttler
Inherited from jdk.jfr.internal.Type:
BOOLEANBYTECHARCLASSDOUBLEEVENT_NAME_PREFIXFLOATINTLONGSETTINGS_PREFIXSHORTSTACK_TRACESTRINGSUPER_TYPE_ANNOTATIONSUPER_TYPE_EVENTSUPER_TYPE_SETTINGTHREADTYPES_PREFIX

Constructor Summary

AccessConstructor and Description
pack-priv
PlatformEventType(String name, long id, boolean isJDK, boolean dynamicSettings)

Method Summary

Modifier and TypeMethod and Description
public void
add(SettingDescriptor settingDescriptor)

private boolean
private boolean
private int
public List<SettingDescriptor>
public Modification
public long
public List<SettingDescriptor>
public long
public boolean
public int
public long
public Throttler
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
isChunkTime()

Returns true if "beginChunk", "endChunk" or "everyChunk" have been set.

public boolean
public boolean
public boolean
public boolean
private boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public final boolean
public boolean
public void
markForInstrumentation(boolean markForInstrumentation)

public void
public void
setCutoff(long cutoffNanos)

public void
setEnabled(boolean enabled)

public void
setEventHook(boolean hasHook)

public void
setHasCutoff(boolean hasCutoff)

public void
setHasLevel(boolean hasLevel)

public void
setHasPeriod(boolean hasPeriod)

public void
setHasThrottle(boolean hasThrottle)

public void
public void
public void
setLevel(long level)

private void
setMiscellaneous(long value)

public void
setPeriod(long periodMillis, boolean beginChunk, boolean endChunk)

public boolean
setRegistered(boolean registered)

public void
public void
setStackTraceEnabled(boolean stackTraceEnabled)

public void
setThreshold(long thresholdNanos)

public void
setThrottle(long eventSampleSize, long periodInMillis)

public void
private void
Inherited from jdk.jfr.internal.Type:
addcompareToequalsgetAnnotationgetAnnotationElementsgetAnnotationValuegetDescriptiongetFieldgetFieldsgetIdgetKnownTypegetKnownTypegetKnownTypesgetLabelgetLogNamegetNamegetRemovegetSuperTypegetTypeIdhasAnnotationhashCodeindexOfisDefinedByJVMisDefinedByJVMisInternalisKnownTypeisSimpleTypeisValidJavaFieldTypeisVisiblelogsetAnnotationssetFieldssetIdsetInternalsetRemovesetVisibletoStringtrimFields

Field Detail

beginChunkback to summary
private boolean beginChunk
committableback to summary
private boolean committable
cpuRateback to summary
private TimespanRate cpuRate
dynamicSettingsback to summary
private final boolean dynamicSettings
enabledback to summary
private boolean enabled
endChunkback to summary
private boolean endChunk
hasCutoffback to summary
private boolean hasCutoff
hasHookback to summary
private boolean hasHook
hasLevelback to summary
private boolean hasLevel
hasPeriodback to summary
private boolean hasPeriod
hasThrottleback to summary
private boolean hasThrottle
isBackToBackSensitiveback to summary
private final boolean isBackToBackSensitive
isCPUTimeMethodSamplingback to summary
private final boolean isCPUTimeMethodSampling
isInstrumentedback to summary
private boolean isInstrumented
isJDKback to summary
private final boolean isJDK
isJVMback to summary
private final boolean isJVM
isMethodSamplingback to summary
private final boolean isMethodSampling
largeSizeback to summary
private boolean largeSize
markForInstrumentationback to summary
private boolean markForInstrumentation
periodback to summary
private long period
registeredback to summary
private boolean registered
settingsback to summary
private final List<SettingDescriptor> settings
stackTraceEnabledback to summary
private boolean stackTraceEnabled
stackTraceOffsetback to summary
private final int stackTraceOffset
startFilterIdback to summary
private long startFilterId
thresholdTicksback to summary
private long thresholdTicks
throttlerback to summary
private Throttler throttler

Constructor Detail

PlatformEventTypeback to summary
pack-priv PlatformEventType(String name, long id, boolean isJDK, boolean dynamicSettings)

Method Detail

addback to summary
public void add(SettingDescriptor settingDescriptor)
determineBackToBackSensitiveback to summary
private boolean determineBackToBackSensitive()
determineMethodSamplingback to summary
private boolean determineMethodSampling()
determineStackTraceOffsetback to summary
private int determineStackTraceOffset()
getAllSettingsback to summary
public List<SettingDescriptor> getAllSettings()
getModificationback to summary
public Modification getModification()
getPeriodback to summary
public long getPeriod()
getSettingsback to summary
public List<SettingDescriptor> getSettings()
getStackFilterIdback to summary
public long getStackFilterId()
getStackTraceEnabledback to summary
public boolean getStackTraceEnabled()
getStackTraceOffsetback to summary
public int getStackTraceOffset()
getThresholdTicksback to summary
public long getThresholdTicks()
getThrottlerback to summary
public Throttler getThrottler()
hasCutoffback to summary
public boolean hasCutoff()
hasEventHookback to summary
public boolean hasEventHook()
hasLevelback to summary
public boolean hasLevel()
hasPeriodback to summary
public boolean hasPeriod()
hasStackFiltersback to summary
public boolean hasStackFilters()
hasStackTraceback to summary
public boolean hasStackTrace()
hasThresholdback to summary
public boolean hasThreshold()
hasThrottleback to summary
public boolean hasThrottle()
isBackToBackSensitiveback to summary
public boolean isBackToBackSensitive()
isBeginChunkback to summary
public boolean isBeginChunk()
isChunkTimeback to summary
public boolean isChunkTime()

Returns true if "beginChunk", "endChunk" or "everyChunk" have been set.

isCommittableback to summary
public boolean isCommittable()
isCPUTimeMethodSamplingback to summary
public boolean isCPUTimeMethodSampling()
isEnabledback to summary
public boolean isEnabled()
isEndChunkback to summary
public boolean isEndChunk()
isExceptionEventback to summary
private boolean isExceptionEvent()
isInstrumentedback to summary
public boolean isInstrumented()
isJDKback to summary
public boolean isJDK()
isJVMback to summary
public boolean isJVM()
isLargeSizeback to summary
public boolean isLargeSize()
isMarkedForInstrumentationback to summary
public boolean isMarkedForInstrumentation()
isMethodSamplingback to summary
public boolean isMethodSampling()
isRegisteredback to summary
public final boolean isRegistered()
isSystemback to summary
public boolean isSystem()
markForInstrumentationback to summary
public void markForInstrumentation(boolean markForInstrumentation)
setCPUThrottleback to summary
public void setCPUThrottle(TimespanRate rate)
setCutoffback to summary
public void setCutoff(long cutoffNanos)
setEnabledback to summary
public void setEnabled(boolean enabled)
setEventHookback to summary
public void setEventHook(boolean hasHook)
setHasCutoffback to summary
public void setHasCutoff(boolean hasCutoff)
setHasLevelback to summary
public void setHasLevel(boolean hasLevel)
setHasPeriodback to summary
public void setHasPeriod(boolean hasPeriod)
setHasThrottleback to summary
public void setHasThrottle(boolean hasThrottle)
setInstrumentedback to summary
public void setInstrumented()
setLargeSizeback to summary
public void setLargeSize()
setLevelback to summary
public void setLevel(long level)
setMiscellaneousback to summary
private void setMiscellaneous(long value)
setPeriodback to summary
public void setPeriod(long periodMillis, boolean beginChunk, boolean endChunk)
setRegisteredback to summary
public boolean setRegistered(boolean registered)
setStackFilterIdback to summary
public void setStackFilterId(long id)
setStackTraceEnabledback to summary
public void setStackTraceEnabled(boolean stackTraceEnabled)
setThresholdback to summary
public void setThreshold(long thresholdNanos)
setThrottleback to summary
public void setThrottle(long eventSampleSize, long periodInMillis)
setThrottlerback to summary
public void setThrottler(Throttler throttler)
updateCommittableback to summary
private void updateCommittable()