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

java.lang.Object
  extended byorg.apache.avalon.excalibur.monitor.impl.AbstractMonitor
      extended byorg.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.5 $ $Date: 2004/02/28 11:47:35 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor
ROLE
 
Constructor Summary
PassiveMonitor()
           
 
Method Summary
 Resource getResource(java.lang.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(java.lang.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 © 1997-2005 The Apache Software Foundation. All Rights Reserved.