com.datastax.driver.core
Class QueryTrace.Event

java.lang.Object
  extended by com.datastax.driver.core.QueryTrace.Event
Enclosing class:
QueryTrace

public static class QueryTrace.Event
extends Object

A trace event.

A query trace is composed of a list of trace events.


Method Summary
 String getDescription()
          The event description, i.e.
 InetAddress getSource()
          The address of the host having generated this event.
 int getSourceElapsedMicros()
          The number of microseconds elapsed on the source when this event occurred since when the source started handling the query.
 String getThreadName()
          The name of the thread on which this event occured.
 long getTimestamp()
          The server side timestamp of the event.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDescription

public String getDescription()
The event description, i.e. which activity this event correspond to.

Returns:
the event description.

getTimestamp

public long getTimestamp()
The server side timestamp of the event.

Returns:
the server side timestamp of the event.

getSource

public InetAddress getSource()
The address of the host having generated this event.

Returns:
the address of the host having generated this event.

getSourceElapsedMicros

public int getSourceElapsedMicros()
The number of microseconds elapsed on the source when this event occurred since when the source started handling the query.

Returns:
the elapsed time on the source host when that event happened in microseconds.

getThreadName

public String getThreadName()
The name of the thread on which this event occured.

Returns:
the name of the thread on which this event occured.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.