GigaSpaces XAP 7.0 API

org.openspaces.pu.sla.monitor
Class AbstractMonitor

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
AbstractMonitor()
           
 
Method Summary
 int getHistorySize()
          The history log size that will be kept for this monitor.
 String getName()
          Returns the name of the monitor.
 long getPeriod()
          The period this monitor will be sampled (in milliseconds).
 void setHistorySize(int historySize)
          The history log size that will be kept for this monitor.
 void setName(String name)
          Sets the name of the monitor.
 void setPeriod(long period)
          The period this monitor will be sampled (in milliseconds).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openspaces.pu.sla.monitor.Monitor
getValue
 

Constructor Detail

AbstractMonitor

public AbstractMonitor()
Method Detail

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.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.