org.jboss.monitor
Class JBossMonitor
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.monitor.JBossMonitor
- All Implemented Interfaces:
- JBossMonitorMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , java.lang.Runnable, Service (src) , ServiceMBean (src)
- Direct Known Subclasses:
- StringThresholdMonitor (src) , ThresholdMonitor (src)
- public abstract class JBossMonitor
- extends ServiceMBeanSupport (src)
- implements java.lang.Runnable, JBossMonitorMBean (src)
Comment
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected Logger (src) log
monitorName
protected java.lang.String monitorName
observedObject
protected ObjectName (src) observedObject
attribute
protected java.lang.String attribute
enabled
protected boolean enabled
alertSent
protected boolean alertSent
period
protected long period
alertListeners
protected java.util.ArrayList alertListeners
thresholdString
protected java.lang.String thresholdString
triggeredAttributeValue
protected java.lang.Object triggeredAttributeValue
triggerTime
protected long triggerTime
JBossMonitor
public JBossMonitor()
startService
protected void startService()
throws java.lang.Exception
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'start' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
startService
in class ServiceMBeanSupport (src)
- Throws:
java.lang.Exception
stopService
protected void stopService()
- Description copied from class:
ServiceMBeanSupport (src)
- Sub-classes should override this method to provide
custum 'stop' logic.
This method is empty, and is provided for convenience
when concrete service classes do not need to perform
anything specific for this state change.
- Overrides:
stopService
in class ServiceMBeanSupport (src)
startMonitorThread
protected void startMonitorThread()
testThreshold
protected abstract void testThreshold()
getMonitorName
public java.lang.String getMonitorName()
- Specified by:
getMonitorName
in interface JBossMonitorMBean (src)
setMonitorName
public void setMonitorName(java.lang.String name)
- Specified by:
setMonitorName
in interface JBossMonitorMBean (src)
getObservedObject
public ObjectName (src) getObservedObject()
- Specified by:
getObservedObject
in interface JBossMonitorMBean (src)
setObservedObject
public void setObservedObject(ObjectName (src) oname)
- Specified by:
setObservedObject
in interface JBossMonitorMBean (src)
getObservedAttribute
public java.lang.String getObservedAttribute()
- Specified by:
getObservedAttribute
in interface JBossMonitorMBean (src)
setObservedAttribute
public void setObservedAttribute(java.lang.String attr)
- Specified by:
setObservedAttribute
in interface JBossMonitorMBean (src)
alerted
public boolean alerted()
- Specified by:
alerted
in interface JBossMonitorMBean (src)
clearAlert
public void clearAlert()
- Specified by:
clearAlert
in interface JBossMonitorMBean (src)
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled
in interface JBossMonitorMBean (src)
setEnabled
public void setEnabled(boolean start)
- Specified by:
setEnabled
in interface JBossMonitorMBean (src)
getPeriod
public long getPeriod()
- Specified by:
getPeriod
in interface JBossMonitorMBean (src)
setPeriod
public void setPeriod(long period)
- Specified by:
setPeriod
in interface JBossMonitorMBean (src)
getAlertListeners
public java.util.ArrayList getAlertListeners()
- Specified by:
getAlertListeners
in interface JBossMonitorMBean (src)
setAlertListeners
public void setAlertListeners(java.util.ArrayList listeners)
- Specified by:
setAlertListeners
in interface JBossMonitorMBean (src)
getTriggeredAttributeValue
public java.lang.Object getTriggeredAttributeValue()
- Specified by:
getTriggeredAttributeValue
in interface JBossMonitorMBean (src)
getTriggerTime
public long getTriggerTime()
- Specified by:
getTriggerTime
in interface JBossMonitorMBean (src)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getThreshold
public java.lang.String getThreshold()
- Specified by:
getThreshold
in interface JBossMonitorMBean (src)
setThreshold
public void setThreshold(java.lang.String val)
- Specified by:
setThreshold
in interface JBossMonitorMBean (src)