net.sf.infrared.agent.integration
Class ContextApiTime

java.lang.Object
  extended bynet.sf.infrared.agent.AggregateApiTime
      extended bynet.sf.infrared.agent.integration.ContextApiTime
All Implemented Interfaces:
Cloneable, Serializable

public class ContextApiTime
extends AggregateApiTime

Subclass of AggregateApiTime which attaches an extra context information also. Used by ComponentMonitors.

See Also:
Serialized Form

Constructor Summary
ContextApiTime()
           
ContextApiTime(Api api, String componentName, ApiContext context)
          Creates a new ContextApiTime for a given component, using a given ApiTime and attaching a given ApiContext.
 
Method Summary
 boolean equals(Object o)
           
 String getComponentName()
          The name of the component which this ContextApiTime is associated with.
 String getContextInfo()
          String representation of the context information attached to this signtime
 int hashCode()
           
 
Methods inherited from class net.sf.infrared.agent.AggregateApiTime
aggregate, aggregate, aggregate, clone, getAdjAverageTime, getAdjAverageTimeExclusive, getApi, getApiName, getApiType, getAverageTime, getAverageTimeExclusive, getCount, getFirstExecutionTime, getFirstExecutionTimeExclusive, getLastExecutionTime, getLastExecutionTimeExclusive, getMaxTime, getMaxTimeExclusive, getMinTime, getMinTimeExclusive, getSqlStatistics, getSqlStatisticsMap, getTotalTime, getTotalTimeExclusive, getTruncatedName, hasSqlStatistics, merge, merge, setApi, setSqlStatistics, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextApiTime

public ContextApiTime()

ContextApiTime

public ContextApiTime(Api api,
                      String componentName,
                      ApiContext context)
Creates a new ContextApiTime for a given component, using a given ApiTime and attaching a given ApiContext.

Parameters:
componentName - the name of the component
context - the context info to be attached
Method Detail

getContextInfo

public String getContextInfo()
String representation of the context information attached to this signtime

Returns:
context information

getComponentName

public String getComponentName()
The name of the component which this ContextApiTime is associated with.

Returns:
component name

equals

public boolean equals(Object o)

hashCode

public int hashCode()