Interface TraceEvent
-
public interface TraceEventAn event in aQueryTrace.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StringgetActivity()Which activity this event corresponds to.InetAddressgetSource()Deprecated.returns the source IP, butgetSourceAddress()should be preferred, since C* 4.0 and above now returns the port was well.default InetSocketAddressgetSourceAddress()The IP and Port of the host having generated this event.intgetSourceElapsedMicros()The number of microseconds elapsed on the source when this event occurred since the moment when the source started handling the query.StringgetThreadName()The name of the thread on which this event occurred.longgetTimestamp()The server-side timestamp of the event.
-
-
-
Method Detail
-
getActivity
@Nullable String getActivity()
Which activity this event corresponds to.
-
getTimestamp
long getTimestamp()
The server-side timestamp of the event.
-
getSource
@Nullable @Deprecated InetAddress getSource()
Deprecated.returns the source IP, butgetSourceAddress()should be preferred, since C* 4.0 and above now returns the port was well.
-
getSourceAddress
@Nullable default InetSocketAddress getSourceAddress()
The IP and Port of the host having generated this event. Prior to C* 4.0 the port will be set to zero.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.- Since:
- 4.6.0
-
getSourceElapsedMicros
int getSourceElapsedMicros()
The number of microseconds elapsed on the source when this event occurred since the moment when the source started handling the query.
-
getThreadName
@Nullable String getThreadName()
The name of the thread on which this event occurred.
-
-