org.apache.avalon.excalibur.monitor.impl
Class PassiveMonitor

java.lang.Object
  |
  +--org.apache.avalon.excalibur.monitor.impl.AbstractMonitor
        |
        +--org.apache.avalon.excalibur.monitor.impl.PassiveMonitor
All Implemented Interfaces:
Component, Monitor
Direct Known Subclasses:
PassiveMonitor

public class PassiveMonitor
extends AbstractMonitor

A passive monitor will check the reosurce each time it is accessed.

Version:
$Revision: 1.8 $ $Date: 2003/05/23 17:41:04 $
Author:
Berin Loritsch, Peter Donald

Field Summary
 
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
ROLE
 
Constructor Summary
PassiveMonitor()
           
 
Method Summary
 Resource getResource(String key)
          Find a monitored resource.
 
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

getResource

public final Resource getResource(String key)
Find a monitored resource. If no resource is available, return null

Specified by:
getResource in interface Monitor
Overrides:
getResource in class AbstractMonitor


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