Class SpectatorMetricsOptions.SpectatorTcpMetrics

java.lang.Object
net.bluemind.lib.vertx.metrics.SpectatorMetricsOptions.SpectatorTcpMetrics
All Implemented Interfaces:
io.vertx.core.spi.metrics.Metrics, io.vertx.core.spi.metrics.NetworkMetrics<Void>, io.vertx.core.spi.metrics.TCPMetrics<Void>
Enclosing class:
SpectatorMetricsOptions

public static class SpectatorMetricsOptions.SpectatorTcpMetrics extends Object implements io.vertx.core.spi.metrics.TCPMetrics<Void>
  • Field Summary

    Fields inherited from interface io.vertx.core.spi.metrics.Metrics

    DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bytesRead(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress, long numberOfBytes)
     
    void
    bytesWritten(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress, long numberOfBytes)
     
    connected(io.vertx.core.net.SocketAddress remoteAddress, String remoteName)
     
    void
    disconnected(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vertx.core.spi.metrics.Metrics

    close

    Methods inherited from interface io.vertx.core.spi.metrics.NetworkMetrics

    exceptionOccurred
  • Constructor Details

    • SpectatorTcpMetrics

      public SpectatorTcpMetrics(String port)
  • Method Details

    • connected

      public Void connected(io.vertx.core.net.SocketAddress remoteAddress, String remoteName)
      Specified by:
      connected in interface io.vertx.core.spi.metrics.TCPMetrics<Void>
    • disconnected

      public void disconnected(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress)
      Specified by:
      disconnected in interface io.vertx.core.spi.metrics.TCPMetrics<Void>
    • bytesRead

      public void bytesRead(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress, long numberOfBytes)
      Specified by:
      bytesRead in interface io.vertx.core.spi.metrics.NetworkMetrics<Void>
    • bytesWritten

      public void bytesWritten(Void socketMetric, io.vertx.core.net.SocketAddress remoteAddress, long numberOfBytes)
      Specified by:
      bytesWritten in interface io.vertx.core.spi.metrics.NetworkMetrics<Void>