Class AbstractMonitor

java.lang.Object
org.openspaces.pu.sla.monitor.AbstractMonitor
All Implemented Interfaces:
Serializable, Monitor
Direct Known Subclasses:
BeanPropertyMonitor

public abstract class AbstractMonitor extends Object implements Monitor
A base class for monitor classes.
Author:
kimchy
See Also:
  • Constructor Details

    • AbstractMonitor

      public AbstractMonitor()
  • Method Details

    • getName

      public String getName()
      Returns the name of the monitor.
      Specified by:
      getName in interface Monitor
    • setName

      public void setName(String name)
      Sets the name of the monitor.
    • getPeriod

      public long getPeriod()
      The period this monitor will be sampled (in milliseconds). Defaults to 5 seconds.
      Specified by:
      getPeriod in interface Monitor
    • setPeriod

      public void setPeriod(long period)
      The period this monitor will be sampled (in milliseconds). Defaults to 5 seconds.
    • getHistorySize

      public int getHistorySize()
      The history log size that will be kept for this monitor. Defaults to 100.
      Specified by:
      getHistorySize in interface Monitor
    • setHistorySize

      public void setHistorySize(int historySize)
      The history log size that will be kept for this monitor. Defaults to 100.