org.jboss.web.loadbalancer.monitor
Class ECVMonitorService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.web.loadbalancer.monitor.AbstractMonitor (src) 
              extended byorg.jboss.web.loadbalancer.monitor.ECVMonitorService
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , java.lang.Runnable, Service (src) , ServiceMBean (src)

public class ECVMonitorService
extends AbstractMonitor (src)

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


Field Summary
protected  RE regExp
           
 
Fields inherited from class org.jboss.web.loadbalancer.monitor.AbstractMonitor (src)
interval, keepRunning, log, monitorThread, path, scheduler, schedulerObjectName, timeout
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
ECVMonitorService()
           
 
Method Summary
protected  boolean checkHostStatus(HttpMethod method)
          Override this method to create new monitors.
 java.lang.String getRegExp()
           
protected  boolean matchRegExp(java.lang.String string)
           
 void setRegExp(java.lang.String regExp)
           
 
Methods inherited from class org.jboss.web.loadbalancer.monitor.AbstractMonitor (src)
checkHost, destroyService, getInterval, getPath, getScheduler, getTimeout, isKeepRunning, monitorHosts, run, setInterval, setKeepRunning, setPath, setScheduler, setTimeout, startService, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
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 (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regExp

protected RE regExp
Constructor Detail

ECVMonitorService

public ECVMonitorService()
Method Detail

checkHostStatus

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

Specified by:
checkHostStatus in class AbstractMonitor (src)
Parameters:
method -
Returns:

matchRegExp

protected boolean matchRegExp(java.lang.String string)

setRegExp

public void setRegExp(java.lang.String regExp)
               throws REException
Throws:
REException

getRegExp

public java.lang.String getRegExp()