|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.statistics.detailed.MeasureItem
public class MeasureItem
Represents a performance measure collected by the detailed measurement service.
The level attribute of each measure can be used freely.
Please refer to the package level javadoc
ch.elca.leaf.services.measuring
for more information on the format or the usage.
This class was ported from Leaf 2.
Original authors: YMA, DBA.
Leaf2 package name: ch.elca.leaf.services.measuring
Constructor Summary | |
---|---|
MeasureItem(MeasureId id,
int seq,
String client,
String level,
String service,
String methodName,
long startTime,
long duration,
String hierarchy)
Creates a new MeasureItem object. |
Method Summary | |
---|---|
String |
getClient()
Returns the client of the measure. |
String |
getCsvString(String delimiter)
Returns a CSV (comma-separated value) representation of the measure. |
long |
getDuration()
Returns the duration of the measure. |
String |
getEjbName()
Returns the EJB name of the measure. |
String |
getFormattedString()
Returns a human-readable representation of the measure. |
String |
getHierarchy()
The Hierarchy. |
MeasureId |
getID()
Returns the MeasureID id of the measure. |
String |
getLevel()
Returns the level of the measure. |
String |
getMethodName()
Returns the method name of the measure. |
int |
getSequence()
Returns the sequence of the measure. |
String |
getServiceName()
|
String |
getShortLevel()
The level String representation. |
long |
getStartTime()
Returns the start time of the measure (as long value). |
void |
setServiceName(String serviceName)
Sets the serviceName explicitly. |
String |
toString()
Returns a human-readable representation of the measure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MeasureItem(MeasureId id, int seq, String client, String level, String service, String methodName, long startTime, long duration, String hierarchy)
id
- The id of the measure(a MeasureID object).
This value is the same during one measure and all following
measures. Following measures are additional service calls in the same
method and also all services called after the measuring has been started.
seq
- The sequence of the measure (integer that should start at
1 and be incremented for each sub-value of a same global measure).
This value displays the deepth of the method call.
client
- The client (host name of a machine) for which the measure
is done.
level
- The type of the measure (free usage). If Execution Unit (EU)
is gui or web this value commonly is named CLIENT, if EU is cejb then the
value is EJB_CONTAINER.
service
- The JNDI name of the EJB for which the measure is done
(not available in case of a database measure)
methodName
- The name of the method for which the measure is done
startTime
- The start time of the measure (as long)
duration
- The duration of the measure in milliseconds
hierarchy
- The hierarchy of the global measure. This information
is required to show which call follows the other. Because of time shift
between differnet machines, the starttime may vary for- or backward.
Method Detail |
---|
public MeasureId getID()
public int getSequence()
public String getClient()
public String getServiceName()
public void setServiceName(String serviceName)
serviceName
- Name to setpublic String getLevel()
public String getShortLevel()
public String getEjbName()
public String getMethodName()
public long getStartTime()
public long getDuration()
public String getHierarchy()
public String getFormattedString()
public String getCsvString(String delimiter)
delimiter
- the string to use as CSV delimiter
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |