public abstract class ContextAwareChannelMetricsRecorder extends Object implements ChannelMetricsRecorder
ContextView
aware class for recording metrics on protocol level.Constructor and Description |
---|
ContextAwareChannelMetricsRecorder() |
Modifier and Type | Method and Description |
---|---|
abstract void |
incrementErrorsCount(ContextView contextView,
SocketAddress remoteAddress)
Increments the number of the errors that have occurred.
|
void |
incrementErrorsCount(ContextView contextView,
SocketAddress remoteAddress,
SocketAddress proxyAddress)
Increments the number of the errors that have occurred.
|
void |
incrementErrorsCount(SocketAddress remoteAddress)
Increments the number of the errors that have occurred.
|
void |
incrementErrorsCount(SocketAddress remoteAddress,
SocketAddress proxyAddress)
Increments the number of the errors that have occurred.
|
abstract void |
recordConnectTime(ContextView contextView,
SocketAddress remoteAddress,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
void |
recordConnectTime(ContextView contextView,
SocketAddress remoteAddress,
SocketAddress proxyAddress,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
void |
recordConnectTime(SocketAddress remoteAddress,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
void |
recordConnectTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
Duration time,
String status)
Records the time that is spent for connecting to the remote address.
|
abstract void |
recordDataReceived(ContextView contextView,
SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is received, in bytes.
|
void |
recordDataReceived(ContextView contextView,
SocketAddress remoteAddress,
SocketAddress proxyAddress,
long bytes)
Records the amount of the data that is received, in bytes.
|
void |
recordDataReceived(SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is received, in bytes.
|
void |
recordDataReceived(SocketAddress remoteAddress,
SocketAddress proxyAddress,
long bytes)
Records the amount of the data that is received, in bytes.
|
abstract void |
recordDataSent(ContextView contextView,
SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is sent, in bytes.
|
void |
recordDataSent(ContextView contextView,
SocketAddress remoteAddress,
SocketAddress proxyAddress,
long bytes)
Records the amount of the data that is sent, in bytes.
|
void |
recordDataSent(SocketAddress remoteAddress,
long bytes)
Records the amount of the data that is sent, in bytes.
|
void |
recordDataSent(SocketAddress remoteAddress,
SocketAddress proxyAddress,
long bytes)
Records the amount of the data that is sent, in bytes.
|
abstract void |
recordTlsHandshakeTime(ContextView contextView,
SocketAddress remoteAddress,
Duration time,
String status)
Records the time that is spent for TLS handshake.
|
void |
recordTlsHandshakeTime(ContextView contextView,
SocketAddress remoteAddress,
SocketAddress proxyAddress,
Duration time,
String status)
Records the time that is spent for TLS handshake.
|
void |
recordTlsHandshakeTime(SocketAddress remoteAddress,
Duration time,
String status)
Records the time that is spent for TLS handshake.
|
void |
recordTlsHandshakeTime(SocketAddress remoteAddress,
SocketAddress proxyAddress,
Duration time,
String status)
Records the time that is spent for TLS handshake.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
recordResolveAddressTime, recordServerConnectionClosed, recordServerConnectionOpened
public abstract void incrementErrorsCount(ContextView contextView, SocketAddress remoteAddress)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerpublic void incrementErrorsCount(ContextView contextView, SocketAddress remoteAddress, SocketAddress proxyAddress)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerproxyAddress
- The proxy addresspublic abstract void recordConnectTime(ContextView contextView, SocketAddress remoteAddress, Duration time, String status)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peertime
- The time in nanoseconds that is spent for connecting to the remote addressstatus
- The status of the operationpublic void recordConnectTime(ContextView contextView, SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- The time in nanoseconds that is spent for connecting to the remote addressstatus
- The status of the operationpublic abstract void recordDataReceived(ContextView contextView, SocketAddress remoteAddress, long bytes)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerbytes
- The amount of the data that is received, in bytespublic void recordDataReceived(ContextView contextView, SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- The amount of the data that is received, in bytespublic abstract void recordDataSent(ContextView contextView, SocketAddress remoteAddress, long bytes)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerbytes
- The amount of the data that is sent, in bytespublic void recordDataSent(ContextView contextView, SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- The amount of the data that is sent, in bytespublic abstract void recordTlsHandshakeTime(ContextView contextView, SocketAddress remoteAddress, Duration time, String status)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peertime
- The time in nanoseconds that is spent for TLS handshakestatus
- The status of the operationpublic void recordTlsHandshakeTime(ContextView contextView, SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
contextView
- The current ContextView
associated with the Mono/Flux pipelineremoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- The time in nanoseconds that is spent for TLS handshakestatus
- The status of the operationpublic void incrementErrorsCount(SocketAddress remoteAddress)
ChannelMetricsRecorder
incrementErrorsCount
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerpublic void incrementErrorsCount(SocketAddress remoteAddress, SocketAddress proxyAddress)
ChannelMetricsRecorder
incrementErrorsCount
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerproxyAddress
- The proxy addresspublic void recordConnectTime(SocketAddress remoteAddress, Duration time, String status)
ChannelMetricsRecorder
recordConnectTime
in interface ChannelMetricsRecorder
remoteAddress
- The remote peertime
- the time in nanoseconds that is spent for connecting to the remote addressstatus
- the status of the operationpublic void recordConnectTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
ChannelMetricsRecorder
recordConnectTime
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- the time in nanoseconds that is spent for connecting to the remote addressstatus
- the status of the operationpublic void recordDataReceived(SocketAddress remoteAddress, long bytes)
ChannelMetricsRecorder
recordDataReceived
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerbytes
- The amount of the data that is received, in bytespublic void recordDataReceived(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
ChannelMetricsRecorder
recordDataReceived
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- The amount of the data that is received, in bytespublic void recordDataSent(SocketAddress remoteAddress, long bytes)
ChannelMetricsRecorder
recordDataSent
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerbytes
- The amount of the data that is sent, in bytespublic void recordDataSent(SocketAddress remoteAddress, SocketAddress proxyAddress, long bytes)
ChannelMetricsRecorder
recordDataSent
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerproxyAddress
- The proxy addressbytes
- The amount of the data that is sent, in bytespublic void recordTlsHandshakeTime(SocketAddress remoteAddress, Duration time, String status)
ChannelMetricsRecorder
recordTlsHandshakeTime
in interface ChannelMetricsRecorder
remoteAddress
- The remote peertime
- the time in nanoseconds that is spent for TLS handshakestatus
- the status of the operationpublic void recordTlsHandshakeTime(SocketAddress remoteAddress, SocketAddress proxyAddress, Duration time, String status)
ChannelMetricsRecorder
recordTlsHandshakeTime
in interface ChannelMetricsRecorder
remoteAddress
- The remote peerproxyAddress
- The proxy addresstime
- the time in nanoseconds that is spent for TLS handshakestatus
- the status of the operation