Package pl.tkowalcz.tjahzi.stats
Class LoggingMonitoringModule
java.lang.Object
pl.tkowalcz.tjahzi.stats.StandardMonitoringModule
pl.tkowalcz.tjahzi.stats.LoggingMonitoringModule
- All Implemented Interfaces:
MonitoringModule
A MonitoringModule implementation that logs internal errors and connection errors
to a provided logger consumer in addition to the standard monitoring functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAgentError(Throwable throwable) voidaddPipelineError(Throwable cause) voidvoidincrementDroppedPuts(Throwable throwable) voidvoidincrementHttpErrors(int status, String message) voidvoidonClose()Methods inherited from class pl.tkowalcz.tjahzi.stats.StandardMonitoringModule
getFailedHttpRequests, getHttpConnectAttempts, getHttpResponses, getRetriedHttpRequests, getSentBytes, getSentHttpRequests, incrementDroppedPuts, incrementHttpConnectAttempts, incrementHttpResponses, incrementSentHttpRequests, recordResponseTime, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.tkowalcz.tjahzi.stats.MonitoringModule
getClock
-
Constructor Details
-
LoggingMonitoringModule
-
-
Method Details
-
addAgentError
- Specified by:
addAgentErrorin interfaceMonitoringModule- Overrides:
addAgentErrorin classStandardMonitoringModule
-
addPipelineError
- Specified by:
addPipelineErrorin interfaceMonitoringModule- Overrides:
addPipelineErrorin classStandardMonitoringModule
-
incrementDroppedPuts
- Specified by:
incrementDroppedPutsin interfaceMonitoringModule- Overrides:
incrementDroppedPutsin classStandardMonitoringModule
-
incrementRetriedHttpRequests
public void incrementRetriedHttpRequests()- Specified by:
incrementRetriedHttpRequestsin interfaceMonitoringModule- Overrides:
incrementRetriedHttpRequestsin classStandardMonitoringModule
-
incrementHttpErrors
- Specified by:
incrementHttpErrorsin interfaceMonitoringModule- Overrides:
incrementHttpErrorsin classStandardMonitoringModule
-
incrementFailedHttpRequests
public void incrementFailedHttpRequests()- Specified by:
incrementFailedHttpRequestsin interfaceMonitoringModule- Overrides:
incrementFailedHttpRequestsin classStandardMonitoringModule
-
incrementChannelInactive
public void incrementChannelInactive()- Specified by:
incrementChannelInactivein interfaceMonitoringModule- Overrides:
incrementChannelInactivein classStandardMonitoringModule
-
onClose
public void onClose()
-