Interface ProtocolAdapterMetricsService
public interface ProtocolAdapterMetricsService
Service class to increment and decrement adapter specific metrics.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCustom counter can be incremented via this method.voidIncrements the metrics for failed connection attempts.voidIncrements the metrics for successful connection attempts.voidIncrements the counter for failed reads.voidIncrements the counter for successful reads.voidIncrements the counter for failed reads.voidIncrements the counter for successful reads.
-
Method Details
-
incrementReadPublishSuccess
void incrementReadPublishSuccess()Increments the counter for successful reads. NOTE: ForPollingProtocolAdapterthis is done by the framework. -
incrementReadPublishFailure
void incrementReadPublishFailure()Increments the counter for failed reads. NOTE: ForPollingProtocolAdapterthis is done by the framework. -
incrementWritePublishSuccess
void incrementWritePublishSuccess()Increments the counter for successful reads. NOTE: ForWritingProtocolAdapterthis is done by the framework. -
incrementWritePublishFailure
void incrementWritePublishFailure()Increments the counter for failed reads. NOTE: ForWritingProtocolAdapterthis 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
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."
-