intarsys runtime library

de.intarsys.tools.monitor
Class StandardMonitorRegistry

java.lang.Object
  extended by de.intarsys.tools.monitor.StandardMonitorRegistry
All Implemented Interfaces:
IMonitorRegistry

public class StandardMonitorRegistry
extends Object
implements IMonitorRegistry

The standard implementation for IMonitorRegistry.


Constructor Summary
StandardMonitorRegistry()
           
 
Method Summary
 List getMonitors()
          A snapshot of available monitors at the moment of the request.
 IMonitor lookupMonitor(String id)
          The monitor named id.
 void registerMonitor(IMonitor monitor)
          Register a new monitor with the factory to allow access by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardMonitorRegistry

public StandardMonitorRegistry()
Method Detail

getMonitors

public List getMonitors()
Description copied from interface: IMonitorRegistry
A snapshot of available monitors at the moment of the request.

Specified by:
getMonitors in interface IMonitorRegistry
Returns:
A snapshot of available monitors at the moment of the request.

lookupMonitor

public IMonitor lookupMonitor(String id)
Description copied from interface: IMonitorRegistry
The monitor named id. If none is available a new one according to configuration or default should be created.

Specified by:
lookupMonitor in interface IMonitorRegistry
Parameters:
id - The id of the monitor to return.
Returns:
The monitor named id.

registerMonitor

public void registerMonitor(IMonitor monitor)
Description copied from interface: IMonitorRegistry
Register a new monitor with the factory to allow access by name.

Specified by:
registerMonitor in interface IMonitorRegistry
Parameters:
monitor - THe monitor object to register.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.