|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.excalibur.monitor.impl.AbstractMonitor
The AbstractMonitor class is a useful base class which all Monitors can extend. The particular monitoring policy is defined by the particular implementation.
Field Summary |
Fields inherited from interface org.apache.avalon.excalibur.monitor.Monitor |
ROLE |
Constructor Summary | |
AbstractMonitor()
|
Method Summary | |
void |
addResource(Resource resource)
Add a resource to monitor. |
void |
addResources(Resource[] resources)
Add an array of resources to monitor. |
Resource |
getResource(java.lang.String key)
Find a monitored resource. |
protected Resource[] |
getResources()
Return an array containing all the resources currently monitored. |
void |
removeResource(Resource resource)
Remove a monitored resource by reference. |
void |
removeResource(java.lang.String key)
Remove a monitored resource by key. |
protected void |
scanAllResources()
Scan through all resources to determine if they have changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMonitor()
Method Detail |
public final void addResources(Resource[] resources)
resources
- the resources to monitorpublic final void addResource(Resource resource)
addResource
in interface Monitor
public Resource getResource(java.lang.String key)
getResource
in interface Monitor
public final void removeResource(java.lang.String key)
removeResource
in interface Monitor
public final void removeResource(Resource resource)
removeResource
in interface Monitor
protected Resource[] getResources()
protected void scanAllResources()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |