net.sf.infrared.agent.integration
Class ComponentMonitorImpl

java.lang.Object
  extended bynet.sf.infrared.agent.integration.ComponentMonitorImpl
All Implemented Interfaces:
ComponentMonitor

public class ComponentMonitorImpl
extends Object
implements ComponentMonitor

The default implementation of the ComponentMonitor interface.
This implementation classifies the ApiContext objects based on their equals implementation.


Constructor Summary
ComponentMonitorImpl()
           
 
Method Summary
 List getStatistics()
          Gets the statistics information collected by this monitor.
 void recordMethodCall(Api api, String componentName, ApiContext context, long time)
          Called to record a call to a method belonging to some component.
 void resetStatistics()
          Resets the statistics information collected by this monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentMonitorImpl

public ComponentMonitorImpl()
Method Detail

recordMethodCall

public void recordMethodCall(Api api,
                             String componentName,
                             ApiContext context,
                             long time)
Description copied from interface: ComponentMonitor
Called to record a call to a method belonging to some component.

Specified by:
recordMethodCall in interface ComponentMonitor
Parameters:
componentName -
context -
time -

getStatistics

public List getStatistics()
Description copied from interface: ComponentMonitor
Gets the statistics information collected by this monitor.

Specified by:
getStatistics in interface ComponentMonitor
Returns:

resetStatistics

public void resetStatistics()
Description copied from interface: ComponentMonitor
Resets the statistics information collected by this monitor

Specified by:
resetStatistics in interface ComponentMonitor