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

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


org.jboss.web.loadbalancer.monitor
Class ECVMonitorService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.web.loadbalancer.monitor.AbstractMonitor
              extended byorg.jboss.web.loadbalancer.monitor.ECVMonitorService
All Implemented Interfaces:
AbstractMonitorMBean, ECVMonitorServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Runnable, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class ECVMonitorService
extends AbstractMonitor
implements ECVMonitorServiceMBean

A Monitor implementation that does a RegExp-check of the content.

Version:
$Revision: 1.3 $
Author:
Thomas Peuss

Field Summary
protected  gnu.regexp.RE regExp
           
 
Fields inherited from class org.jboss.web.loadbalancer.monitor.AbstractMonitor
interval, keepRunning, log, monitorThread, path, scheduler, schedulerObjectName, timeout
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.web.loadbalancer.monitor.ECVMonitorServiceMBean
OBJECT_NAME
 
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
ECVMonitorService()
           
 
Method Summary
protected  boolean checkHostStatus(org.apache.commons.httpclient.HttpMethod method)
          Override this method to create new monitors.
 String getRegExp()
           
protected  boolean matchRegExp(String string)
           
 void setRegExp(String regExp)
           
 
Methods inherited from class org.jboss.web.loadbalancer.monitor.AbstractMonitor
checkHost, destroyService, getInterval, getPath, getScheduler, getTimeout, isKeepRunning, monitorHosts, run, setInterval, setKeepRunning, setPath, setScheduler, setTimeout, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, 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.web.loadbalancer.monitor.AbstractMonitorMBean
getInterval, getPath, getScheduler, getTimeout, setInterval, setPath, setScheduler, setTimeout
 
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

regExp

protected gnu.regexp.RE regExp
Constructor Detail

ECVMonitorService

public ECVMonitorService()
Method Detail

checkHostStatus

protected boolean checkHostStatus(org.apache.commons.httpclient.HttpMethod method)
Description copied from class: AbstractMonitor
Override this method to create new monitors.

Specified by:
checkHostStatus in class AbstractMonitor
Parameters:
method -
Returns:

matchRegExp

protected boolean matchRegExp(String string)

setRegExp

public void setRegExp(String regExp)
               throws gnu.regexp.REException
Specified by:
setRegExp in interface ECVMonitorServiceMBean
Throws:
gnu.regexp.REException

getRegExp

public String getRegExp()
Specified by:
getRegExp in interface ECVMonitorServiceMBean


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.