org.apache.avro.ipc.trace
Class TraceNode

java.lang.Object
  extended by org.apache.avro.ipc.trace.TraceNode

public class TraceNode
extends Object

A node of of an RPC Trace. Each node stores a Span object and a list of zero or more child nodes.


Field Summary
 List<TraceNode> children
          A list of this TraceNode's children.
 org.apache.avro.ipc.trace.Span span
          The Span to which corresponds to this node in the call tree.
 
Constructor Summary
TraceNode(org.apache.avro.ipc.trace.Span span, List<TraceNode> children)
           
 
Method Summary
 long extractEventTime(TraceNode tn, org.apache.avro.ipc.trace.SpanEvent e)
          Return the time stamp associated with a particular SpanEvent in this Trace Node.
 List<TraceNode> getChildren()
          Return the children of this node.
 String getLatencyTimeString()
           
 String getMessageName()
           
 long getPostLinkTime()
          Return time delta between { @link SpanEvent.SERVER_SEND } and { @link SpanEvent.CLIENT_RECV }.
 String getPostLinkTimeString()
          Return post-link time as a string.
 long getPreLinkTime()
          Return time delta between { @link SpanEvent.CLIENT_SEND } and { @link SpanEvent.SERVER_RECV }.
 String getPreLinkTimeString()
          Return pre-link time as a string.
 long getProcessTime()
          Return time delta between { @link SpanEvent.SERVER_RECV } and { @link SpanEvent.SERVER_SEND}.
 String getProcessTimeString()
          Return cpu time as a string.
 String getRequestorHostname()
           
 String getRequestPayloadSize()
           
 String getResponderHostname()
           
 String getResponsePayloadSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

span

public org.apache.avro.ipc.trace.Span span
The Span to which corresponds to this node in the call tree.


children

public List<TraceNode> children
A list of this TraceNode's children.

Constructor Detail

TraceNode

public TraceNode(org.apache.avro.ipc.trace.Span span,
                 List<TraceNode> children)
Method Detail

extractEventTime

public long extractEventTime(TraceNode tn,
                             org.apache.avro.ipc.trace.SpanEvent e)
Return the time stamp associated with a particular SpanEvent in this Trace Node. Return -1 if the TraceNode's Span did not contain that event.


getPreLinkTime

public long getPreLinkTime()
Return time delta between { @link SpanEvent.CLIENT_SEND } and { @link SpanEvent.SERVER_RECV }. This may be negative or zero in the case of clock skew.


getPreLinkTimeString

public String getPreLinkTimeString()
Return pre-link time as a string.


getPostLinkTime

public long getPostLinkTime()
Return time delta between { @link SpanEvent.SERVER_SEND } and { @link SpanEvent.CLIENT_RECV }. This may be negative or zero in the case of clock skew.


getPostLinkTimeString

public String getPostLinkTimeString()
Return post-link time as a string.


getProcessTime

public long getProcessTime()
Return time delta between { @link SpanEvent.SERVER_RECV } and { @link SpanEvent.SERVER_SEND}.


getProcessTimeString

public String getProcessTimeString()
Return cpu time as a string.


getChildren

public List<TraceNode> getChildren()
Return the children of this node.


getRequestPayloadSize

public String getRequestPayloadSize()

getResponsePayloadSize

public String getResponsePayloadSize()

getRequestorHostname

public String getRequestorHostname()

getResponderHostname

public String getResponderHostname()

getMessageName

public String getMessageName()

getLatencyTimeString

public String getLatencyTimeString()


Copyright © 2010 The Apache Software Foundation