net.sf.infrared.agent
Class LayerTime

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

public class LayerTime
extends Object
implements Cloneable, Serializable

This class contains the total time taken to execute the APIs in each layer. Examples of layers are ejb layer, web layer, Remote Call, Entity, etc. A layer can be defined specific to an application that is being instrumented. The name of the layer comes from the getApiType method of InfraREDBaseAspect.aj. All pointcut aspects written for instrumenting the application should extend from InfraREDBaseAspect.aj and extend the method getApiType, to return the appropriate layer name.

See Also:
Serialized Form

Constructor Summary
LayerTime(String layer)
           
 
Method Summary
 void addToTime(long time)
           
 LayerTime copy()
           
 String getLayer()
           
 long getTime()
           
 void setTime(long time)
           
 void subtractFromTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerTime

public LayerTime(String layer)
Method Detail

getLayer

public String getLayer()

getTime

public long getTime()

setTime

public void setTime(long time)

addToTime

public void addToTime(long time)

subtractFromTime

public void subtractFromTime(long time)

copy

public LayerTime copy()