ChannelHandler for collecting metrics on protocol level.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private static final Logger | |
| pack-priv final boolean | |
| pack-priv final SocketAddress |
| Access | Constructor and Description |
|---|---|
| protected |
| channelOpened | back to summary |
|---|---|
| pack-priv boolean channelOpened | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| onServer | back to summary |
|---|---|
| pack-priv final boolean onServer | |
| remoteAddress | back to summary |
|---|---|
| pack-priv final SocketAddress remoteAddress | |
| AbstractChannelMetricsHandler | back to summary |
|---|---|
| protected AbstractChannelMetricsHandler(SocketAddress remoteAddress, boolean onServer) | |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) Overrides io. Implements io. Doc from io. Calls
| |
| channelRegistered | back to summary |
|---|---|
| public void channelRegistered(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| connectMetricsHandler | back to summary |
|---|---|
| public abstract ChannelHandler connectMetricsHandler() | |
| exceptionCaught | back to summary |
|---|---|
| public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) Overrides io. Implements io. Doc from io. Gets called if a
| |
| recorder | back to summary |
|---|---|
| public abstract ChannelMetricsRecorder recorder() | |
| recordException | back to summary |
|---|---|
| protected void recordException(ChannelHandlerContext ctx, SocketAddress address) | |
| recordRead | back to summary |
|---|---|
| protected void recordRead(ChannelHandlerContext ctx, SocketAddress address, long bytes) | |
| recordWrite | back to summary |
|---|---|
| protected void recordWrite(ChannelHandlerContext ctx, SocketAddress address, long bytes) | |
| tlsMetricsHandler | back to summary |
|---|---|
| public abstract ChannelHandler tlsMetricsHandler() | |
| write | back to summary |
|---|---|
| public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Overrides io. Implements io. Doc from io. Calls
| |