Interface ProtocolAdapterMetricsService


public interface ProtocolAdapterMetricsService
Service class to increment and decrement adapter specific metrics.
  • Method Details

    • incrementReadPublishSuccess

      void incrementReadPublishSuccess()
      Increments the counter for successful reads. NOTE: For PollingProtocolAdapter this is done by the framework.
    • incrementReadPublishFailure

      void incrementReadPublishFailure()
      Increments the counter for failed reads. NOTE: For PollingProtocolAdapter this is done by the framework.
    • incrementWritePublishSuccess

      void incrementWritePublishSuccess()
      Increments the counter for successful reads. NOTE: For WritingProtocolAdapter this is done by the framework.
    • incrementWritePublishFailure

      void incrementWritePublishFailure()
      Increments the counter for failed reads. NOTE: For WritingProtocolAdapter this is done by the framework.
    • incrementConnectionFailure

      void incrementConnectionFailure()
      Increments the metrics for failed connection attempts.
    • incrementConnectionSuccess

      void incrementConnectionSuccess()
      Increments the metrics for successful connection attempts.
    • increment

      void increment(@NotNull @NotNull String metricName)
      Custom counter can be incremented via this method.
      Parameters:
      metricName - the name of the custom counter, which will be prefixed with "com.hivemq.edge.protocol-adapters.ADAPTER_TYPE.ADAPTER_ID."