Class BeanPropertyMonitor

java.lang.Object
org.openspaces.pu.sla.monitor.AbstractMonitor
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:
  • Constructor Details

    • BeanPropertyMonitor

      public BeanPropertyMonitor()
  • Method Details

    • 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(org.springframework.context.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