wt.epm.ndi.impl
Class NDICacheProfiler

java.lang.Object
  extended bywt.epm.ndi.impl.NDICacheProfiler
All Implemented Interfaces:
TransactionCommitListener, TransactionListener

public class NDICacheProfiler
extends Object
implements TransactionCommitListener


Field Summary
private  int count
           
private  boolean running
           
private  long start_time
           
private  Class targetClass
           
private  long total_time
           
 
Constructor Summary
private NDICacheProfiler(Class tc)
           
 
Method Summary
 void beforeCompletion()
          Notify that the commit of the transaction is about to complete.
 void finishTransaction()
          Notify that all of the transaction's work has been completed and any remaining work should now be performed.
private static NDICacheProfiler getCurrentNDICacheProfiler(Class targetClass)
           
static NDICacheProfiler getProfiler(Class targetClass)
           
 int incrementCount()
           
 boolean isEnabled()
           
private static boolean isNDICacheProfilerRegistered(Class targetClass)
           
static boolean isProfileEnabled(Class targetClass)
           
 void notifyCommit()
          Notify that the commit of the transaction completed.
 void notifyRollback()
          Notify that the rollback of the transaction completed.
 void printProfileData()
           
private static NDICacheProfiler registerNewNDICacheProfiler(Class targetClass)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

total_time

private long total_time

count

private int count

targetClass

private Class targetClass

start_time

private long start_time

running

private boolean running
Constructor Detail

NDICacheProfiler

private NDICacheProfiler(Class tc)
Method Detail

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()