GigaSpaces XAP 7.0 API

org.openspaces.pu.sla.monitor
Class BeanPropertyMonitor

java.lang.Object
  extended by org.openspaces.pu.sla.monitor.AbstractMonitor
      extended by org.openspaces.pu.sla.monitor.BeanPropertyMonitor
All Implemented Interfaces:
Serializable, ApplicationContextMonitor, Monitor

public class BeanPropertyMonitor
extends AbstractMonitor
implements ApplicationContextMonitor

The bean property monitor allows to register a Spring bean reference and a proeprty name which will be monitored at a scheduled interval by invoking it.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
BeanPropertyMonitor()
           
 
Method Summary
 String getPropertyName()
          The property name of the given bean that will be monitored.
 String getRef()
          The registered bean reference that will be monitored.
 double getValue()
          The value of the monitor.
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setPropertyName(String propertyName)
          Sets the property name of the given bean that will be monitored.
 void setRef(String ref)
          Sets the registered bean reference that will be monitored.
 
Methods inherited from class org.openspaces.pu.sla.monitor.AbstractMonitor
getHistorySize, getName, getPeriod, setHistorySize, setName, setPeriod
 
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
getHistorySize, getName, getPeriod
 

Constructor Detail

BeanPropertyMonitor

public BeanPropertyMonitor()
Method Detail

setRef

public void setRef(String ref)
Sets the registered bean reference that will be monitored.


getRef

public String getRef()
The registered bean reference that will be monitored.


setPropertyName

public void setPropertyName(String propertyName)
Sets the property name of the given bean that will be monitored.


getPropertyName

public String getPropertyName()
The property name of the given bean that will be monitored.


setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface ApplicationContextMonitor

getValue

public double getValue()
Description copied from interface: Monitor
The value of the monitor.

Specified by:
getValue in interface Monitor

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.