wt.epm.ndi.impl
Class NDICacheProfiler
java.lang.Object
wt.epm.ndi.impl.NDICacheProfiler
- All Implemented Interfaces:
- TransactionCommitListener, TransactionListener
- public class NDICacheProfiler
- extends Object
- implements TransactionCommitListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
total_time
private long total_time
count
private int count
targetClass
private Class targetClass
start_time
private long start_time
running
private boolean running
NDICacheProfiler
private NDICacheProfiler(Class tc)
getProfiler
public static NDICacheProfiler getProfiler(Class targetClass)
throws WTException
- Throws:
WTException
isNDICacheProfilerRegistered
private static boolean isNDICacheProfilerRegistered(Class targetClass)
throws WTException
- Throws:
WTException
registerNewNDICacheProfiler
private static NDICacheProfiler registerNewNDICacheProfiler(Class targetClass)
throws WTException
- Throws:
WTException
getCurrentNDICacheProfiler
private static NDICacheProfiler getCurrentNDICacheProfiler(Class targetClass)
throws WTException
- Throws:
WTException
isProfileEnabled
public static boolean isProfileEnabled(Class targetClass)
isEnabled
public boolean isEnabled()
incrementCount
public int incrementCount()
start
public void start()
stop
public void stop()
notifyCommit
public void notifyCommit()
- Description copied from interface:
TransactionListener
- Notify that the commit of the transaction completed.
Supported API: true
- Specified by:
notifyCommit
in interface TransactionListener
notifyRollback
public void notifyRollback()
- Description copied from interface:
TransactionListener
- Notify that the rollback of the transaction completed.
Supported API: true
- Specified by:
notifyRollback
in interface TransactionListener
finishTransaction
public void finishTransaction()
- Description copied from interface:
TransactionCommitListener
- Notify that all of the transaction's work has been completed and any
remaining work should now be performed. This work will be included
within the same transaction.
Supported API: true
- Specified by:
finishTransaction
in interface TransactionCommitListener
beforeCompletion
public void beforeCompletion()
- Description copied from interface:
TransactionCommitListener
- Notify that the commit of the transaction is about to complete. This
method should only validate the current work performed by the transaction.
No INSERT, UPDATE or DELETE operations should occur, either directly
or indirectly.
Supported API: true
- Specified by:
beforeCompletion
in interface TransactionCommitListener
printProfileData
public void printProfileData()