Class RedisMonitor
- java.lang.Object
-
- org.swisspush.gateleen.monitoring.RedisMonitor
-
- Direct Known Subclasses:
CustomRedisMonitor
public class RedisMonitor extends java.lang.ObjectMonitors regularly redis info metrics and arbitrary commands. Sends the results to metrics.
-
-
Constructor Summary
Constructors Constructor Description RedisMonitor(io.vertx.core.Vertx vertx, io.vertx.redis.RedisClient redisClient, java.lang.String name, int period)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableElementCount(java.lang.String metricName, java.lang.String key)protected java.lang.StringgetMonitoringAddress()Get the event bus address of the monitoring.voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
getMonitoringAddress
protected java.lang.String getMonitoringAddress()
Get the event bus address of the monitoring. Override this method when you want to use a custom monitoring address- Returns:
- the event bus address of monitoring
-
enableElementCount
public void enableElementCount(java.lang.String metricName, java.lang.String key)
-
-