Package org.openspaces.pu.sla.monitor
Class AbstractMonitor
java.lang.Object
org.openspaces.pu.sla.monitor.AbstractMonitor
- All Implemented Interfaces:
Serializable,Monitor
- Direct Known Subclasses:
BeanPropertyMonitor
A base class for monitor classes.
- Author:
- kimchy
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe history log size that will be kept for this monitor.getName()Returns the name of the monitor.longThe period this monitor will be sampled (in milliseconds).voidsetHistorySize(int historySize) The history log size that will be kept for this monitor.voidSets the name of the monitor.voidsetPeriod(long period) The period this monitor will be sampled (in milliseconds).
-
Constructor Details
-
AbstractMonitor
public AbstractMonitor()
-
-
Method Details
-
getName
Returns the name of the monitor. -
setName
Sets the name of the monitor. -
getPeriod
public long getPeriod()The period this monitor will be sampled (in milliseconds). Defaults to 5 seconds. -
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:
getHistorySizein interfaceMonitor
-
setHistorySize
public void setHistorySize(int historySize) The history log size that will be kept for this monitor. Defaults to 100.
-