Interface TraversalMetrics
- 
- All Known Implementing Classes:
- DefaultTraversalMetrics
 
 public interface TraversalMetricsContains the Metrics gathered for a Traversal as the result of the .profile()-step.- Author:
- Bob Briody (http://bobbriody.com)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringELEMENT_COUNT_IDThe MetricsId used to obtain the element count via Metrics.getCount(String countKey)static StringPERCENT_DURATION_KEYThe annotation key used to obtain the percent duration via Metrics.getAnnotation(String key)static StringTRAVERSER_COUNT_IDThe MetricsId used to obtain the traverser count via Metrics.getCount(String countKey)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDuration(TimeUnit unit)Get the total duration taken by the Traversal.Collection<? extends Metrics>getMetrics()Gets all the metrics.MetricsgetMetrics(int stepIndex)Get an individual Metrics object by the index of the profiled Step.MetricsgetMetrics(String id)Get an individual Metrics object by the id of the profiled Step.
 
- 
- 
- 
Field Detail- 
ELEMENT_COUNT_IDstatic final String ELEMENT_COUNT_ID The MetricsId used to obtain the element count via Metrics.getCount(String countKey)- See Also:
- Constant Field Values
 
 - 
TRAVERSER_COUNT_IDstatic final String TRAVERSER_COUNT_ID The MetricsId used to obtain the traverser count via Metrics.getCount(String countKey)- See Also:
- Constant Field Values
 
 - 
PERCENT_DURATION_KEYstatic final String PERCENT_DURATION_KEY The annotation key used to obtain the percent duration via Metrics.getAnnotation(String key)- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDurationlong getDuration(TimeUnit unit) Get the total duration taken by the Traversal.- Returns:
- total duration taken by the Traversal.
 
 - 
getMetricsMetrics getMetrics(int stepIndex) Get an individual Metrics object by the index of the profiled Step.- Returns:
- an individual Metrics object.
 
 - 
getMetricsMetrics getMetrics(String id) Get an individual Metrics object by the id of the profiled Step.- Returns:
- an individual Metrics object.
 
 - 
getMetricsCollection<? extends Metrics> getMetrics() Gets all the metrics.
 
- 
 
-