org.apache.avalon.excalibur.monitor
Class PassiveMonitor

java.lang.Object
  extended by org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
      extended by org.apache.avalon.excalibur.monitor.impl.PassiveMonitor
          extended by org.apache.avalon.excalibur.monitor.PassiveMonitor
All Implemented Interfaces:
Monitor, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe

public class PassiveMonitor
extends PassiveMonitor
implements org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe

The PassiveMonitor is used to passively 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:

   <passive-monitor>
     <init-resources>
       <-- This entry can be repeated for every resource you want to register immediately -->

       <resource key="file:./myfile.html" class="org.apache.avalon.excalibur.monitor.FileMonitor"/>
     </init-resources>
   </pasive-monitor>
 

Version:
$Id: PassiveMonitor.java,v 1.4 2004/02/28 11:47:32 cziegeler Exp $
Author:
Avalon Development Team

Field Summary
private  org.apache.avalon.framework.logger.Logger m_logger
           
 
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
ROLE
 
Constructor Summary
PassiveMonitor()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
           
 
Methods inherited from class org.apache.avalon.excalibur.monitor.impl.PassiveMonitor
getResource
 
Methods inherited from class org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
addResource, addResources, getResources, removeResource, removeResource, scanAllResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_logger

private org.apache.avalon.framework.logger.Logger m_logger
Constructor Detail

PassiveMonitor

public PassiveMonitor()
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

configure

public final void configure(org.apache.avalon.framework.configuration.Configuration config)
                     throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException