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, that is which activity this event correspond to.
 InetAddress getSource()
          Returns the address of the host having generated this event.
 int getSourceElapsedMicros()
          Returns the number of microseconds elapsed on the source when this event occurred since when the source started handling the query.
 String getThreadName()
          Returns the name of the thread on which this event occurred.
 long getTimestamp()
          Returns 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, that is which activity this event correspond to.

Returns:
the event description.

getTimestamp

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

Returns:
the server side timestamp of the event.

getSource

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

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

getSourceElapsedMicros

public int getSourceElapsedMicros()
Returns 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()
Returns the name of the thread on which this event occurred.

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All rights reserved.