public interface TraceEvent
QueryTrace
.Modifier and Type | Method and Description |
---|---|
String |
getActivity()
Which activity this event corresponds to.
|
InetAddress |
getSource()
Deprecated.
returns the source IP, but
getSourceAddress() should be preferred, since
C* 4.0 and above now returns the port was well. |
default InetSocketAddress |
getSourceAddress()
The IP and Port of the host having generated this event.
|
int |
getSourceElapsedMicros()
The number of microseconds elapsed on the source when this event occurred since the moment when
the source started handling the query.
|
String |
getThreadName()
The name of the thread on which this event occurred.
|
long |
getTimestamp()
The server-side timestamp of the event.
|
@Nullable String getActivity()
long getTimestamp()
@Nullable @Deprecated InetAddress getSource()
getSourceAddress()
should be preferred, since
C* 4.0 and above now returns the port was well.@Nullable default InetSocketAddress getSourceAddress()
This method's default implementation returns getSource()
with the port set to 0.
The only reason it exists is to preserve binary compatibility. Internally, the driver overrides
it to set the correct port.
int getSourceElapsedMicros()
@Nullable String getThreadName()
Copyright © 2017–2020. All rights reserved.