|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.datastax.driver.core.QueryTrace
public class QueryTrace
The Cassandra trace for a query.
Such trace is generated by Cassandra when query tracing is enabled for the
query. The trace itself is stored in Cassandra in the sessions and
events table in the system_traces keyspace and can be
retrieve manually using the trace identifier (the one returned by
getTraceId()).
This class provides facilities to fetch the traces from Cassandra. Please note that the writing of the trace is done asynchronously in Cassandra. So accessing the trace too soon after the query may result in the trace being incomplete.
| Nested Class Summary | |
|---|---|
static class |
QueryTrace.Event
A trace event. |
| Method Summary | |
|---|---|
InetAddress |
getCoordinator()
The coordinator host of the query. |
int |
getDurationMicros()
The (server side) duration of the query in microseconds. |
List<QueryTrace.Event> |
getEvents()
The events contained in this trace. |
Map<String,String> |
getParameters()
The parameters attached to this trace. |
String |
getRequestType()
The type of request. |
long |
getStartedAt()
The server side timestamp of the start of this query. |
UUID |
getTraceId()
The identifier of this trace. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public UUID getTraceId()
public String getRequestType()
null if the request
type is not yet available.public int getDurationMicros()
Integer.MIN_VALUE if the duration is not yet
available.public InetAddress getCoordinator()
null
if the coordinator is not yet available.public Map<String,String> getParameters()
null if the coordinator is not yet available.public long getStartedAt()
public List<QueryTrace.Event> getEvents()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||