|
||||||||||
| 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
public abstract class 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 | |
|---|---|
private java.util.Map |
m_resources
The set of resources that the monitor is monitoring. |
| 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 |
| Field Detail |
|---|
private java.util.Map m_resources
| 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 Monitorpublic Resource getResource(java.lang.String key)
getResource in interface Monitorpublic final void removeResource(java.lang.String key)
removeResource in interface Monitorpublic final void removeResource(Resource resource)
removeResource in interface Monitorprotected Resource[] getResources()
protected void scanAllResources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||