|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.WatchDataSourceRegistry
public class WatchDataSourceRegistry
An implementation of a WatchRegistry
| Field Summary | |
|---|---|
protected Map<String,Collection<ThresholdListener>> |
thresholdListenerTable
Table of ThresholdWatch classnames and ThresholdListener objects |
protected List<Watch> |
watchRegistry
Collection of Watch instances that have been registered |
| Constructor Summary | |
|---|---|
WatchDataSourceRegistry()
|
|
| Method Summary | |
|---|---|
void |
addThresholdListener(String id,
ThresholdListener thresholdListener)
Add a ThresholdListener. |
protected void |
associateThresholdListener(Watch watch)
This method will associate a Watch to a ThresholdListener, iff the Watch is a ThresholdWatch and the Watch objects classname is found in the table |
void |
closeAll()
Closes all WatchDataSource instances |
void |
deregister(Watch... watches)
DeRegisters a Watch from underlying collection and closes the Watch |
WatchDataSource[] |
fetch()
Returns an array of WatchDataSource objects which provide a reference to an implementation of WatchDataSource. |
WatchDataSource |
fetch(String id)
Returns a WatchDataSource that matches the input id, that corresponds to a Watch identifier. |
Watch |
findWatch(String id)
Returns a Watch that matches the provided id |
void |
register(Watch... watches)
Registers a Watch to underlying collection |
void |
removeThresholdListener(String id,
ThresholdListener thresholdListener)
Remove a ThresholdListener. |
void |
setServiceBeanContext(ServiceBeanContext context)
Set the ServiceBeanContext for the WatchRegistry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final List<Watch> watchRegistry
protected final Map<String,Collection<ThresholdListener>> thresholdListenerTable
| Constructor Detail |
|---|
public WatchDataSourceRegistry()
| Method Detail |
|---|
public void deregister(Watch... watches)
WatchRegistry
deregister in interface WatchRegistrywatches - The Watch to deregisterWatchRegistry.deregister(org.rioproject.watch.Watch...)public void closeAll()
WatchRegistry
closeAll in interface WatchRegistryWatchRegistry.closeAll()public void register(Watch... watches)
WatchRegistry
register in interface WatchRegistrywatches - The Watch to registerWatchRegistry.register(org.rioproject.watch.Watch...)
public void addThresholdListener(String id,
ThresholdListener thresholdListener)
WatchRegistryregister method
addThresholdListener in interface WatchRegistryid - The identifier to matchthresholdListener - The ThresholdListener to addWatchRegistry.addThresholdListener(java.lang.String, org.rioproject.watch.ThresholdListener)
public void removeThresholdListener(String id,
ThresholdListener thresholdListener)
WatchRegistry
removeThresholdListener in interface WatchRegistryid - The identifier to matchthresholdListener - The ThresholdListener to removeWatchRegistry.removeThresholdListener(java.lang.String, org.rioproject.watch.ThresholdListener)protected void associateThresholdListener(Watch watch)
watch - The Watch to associatepublic Watch findWatch(String id)
WatchRegistry
findWatch in interface WatchRegistryid - The watch id to match
WatchRegistry.findWatch(String)public WatchDataSource[] fetch()
WatchRegistry
fetch in interface WatchRegistryWatchRegistry.fetch()public WatchDataSource fetch(String id)
WatchRegistryid, that corresponds to a
Watchidentifier.
fetch in interface WatchRegistryid - the watch id to match
WatchRegistry.fetch(String)public void setServiceBeanContext(ServiceBeanContext context)
WatchRegistry
setServiceBeanContext in interface WatchRegistrycontext - The ServiceBeanContextWatchRegistry.setServiceBeanContext(org.rioproject.core.jsb.ServiceBeanContext)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||