Class JMXRefreshTask

java.lang.Object
org.deltava.util.jmx.JMXRefreshTask
All Implemented Interfaces:
Serializable, org.gvagroup.tomcat.SharedTask

public class JMXRefreshTask extends Object implements org.gvagroup.tomcat.SharedTask
A shared task to auotmatically refresh JMX statistics.
Since:
10.2
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • JMXRefreshTask

      public JMXRefreshTask(JMXRefresh bean, int interval)
      Initializes the Task.
      Parameters:
      bean - the JMXRefresh bean
      interval - the execution interval in milliseconds
  • Method Details

    • getInterval

      public int getInterval()
      Specified by:
      getInterval in interface org.gvagroup.tomcat.SharedTask
    • isStopped

      public boolean isStopped()
      Specified by:
      isStopped in interface org.gvagroup.tomcat.SharedTask
    • stop

      public void stop()
      Specified by:
      stop in interface org.gvagroup.tomcat.SharedTask
    • execute

      public void execute()
      Specified by:
      execute in interface org.gvagroup.tomcat.SharedTask
    • toString

      public String toString()
      Overrides:
      toString in class Object