Package org.infinispan.xsite.metrics
Class NoOpXSiteMetricsCollector
java.lang.Object
org.infinispan.xsite.metrics.NoOpXSiteMetricsCollector
- All Implemented Interfaces:
XSiteMetricsCollector
An no-op implementation for
XSiteMetricsCollector
.
Used when cross-site replication isn't enabled on a cache.
- Since:
- 13.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
countRequestsReceived
(String srcSite) long
long
countRequestsSent
(String dstSite) long
getAvgRequestSentDuration
(long defaultValue, TimeUnit outTimeUnit) long
getAvgRequestSentDuration
(String dstSite, long defaultValue, TimeUnit outTimeUnit) static NoOpXSiteMetricsCollector
long
getMaxRequestSentDuration
(long defaultValue, TimeUnit outTimeUnit) long
getMaxRequestSentDuration
(String dstSite, long defaultValue, TimeUnit outTimeUnit) long
getMinRequestSentDuration
(long defaultValue, TimeUnit outTimeUnit) long
getMinRequestSentDuration
(String dstSite, long defaultValue, TimeUnit outTimeUnit) void
recordRequestSent
(String dstSite, long duration, TimeUnit timeUnit) void
recordRequestsReceived
(String srcSite) void
registerTimer
(String dstSite, TimerTracker timer) void
registerTimer
(TimerTracker timer) void
void
sites()
-
Method Details
-
getInstance
-
sites
- Specified by:
sites
in interfaceXSiteMetricsCollector
-
recordRequestSent
- Specified by:
recordRequestSent
in interfaceXSiteMetricsCollector
-
getMinRequestSentDuration
- Specified by:
getMinRequestSentDuration
in interfaceXSiteMetricsCollector
-
getMinRequestSentDuration
- Specified by:
getMinRequestSentDuration
in interfaceXSiteMetricsCollector
-
getMaxRequestSentDuration
- Specified by:
getMaxRequestSentDuration
in interfaceXSiteMetricsCollector
-
getMaxRequestSentDuration
- Specified by:
getMaxRequestSentDuration
in interfaceXSiteMetricsCollector
-
getAvgRequestSentDuration
- Specified by:
getAvgRequestSentDuration
in interfaceXSiteMetricsCollector
-
getAvgRequestSentDuration
- Specified by:
getAvgRequestSentDuration
in interfaceXSiteMetricsCollector
-
countRequestsSent
- Specified by:
countRequestsSent
in interfaceXSiteMetricsCollector
-
countRequestsSent
public long countRequestsSent()- Specified by:
countRequestsSent
in interfaceXSiteMetricsCollector
-
resetRequestsSent
public void resetRequestsSent()- Specified by:
resetRequestsSent
in interfaceXSiteMetricsCollector
-
registerTimer
- Specified by:
registerTimer
in interfaceXSiteMetricsCollector
-
registerTimer
- Specified by:
registerTimer
in interfaceXSiteMetricsCollector
-
recordRequestsReceived
- Specified by:
recordRequestsReceived
in interfaceXSiteMetricsCollector
-
countRequestsReceived
- Specified by:
countRequestsReceived
in interfaceXSiteMetricsCollector
-
countRequestsReceived
public long countRequestsReceived()- Specified by:
countRequestsReceived
in interfaceXSiteMetricsCollector
-
resetRequestReceived
public void resetRequestReceived()- Specified by:
resetRequestReceived
in interfaceXSiteMetricsCollector
-