org.jmonit
Interface Repository

All Known Implementing Classes:
AbstractRepository, DefaultRepository

public interface Repository

A Repository contains all the monitors used by the application and provides a centralized way to acces them. A monitor is defined in the repository by the pair category + name.

Categories are used to group monitors that handle comparable resources. For example a jdbc category will group all Monitors that instrument the data acces layer. The category can have sub-categories using a dot notation. For example, the jdbc.procedures category can group data acces layer monitors dedicated to invocation of stored procedures.

Author:
Nicolas De Loof

Method Summary
 PluginManager getFeatureManager()
           
 Monitor getMonitor(java.lang.String name)
           
 java.util.Collection<Monitor> getMonitors()
           
 java.util.Collection<Monitor> getMonitorsWithFeatures(java.lang.Class[] features)
           
 java.util.Collection<Monitor> getMonitorsWithTag(java.lang.String tag)
           
 java.util.Collection<Monitor> getMonitorsWithTags(java.lang.String[] tags)
           
 java.util.Set<java.lang.String> getTags()
           
 void setFeatureManager(PluginManager featureManager)
          Register a custom featureManager
 

Method Detail

getMonitor

Monitor getMonitor(java.lang.String name)
Parameters:
name - monitor name
Returns:
The monitor uniquely defines by it's name

getMonitorsWithTag

java.util.Collection<Monitor> getMonitorsWithTag(java.lang.String tag)
Parameters:
tag - tag
Returns:
all monitors having the requested tag

getTags

java.util.Set<java.lang.String> getTags()
Returns:
The tags used by existing monitors

getMonitorsWithTags

java.util.Collection<Monitor> getMonitorsWithTags(java.lang.String[] tags)
Parameters:
tags - the tags the returned monitor must have
Returns:
all monitors having the requested tags

getMonitors

java.util.Collection<Monitor> getMonitors()
Returns:
all monitors

getMonitorsWithFeatures

java.util.Collection<Monitor> getMonitorsWithFeatures(java.lang.Class[] features)
Returns:
all monitors that support the expected set of features

setFeatureManager

void setFeatureManager(PluginManager featureManager)
Register a custom featureManager

Parameters:
featureManager -

getFeatureManager

PluginManager getFeatureManager()
Returns:
the active feature manager


Copyright © 2007 Nicolas De Loof. All Rights Reserved.