org.apache.avalon.excalibur.monitor
Class PassiveMonitor

java.lang.Object
  |
  +--org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
        |
        +--org.apache.avalon.excalibur.monitor.impl.PassiveMonitor
              |
              +--org.apache.avalon.excalibur.monitor.PassiveMonitor
All Implemented Interfaces:
Component, Configurable, LogEnabled, Monitor, ThreadSafe

public class PassiveMonitor
extends PassiveMonitor
implements LogEnabled, Configurable, 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.16 2003/05/23 17:41:04 bloritsch Exp $
Author:
Berin Loritsch
Avalon Component:
Avalon Service:
type=org.apache.avalon.excalibur.monitor.Monitor
Avalon Component Information:
name=passive-monitor
Avalon Component Lifestyle:
type=singleton

Field Summary
 
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
ROLE
 
Constructor Summary
PassiveMonitor()
           
 
Method Summary
 void configure(Configuration config)
           
 void enableLogging(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
 

Constructor Detail

PassiveMonitor

public PassiveMonitor()
Method Detail

enableLogging

public void enableLogging(Logger logger)
Specified by:
enableLogging in interface LogEnabled

configure

public final void configure(Configuration config)
                     throws ConfigurationException
Specified by:
configure in interface Configurable
ConfigurationException


Copyright © 2000-2003 Apache Avalon Project. All Rights Reserved.