public class JamonRepository extends Object implements Serializable, MonitoringRepository
Repository around the Jamon API. This repository is a small wrapper around the
MonitorFactory.
Since Wicket is an unmanaged framework this repository is implemented as a singleton. All
monitors are kept in memory anyway so that shouldn't pose a problem. One can use the
clear() method to remove all Monitors from this repository.
| Constructor and Description |
|---|
JamonRepository() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Removes all the
SerializableMonitors in this repository. |
int |
count()
Returns the number of
Monitors in this repository. |
List<com.jamonapi.Monitor> |
find(MonitorSpecification specification)
Returns all
Monitor that satisfy the given MonitorSpecification. |
com.jamonapi.Monitor |
findMonitorByLabel(String monitorLabel)
Returns
Monitor that registered under the given monitorLabel |
public int count()
MonitoringRepositoryMonitors in this repository.count in interface MonitoringRepositoryMonitors.public static void clear()
SerializableMonitors in this repository. This also propagates to the
MonitorFactory.public com.jamonapi.Monitor findMonitorByLabel(String monitorLabel)
MonitoringRepositoryMonitor that registered under the given monitorLabelfindMonitorByLabel in interface MonitoringRepositorymonitorLabel - The label of the monitor to be returnednull.public List<com.jamonapi.Monitor> find(MonitorSpecification specification)
MonitoringRepositoryMonitor that satisfy the given MonitorSpecification.find in interface MonitoringRepositoryspecification - The MonitorSpecification to satisfyMonitorSpecification.Copyright © 2017. All rights reserved.