PreEmptive Protection - DashO v8.1 User Guide

Feature Tracking

PreEmptive Protection - DashO provides support for feature usage tracking via the feature annotations. The developer may add a feature annotation to any method that maps to the start, stop, or entirety of a feature. When DashO encounters a feature annotation during its processing it adds code to the method to send an analytics message.

Feature Name

In order to make sense of feature-level analytics, features must be identified by a name. The name is a string value that defines the name of the feature in question. This name need not follow any particular convention; but it should be descriptive and unique, except in cases where the feature in question is one half of a start-stop pair in which case, the feature names must match.

Feature Event Types

DashO has three annotations for denoting the event type.

FeatureStart and FeatureStop are used to compute execution time for a feature in addition to tallying how many times it has been used. FeatureTick is used to only tally usage.

@FeatureStart("Find")
private void beginFind() {
    // ...
}

If a method’s logic fully encompasses a feature, you may place a start and stop annotation on the method. DashO sends the start message when the method begins and the stop message when the method completes.

@FeatureStart("Find")
@FeatureStop("Find")
private void doFind() {
    // ...
}

PreEmptive Protection - DashO Version 8.1.0. Copyright © 2017 PreEmptive Solutions, LLC