org.apache.avalon.excalibur.monitor
クラス PassiveMonitor
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.monitor.PassiveMonitor
- すべての実装インタフェース:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, Monitor, org.apache.avalon.framework.thread.ThreadSafe
- public final class PassiveMonitor
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements Monitor, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.configuration.Configurable
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 ComponentManager. It defaults to checking every 1 minute. The configuration
looks like this:
<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>
</monitor>
- バージョン:
- $Id: PassiveMonitor.java,v 1.3 2001/12/11 09:53:30 jefft Exp $
- 作成者:
- Berin Loritsch
インタフェース org.apache.avalon.excalibur.monitor.Monitor から継承したフィールド |
ROLE |
クラス org.apache.avalon.framework.logger.AbstractLoggable から継承したメソッド |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassiveMonitor
public PassiveMonitor()
configure
public final void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- 定義:
- インタフェース
org.apache.avalon.framework.configuration.Configurable
内の configure
addResource
public final void addResource(Resource resource)
- Add a resource to monitor. The resource key referenced in the other
interfaces is derived from the resource object.
- 定義:
- インタフェース
Monitor
内の addResource
getResource
public final Resource getResource(java.lang.String key)
- Find a monitored resource. If no resource is available, return null
- 定義:
- インタフェース
Monitor
内の getResource
removeResource
public final void removeResource(java.lang.String key)
- Remove a monitored resource by key.
- 定義:
- インタフェース
Monitor
内の removeResource
removeResource
public final void removeResource(Resource resource)
- Remove a monitored resource by reference.
- 定義:
- インタフェース
Monitor
内の removeResource
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."