Skip navigation links

Package com.preemptive.annotation.instrumentation

Provides annotations for instrumenting applications with PreEmptive Protection - DashO.

See: Description

Package com.preemptive.annotation.instrumentation Description

Provides annotations for instrumenting applications with PreEmptive Protection - DashO.

PreEmptive Protection - DashO uses these annotations as well as values from the DashO project file to insert instrumentation into your classes files. These instrumentations gather information about the applications runtime environment and behavior at runtime for aggregation by PreEmptive Analytics.

The gathering of information begins with an ApplicationStart and ends with a ApplicationStop. In between, instrumented methods can gather information about the host system (SystemProfile), feature usage (FeatureStart/FeatureStart or FeatureTick), and the resources used by the application (PerformanceProbe).

Dynamic Properties

The following dynamic properties can be used in annotations.

You can use METHOD_NAME and PROP_NAME in annotations used at the class level. The actual values will be expanded only when the annotation is applied to a specific method.

Specifying Sources and Actions

Several annotations specify sources or actions for dynamic information that will be used with the generated information. These can reference either a field or a method defined in the current class or a static method or field in a different class.

Static fields and methods can be used from any method. Instance fields and methods can only be used from instance methods in the same class. Fields must have the expected type as required by the annotation. Methods must have the expected return type and parameters as required by the annotation. Specified fields and methods must be accessible from the injection location at runtime.

Use the following format for specifying the field or method:

Note: The @ cannot be used when referencing a static method or field in a different class. The @ is optional when referencing a static method or field in the same class.
An incorrectly specified source or action will cause an error.

Related Documentation

For examples, and additional documentation, please see:
Skip navigation links

Copyright © 2017 PreEmptive Solutions, LLC. All Rights Reserved.