@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Probe
Interception
, PayloadInterception
, SplitInterception
, AdditionalInterception
, ControlObjectName
and Telemetry
.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
The name of the probe in the JProfiler UI.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
controlObjects
Configures if this probe shows the timeline and control objects views in the JProfiler UI.
|
java.lang.Class<? extends java.lang.Enum> |
customTypes
You can specify custom types for events.
|
boolean |
defaultTelemetries
Configures if this probe should record the "Events", "Average Duration" and - if control objects are recorded - the "Recorded Open Control Objects" telemetries.
|
java.lang.String |
description
An optional description of this probe.
|
boolean |
events
Configures if this probe shows an events view in the JProfiler UI.
|
public abstract java.lang.String name
public abstract java.lang.String description
public abstract boolean events
true
if events should be shown and recorded.public abstract boolean controlObjects
You must make use of ProbeContext.createPayload(String, Object, Enum)
to associate control objects with payloads.
true
if control objects should be shown and recorded.public abstract boolean defaultTelemetries
true
if default telemetries should be recorded.public abstract java.lang.Class<? extends java.lang.Enum> customTypes
Enum
class with all your states as constants. The toString()
method is used for
the event display name. You can further customize your events by implementing TypeCustomizer
in the enum class.