Package com.datastax.driver.core
Class QueryTrace.Event
- java.lang.Object
-
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()The event description, that is which activity this event correspond to.InetAddressgetSource()Returns the address of the host having generated this event.intgetSourceElapsedMicros()Returns the number of microseconds elapsed on the source when this event occurred since when the source started handling the query.StringgetThreadName()Returns the name of the thread on which this event occurred.longgetTimestamp()Returns the server side timestamp of the event.StringtoString()
-
-
-
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.
-
-