Class RedisMonitor

  • Direct Known Subclasses:
    CustomRedisMonitor

    public class RedisMonitor
    extends java.lang.Object
    Monitors 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
      void enableElementCount​(java.lang.String metricName, java.lang.String key)  
      protected java.lang.String getMonitoringAddress()
      Get the event bus address of the monitoring.
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedisMonitor

        public RedisMonitor​(io.vertx.core.Vertx vertx,
                            io.vertx.redis.RedisClient redisClient,
                            java.lang.String name,
                            int period)
        Parameters:
        vertx - vertx
        redisClient - redisClient
        name - name
        period - in seconds.
    • 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)