sun.tracing
Class ProbeSkeleton
java.lang.Object
sun.tracing.ProbeSkeleton
- All Implemented Interfaces:
- Probe
public abstract class ProbeSkeleton
- extends java.lang.Object
- implements Probe
Provides common code for implementation of Probe
classes.
- Since:
- 1.7
Field Summary |
protected java.lang.Class<?>[] |
parameters
|
Constructor Summary |
protected |
ProbeSkeleton(java.lang.Class<?>[] parameters)
|
Method Summary |
abstract boolean |
isEnabled()
Checks whether there is an active trace of this probe. |
void |
trigger(java.lang.Object... args)
Performs a type-check of the parameters before triggering the probe. |
abstract void |
uncheckedTrigger(java.lang.Object[] args)
Triggers the probe with verified arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameters
protected java.lang.Class<?>[] parameters
ProbeSkeleton
protected ProbeSkeleton(java.lang.Class<?>[] parameters)
isEnabled
public abstract boolean isEnabled()
- Description copied from interface:
Probe
- Checks whether there is an active trace of this probe.
- Specified by:
isEnabled
in interface Probe
- Returns:
- true if an active trace is detected.
uncheckedTrigger
public abstract void uncheckedTrigger(java.lang.Object[] args)
- Triggers the probe with verified arguments.
The caller of this method must have already determined that the
arity and types of the arguments match what the probe was
declared with.
trigger
public void trigger(java.lang.Object... args)
- Performs a type-check of the parameters before triggering the probe.
- Specified by:
trigger
in interface Probe
- Parameters:
args
- the parameters to pass to the method.