Class ActiveMonitor

  extended byorg.apache.avalon.excalibur.monitor.impl.AbstractMonitor
      extended byorg.apache.avalon.excalibur.monitor.impl.ActiveMonitor
          extended byorg.apache.avalon.excalibur.monitor.ActiveMonitor
All Implemented Interfaces:
Component, Configurable, LogEnabled, Monitor, java.lang.Runnable, Startable, ThreadSafe

public class ActiveMonitor
extends ActiveMonitor
implements LogEnabled, Configurable, Startable, ThreadSafe

The ActiveMonitor is used to actively check a set of resources to see if they have changed. It will be implemented as a Component, that can be retrieved from the ComponentLocator. It defaults to checking every 1 minute. The configuration looks like this:

     <thread priority="5" frequency="60000"/>
       <-- This entry can be repeated for every resource you want to register immediately -->

       <resource key="file:./myfile.html" class="org.apache.avalon.excalibur.monitor.FileResource"/>

$Id:,v 1.4 2004/02/28 11:47:32 cziegeler Exp $
Avalon Development Team

Field Summary
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
Constructor Summary
Method Summary
 void configure(Configuration config)
          Configure the ActiveMonitor.
 void enableLogging(Logger logger)
          Provide component with a logger.
Methods inherited from class org.apache.avalon.excalibur.monitor.impl.ActiveMonitor
run, setFrequency, setPriority, start, stop
Methods inherited from class org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
addResource, addResources, getResource, getResources, removeResource, removeResource, scanAllResources
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avalon.framework.activity.Startable
start, stop

Constructor Detail


public ActiveMonitor()
Method Detail


public void enableLogging(Logger logger)
Description copied from interface: LogEnabled
Provide component with a logger.

Specified by:
enableLogging in interface LogEnabled
logger - the logger. Must not be null.


public final void configure(Configuration config)
                     throws ConfigurationException
Configure the ActiveMonitor.

Specified by:
configure in interface Configurable
config - the class configurations. Must not be null.
ConfigurationException - if an error occurs

Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.