Jagger
 All Classes Namespaces Files Functions Variables Groups Pages
Public Member Functions | List of all members
com.griddynamics.jagger.engine.e1.collector.SuccessRateCollector< Q, R, E > Class Reference

Collects number of pass and fail invokes. More...

Inheritance diagram for com.griddynamics.jagger.engine.e1.collector.SuccessRateCollector< Q, R, E >:
Inheritance graph
[legend]

Public Member Functions

void flush ()
 Method is not used for this collector => disabled. More...
 
void onError (Object query, Object endpoint, Throwable error)
 Method is called when some error occurred. More...
 
void onFail (Object query, Object endpoint, InvocationException e)
 Method is called when invoke failed. More...
 
void onStart (Object query, Object endpoint)
 Method is called before invoke to save invoke start time. More...
 
void onSuccess (Object query, Object endpoint, Object result, long duration)
 Method is called when invoke was successful. More...
 
 SuccessRateCollector (String sessionId, String taskId, NodeContext kernelContext, String name)
 Default constructor. More...
 
- Public Member Functions inherited from com.griddynamics.jagger.engine.e1.collector.MetricCollector< Q, R, E >
void flush ()
 
 MetricCollector (String sessionId, String taskId, NodeContext kernelContext, MetricCalculator metricCalculator, String name)
 
void onError (Q query, E endpoint, Throwable error)
 
void onFail (Q query, E endpoint, InvocationException e)
 
void onStart (Q query, E endpoint)
 
void onSuccess (Q query, E endpoint, R result, long duration)
 

Additional Inherited Members

- Static Public Attributes inherited from com.griddynamics.jagger.engine.e1.collector.MetricCollector< Q, R, E >
static final String METRIC_MARKER = "METRIC"
 

Detailed Description

Collects number of pass and fail invokes.

Author
Dmitry Latnikov
Details:

Collects number of pass and fail invokes.
Success rate and number of fails are calculated from this data.
Calculation is provided by aggregators:

Usage example in XML:
To use this collector add metric-success-rate collector to info-collectors block.
<!-- begin: following section is used for docu generation - metric-success-rate -->
<!-- Example #1: Success rate metric with default aggregators
plotData = true => metric vs time data will be saved (displayed in WebUI and PDF report)
saveSummary = true => summary value for summary page will be not saved -->
<metric xsi:type="metric-success-rate" plotData="true" saveSummary="false"/>
<!-- Example #2: Success rate metric with custom name and default aggregators -->
<metric id="CustomNameSuccessRate" xsi:type="metric-success-rate" plotData="true" saveSummary="false"/>
<!-- Example #3: Success rate metric with custom name and custom aggregators
With this setup success rate will be aggregated on interval like on picture below -->
<metric id="CustomSuccessRatePlot" xsi:type="metric-success-rate" plotData="true" saveSummary="false">
<metric-aggregator xsi:type="metric-aggregator-avg"/>
</metric>
<!-- end: following section is used for docu generation - metric-success-rate -->

Result example:
jagger_success_rate_default_agg.png
Success rate data with default accumulative aggregators


jagger_success_rate_avg_agg.png
Success rate data with aggregator: average on interval


The documentation for this class was generated from the following file: