net.sf.infrared.agent.integration
Interface ComponentMonitor

All Known Implementing Classes:
ComponentMonitorImpl

public interface ComponentMonitor

The interface used by components. Instances of this interface can be registered with the ComponentRegistry. InfraRED calls the recordMethodCall(net.sf.infrared.agent.Api, java.lang.String, net.sf.infrared.bootstrap.ApiContext, long) method. The ComponentMonitor is responsible for classifying signtimes based on context information.


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
 

Method Detail

recordMethodCall

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

Parameters:
componentName -
context -
time -

getStatistics

public List getStatistics()
Gets the statistics information collected by this monitor.

Returns:

resetStatistics

public void resetStatistics()
Resets the statistics information collected by this monitor