站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

JBossMonitor (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


org.jboss.monitor
Class JBossMonitor

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.monitor.JBossMonitor
All Implemented Interfaces:
JBossMonitorMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Runnable, 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: 1.2 $
Author:
Bill Burke

Field Summary
protected  ArrayList alertListeners
           
protected  boolean alertSent
           
protected  String attribute
           
protected  boolean enabled
           
protected  org.jboss.logging.Logger log
           
protected  String monitorName
           
protected  javax.management.ObjectName observedObject
           
protected  long period
           
protected  String thresholdString
           
protected  Object triggeredAttributeValue
           
protected  long triggerTime
           
 
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
 
Constructor Summary
JBossMonitor()
           
 
Method Summary
 boolean alerted()
           
 void clearAlert()
           
 ArrayList getAlertListeners()
           
 boolean getEnabled()
           
 String getMonitorName()
           
 String getObservedAttribute()
           
 javax.management.ObjectName getObservedObject()
           
 long getPeriod()
           
 String getThreshold()
           
 Object getTriggeredAttributeValue()
           
 long getTriggerTime()
           
 void run()
           
 void setAlertListeners(ArrayList listeners)
           
 void setEnabled(boolean start)
           
 void setMonitorName(String name)
           
 void setObservedAttribute(String attr)
           
 void setObservedObject(javax.management.ObjectName oname)
           
 void setPeriod(long period)
           
 void setThreshold(String val)
           
protected  void startMonitorThread()
           
protected  void startService()
           
protected  void stopService()
           
protected abstract  void testThreshold()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
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 org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, 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
 

Field Detail

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
Constructor Detail

JBossMonitor

public JBossMonitor()
Method Detail

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()

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.