public class PerformanceStats
extends java.lang.Object
Constructor and Description |
---|
PerformanceStats() |
Modifier and Type | Method and Description |
---|---|
void |
addStackTrace(java.lang.String stm,
java.lang.Object obj)
Adding Exception to the hashmap
|
static void |
disable()
Disable the capturing of performance stats
|
java.lang.String |
display(java.lang.String stmt) |
static void |
enable()
Enable the capturing of stats.
|
static PerformanceStats |
get(java.lang.Object trans)
Easy way to get the performance stat for the specified key (transaction name)
|
static java.util.Iterator |
getList()
Return an iterator that can be used to traverse the list
of transactions.
|
long |
getMboCount()
Return the number of mbos created
|
long |
getMboSetCount()
Return the number of mbosets created
|
java.lang.String |
getMboSetString()
Return a comma seperated string of Mbos and their count
|
java.lang.String |
getMboString()
Return a comma seperated string of Mbos and their count
|
long |
getSQLCount()
Return the number of statements executed
|
java.util.Iterator |
getSQLStatements()
Return an iterator that can be used to traverse the list
of sql statements.
|
long |
getSQLTime()
Returns the total time spent executong SQL statements
|
int |
getStatementCount(java.lang.Object obj)
Get the count of the statement, given the statement string
|
java.lang.String |
getStatementIndividualTime(java.lang.Object obj)
Get the count of the statement, given the statement string
|
boolean |
hasValue()
Returns true if system was able to gather the statistics gathered by
this object
|
void |
incrementMboCount()
Increment the number if mbos created
|
void |
incrementMboCount(java.lang.String name)
Increment the mbo count for the specified mbo
|
void |
incrementMboSetCount()
Increment the number if mbosets created
|
void |
incrementMboSetCount(java.lang.String name)
Increment the mbo count for the specified mbo
|
void |
incrementSQLCount()
Adds one to the executed SQL statement count.
|
void |
incrementSQLCount(java.lang.String stmt)
Adds one to the executed SQL statement count and logs the statement
|
void |
incrementSQLTime(long t)
Adds the specified amount of time to the timer used to accumulate
time spent on SQL statements
|
static boolean |
isEnabled()
Is the capturing of stats enabled ?
|
java.util.Vector |
normalizeStackTrace(java.lang.Throwable e)
Normalizing Stack Trace and adding part of vector and creating vector object
|
static void |
put(java.lang.String trans,
PerformanceStats ps)
Add a object to the collection of performance stats being collected
for this session.
|
static void |
reset()
Reset the list of transactions and associated performance stats
|
public static void put(java.lang.String trans, PerformanceStats ps)
public static java.util.Iterator getList()
public static PerformanceStats get(java.lang.Object trans)
public static void reset()
public static void enable()
public static void disable()
public static boolean isEnabled()
public void incrementSQLTime(long t)
public void incrementSQLCount()
public void incrementSQLCount(java.lang.String stmt)
public java.util.Iterator getSQLStatements()
public java.lang.String getStatementIndividualTime(java.lang.Object obj)
public int getStatementCount(java.lang.Object obj)
public long getSQLCount()
public long getSQLTime()
public void incrementMboCount()
public void incrementMboCount(java.lang.String name)
public java.lang.String getMboString()
public long getMboCount()
public void incrementMboSetCount()
public void incrementMboSetCount(java.lang.String name)
public java.lang.String getMboSetString()
public long getMboSetCount()
public boolean hasValue()
public void addStackTrace(java.lang.String stm, java.lang.Object obj)
public java.util.Vector normalizeStackTrace(java.lang.Throwable e)
public java.lang.String display(java.lang.String stmt)