org.jboss.monitor
Class JBossMonitor
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.monitor.JBossMonitor
- All Implemented Interfaces:
- Runnable, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JBossMonitorMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
- Direct Known Subclasses:
- StringThresholdMonitor, ThresholdMonitor
public abstract class JBossMonitor
- extends org.jboss.system.ServiceMBeanSupport
- implements Runnable, JBossMonitorMBean
Comment
- Version:
- $Revision: 57210 $
- Author:
- Bill Burke
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
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 |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
log
protected org.jboss.logging.Logger log
monitorName
protected String monitorName
observedObject
protected javax.management.ObjectName observedObject
attribute
protected String attribute
enabled
protected boolean enabled
alertSent
protected boolean alertSent
period
protected long period
alertListeners
protected ArrayList alertListeners
thresholdString
protected String thresholdString
triggeredAttributeValue
protected Object triggeredAttributeValue
triggerTime
protected long triggerTime
JBossMonitor
public JBossMonitor()
startService
protected void startService()
throws Exception
- Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
- Throws:
Exception
stopService
protected void stopService()
- Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
startMonitorThread
protected void startMonitorThread()
testThreshold
protected abstract void testThreshold()
getMonitorName
public String getMonitorName()
- Specified by:
getMonitorName in interface JBossMonitorMBean
setMonitorName
public void setMonitorName(String name)
- Specified by:
setMonitorName in interface JBossMonitorMBean
getObservedObject
public javax.management.ObjectName getObservedObject()
- Specified by:
getObservedObject in interface JBossMonitorMBean
setObservedObject
public void setObservedObject(javax.management.ObjectName oname)
- Specified by:
setObservedObject in interface JBossMonitorMBean
getObservedAttribute
public String getObservedAttribute()
- Specified by:
getObservedAttribute in interface JBossMonitorMBean
setObservedAttribute
public void setObservedAttribute(String attr)
- Specified by:
setObservedAttribute in interface JBossMonitorMBean
alerted
public boolean alerted()
- Specified by:
alerted in interface JBossMonitorMBean
clearAlert
public void clearAlert()
- Specified by:
clearAlert in interface JBossMonitorMBean
getEnabled
public boolean getEnabled()
- Specified by:
getEnabled in interface JBossMonitorMBean
setEnabled
public void setEnabled(boolean start)
- Specified by:
setEnabled in interface JBossMonitorMBean
getPeriod
public long getPeriod()
- Specified by:
getPeriod in interface JBossMonitorMBean
setPeriod
public void setPeriod(long period)
- Specified by:
setPeriod in interface JBossMonitorMBean
getAlertListeners
public ArrayList getAlertListeners()
- Specified by:
getAlertListeners in interface JBossMonitorMBean
setAlertListeners
public void setAlertListeners(ArrayList listeners)
- Specified by:
setAlertListeners in interface JBossMonitorMBean
getTriggeredAttributeValue
public Object getTriggeredAttributeValue()
- Specified by:
getTriggeredAttributeValue in interface JBossMonitorMBean
getTriggerTime
public long getTriggerTime()
- Specified by:
getTriggerTime in interface JBossMonitorMBean
run
public void run()
- Specified by:
run in interface Runnable
getThreshold
public String getThreshold()
- Specified by:
getThreshold in interface JBossMonitorMBean
setThreshold
public void setThreshold(String val)
- Specified by:
setThreshold in interface JBossMonitorMBean
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.