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)
TraversalMetrics
getDuration
in interface TraversalMetrics
public Metrics getMetrics(int index)
TraversalMetrics
getMetrics
in interface TraversalMetrics
public Metrics getMetrics(String id)
TraversalMetrics
getMetrics
in interface TraversalMetrics
public Collection<ImmutableMetrics> getMetrics()
getMetrics
in interface TraversalMetrics
public static StandardTraversalMetrics merge(Iterator<StandardTraversalMetrics> toMerge)
public void addMetrics(MutableMetrics newMetrics, String id, int index, boolean isTopLevel, String profileStepId)
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.