public final class DefaultTraversalMetrics extends Object implements TraversalMetrics, Serializable
ELEMENT_COUNT_ID, PERCENT_DURATION_KEY, TRAVERSER_COUNT_ID| Constructor and Description | 
|---|
DefaultTraversalMetrics()  | 
DefaultTraversalMetrics(long totalStepDurationNs,
                       List<MutableMetrics> metricsMap)
This is only a convenient constructor needed for GraphSON deserialization. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 DefaultTraversalMetrics | 
merge(Iterator<DefaultTraversalMetrics> toMerge)  | 
void | 
setMetrics(Traversal.Admin traversal,
          boolean onGraphComputer)  | 
String | 
toString()  | 
public DefaultTraversalMetrics()
public DefaultTraversalMetrics(long totalStepDurationNs,
                               List<MutableMetrics> metricsMap)
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 DefaultTraversalMetrics merge(Iterator<DefaultTraversalMetrics> toMerge)
public void setMetrics(Traversal.Admin traversal, boolean onGraphComputer)
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.