org.apache.avalon.excalibur.monitor
クラス ActiveMonitor
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.avalon.excalibur.monitor.ActiveMonitor
- すべての実装インタフェース:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, Monitor, java.lang.Runnable, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.thread.ThreadSafe
- public final class ActiveMonitor
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements Monitor, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.activity.Startable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.configuration.Configurable, java.lang.Runnable
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 ComponentManager. It defaults to checking every 1 minute. The configuration
looks like this:
<monitor>
<thread priority="5" frequency="60000"/>
<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.FileResource"/>
</init-resources>
</monitor>
- バージョン:
- $Id: ActiveMonitor.java,v 1.4 2001/12/11 16:14:31 bloritsch 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 |
ActiveMonitor
public ActiveMonitor()
configure
public final void configure(org.apache.avalon.framework.configuration.Configuration conf)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Configure the ActiveMonitor.
- 定義:
- インタフェース
org.apache.avalon.framework.configuration.Configurable
内の configure
start
public final void start()
throws java.lang.Exception
- 定義:
- インタフェース
org.apache.avalon.framework.activity.Startable
内の start
stop
public final void stop()
throws java.lang.Exception
- 定義:
- インタフェース
org.apache.avalon.framework.activity.Startable
内の stop
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
run
public final void run()
- 定義:
- インタフェース
java.lang.Runnable
内の run
"Copyright ? 2001 Apache Jakarta Project. All Rights Reserved."