public final class StandardTraversalMetrics extends Object implements TraversalMetrics, Serializable
ELEMENT_COUNT_ID, METRICS_KEY, PERCENT_DURATION_KEY, TRAVERSER_COUNT_ID| Constructor and Description |
|---|
StandardTraversalMetrics() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetrics(MutableMetrics newMetrics,
String id,
int index,
boolean isTopLevel,
String profileStepId) |
void |
finish(String metricsId,
long bulk) |
long |
getDuration(TimeUnit unit)
Get the total duration taken by the Traversal.
|
Collection<ImmutableMetrics> |
getMetrics() |
Metrics |
getMetrics(int index)
Get an individual Metrics object by the index of the profiled Step.
|
Metrics |
getMetrics(String id)
Get an individual Metrics object by the id of the profiled Step.
|
static StandardTraversalMetrics |
merge(Iterator<StandardTraversalMetrics> toMerge) |
void |
start(String metricsId) |
void |
stop(String metricsId) |
String |
toString() |
public void start(String metricsId)
public void stop(String metricsId)
public void finish(String metricsId, long bulk)
public long getDuration(TimeUnit unit)
TraversalMetricsgetDuration in interface TraversalMetricspublic Metrics getMetrics(int index)
TraversalMetricsgetMetrics in interface TraversalMetricspublic Metrics getMetrics(String id)
TraversalMetricsgetMetrics in interface TraversalMetricspublic Collection<ImmutableMetrics> getMetrics()
getMetrics in interface TraversalMetricspublic static StandardTraversalMetrics merge(Iterator<StandardTraversalMetrics> toMerge)
public void addMetrics(MutableMetrics newMetrics, String id, int index, boolean isTopLevel, String profileStepId)
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.