Package org.infinispan.xsite.metrics
Interface XSiteMetricsCollector
- All Known Implementing Classes:
DefaultXSiteMetricsCollector
,NoOpXSiteMetricsCollector
public interface XSiteMetricsCollector
Collects metrics about cross-site replication operations.
- 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) 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
-
sites
Collection<String> sites() -
recordRequestSent
-
getMinRequestSentDuration
-
getMinRequestSentDuration
-
getMaxRequestSentDuration
-
getMaxRequestSentDuration
-
getAvgRequestSentDuration
-
getAvgRequestSentDuration
-
countRequestsSent
-
countRequestsSent
long countRequestsSent() -
resetRequestsSent
void resetRequestsSent() -
registerTimer
-
registerTimer
-
recordRequestsReceived
-
countRequestsReceived
-
countRequestsReceived
long countRequestsReceived() -
resetRequestReceived
void resetRequestReceived()
-