Package org.openspaces.pu.sla.monitor
Class BeanPropertyMonitor
java.lang.Object
org.openspaces.pu.sla.monitor.AbstractMonitor
org.openspaces.pu.sla.monitor.BeanPropertyMonitor
- All Implemented Interfaces:
Serializable,ApplicationContextMonitor,Monitor
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe property name of the given bean that will be monitored.getRef()The registered bean reference that will be monitored.doublegetValue()The value of the monitor.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetPropertyName(String propertyName) Sets the property name of the given bean that will be monitored.voidSets the registered bean reference that will be monitored.Methods inherited from class org.openspaces.pu.sla.monitor.AbstractMonitor
getHistorySize, getName, getPeriod, setHistorySize, setName, setPeriodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openspaces.pu.sla.monitor.Monitor
getHistorySize, getName, getPeriod
-
Constructor Details
-
BeanPropertyMonitor
public BeanPropertyMonitor()
-
-
Method Details
-
setRef
Sets the registered bean reference that will be monitored. -
getRef
The registered bean reference that will be monitored. -
setPropertyName
Sets the property name of the given bean that will be monitored. -
getPropertyName
The property name of the given bean that will be monitored. -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceApplicationContextMonitor
-
getValue
public double getValue()Description copied from interface:MonitorThe value of the monitor.
-