Package com.jprofiler.api.probe.injected
Annotation Interface Probe
Marks a class that defines an injected probe and parametrizes the probe. The probe class will be scanned for public static methods that are annotated with
Interception
, PayloadInterception
, SplitInterception
, AdditionalInterception
, ControlObjectName
and Telemetry
.-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Configures if this probe shows the timeline and control objects views in the JProfiler UI.You can specify custom types for events.boolean
Configures if this probe should record the "Events", "Average Duration" and - if control objects are recorded - the "Recorded Open Control Objects" telemetries.An optional description of this probe.boolean
Configures if this probe shows an events view in the JProfiler UI.
-
Element Details
-
name
String nameThe name of the probe in the JProfiler UI. In the JProfiler UI, this string is used for the view name in the view selector below the "JEE & probes" section.- Returns:
- a name
-
-
-
description
String descriptionAn optional description of this probe. It is shown in the probe view below the probe name.- Returns:
- the description
- Default:
- ""
-
events
boolean eventsConfigures if this probe shows an events view in the JProfiler UI.- Returns:
true
if events should be shown and recorded.
- Default:
- true
-
controlObjects
boolean controlObjectsConfigures if this probe shows the timeline and control objects views in the JProfiler UI.You must make use of
ProbeContext.createPayload(String, Object, Enum)
to associate control objects with payloads.- Returns:
true
if control objects should be shown and recorded.
- Default:
- false
-
defaultTelemetries
boolean defaultTelemetriesConfigures if this probe should record the "Events", "Average Duration" and - if control objects are recorded - the "Recorded Open Control Objects" telemetries.- Returns:
true
if default telemetries should be recorded.
- Default:
- true
-
customTypes
You can specify custom types for events. If control objects are recorded, the same types are used for the associated control object states. Specify anEnum
class with all your states as constants. ThetoString()
method is used for the event display name. You can further customize your events by implementingTypeCustomizer
in the enum class.- Returns:
- the class of your event enum
- Default:
- java.lang.Enum.class
-