public class TraceCollection extends Object
Trace's
 which share the same execution path.
 
 For instance: given the following execution pattern:
   
     b--d
    /
   a
    \
     c--e
     
 We might want a report detailing statistics on across several Traces's.
 Such as a display of average timing data:
 
 [message]         --- = average link time    +++ = average compute time    
 a                 <----++++++++++++++++++++++++++++++++++++++++--->
   b                    <----+++++++++++++++++++--->
     d                         <-----++++----->
   c                                                <---+++++->
     e                                                   <+>
     
 This requires calculating averages of different timing data at each node
 in the call tree.| Modifier and Type | Class and Description | 
|---|---|
| class  | TraceCollection.TraceComparotor | 
| class  | TraceCollection.TraceNodeStatsClass to store statistics for a particular node in the RPC call tree. | 
| class  | TraceCollection.TraceTimingClass to store the timing data associated with a particluar trace. | 
| Constructor and Description | 
|---|
| TraceCollection(Trace t)Create a TraceCollection using the given Trace as a model. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addTrace(Trace t)Add a trace to this collection. | 
| int | getExecutionPathHash() | 
| TraceCollection.TraceNodeStats | getNodeWithID(int hashCode) | 
| TraceCollection.TraceNodeStats | getNodeWithIDRecurse(int hashCode,
                    TraceCollection.TraceNodeStats start) | 
| TraceCollection.TraceNodeStats | getRootNode() | 
| TreeSet<Trace> | getTraces() | 
| List<Trace> | longestTraces(int count)Returns the [count] longest traces in this collection. | 
| String | printBrief()Print a brief description of this Trace Collection with some summary 
 data. | 
| String | printRecurse(TraceCollection.TraceNodeStats n,
            int depth) | 
public TraceCollection(Trace t)
public TraceCollection.TraceNodeStats getNodeWithID(int hashCode)
public TraceCollection.TraceNodeStats getNodeWithIDRecurse(int hashCode, TraceCollection.TraceNodeStats start)
public TraceCollection.TraceNodeStats getRootNode()
public int getExecutionPathHash()
public List<Trace> longestTraces(int count)
public void addTrace(Trace t)
public String printBrief()
public String printRecurse(TraceCollection.TraceNodeStats n, int depth)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.