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.4 2004/02/28 11:47:32 cziegeler Exp $
- Author:
- Avalon Development Team
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassiveMonitor
public PassiveMonitor()
enableLogging
public void enableLogging(Logger logger)
- Description copied from interface:
LogEnabled
- Provide component with a logger.
- Specified by:
enableLogging
in interface LogEnabled
- Parameters:
logger
- the logger. Must not be null
.
configure
public final void configure(Configuration config)
throws ConfigurationException
- Description copied from interface:
Configurable
- Pass the
Configuration
to the Configurable
class.
- Specified by:
configure
in interface Configurable
- Parameters:
config
- the class configurations. Must not be null
.
- Throws:
ConfigurationException
- if an error occurs
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.