com.sun.sgs.profile
Interface TransactionListenerDetail


public interface TransactionListenerDetail

Provides profiling detail about a TransactionListener that listened to the progress of a transaction.


Method Summary
 boolean abortedBeforeCompletion()
          Returns whether the listener's beforeCompletion method threw an exception thus aborting the transaction.
 boolean calledBeforeCompletion()
          Returns whether the listener's beforeCompletion method was called.
 long getAfterCompletionTime()
          Returns the length of time the listener spent in its afterCompletion call.
 long getBeforeCompletionTime()
          Returns the length of time the listener spent in its beforeCompletion call.
 String getListenerName()
          Returns the name of the listener.
 

Method Detail

getListenerName

String getListenerName()
Returns the name of the listener.

Returns:
the listener's name

calledBeforeCompletion

boolean calledBeforeCompletion()
Returns whether the listener's beforeCompletion method was called.

Returns:
true if the listener's beforeCompletion method was called, false otherwise

abortedBeforeCompletion

boolean abortedBeforeCompletion()
Returns whether the listener's beforeCompletion method threw an exception thus aborting the transaction.

Returns:
true if the listener's beforeCompletion method aborted the transaction, false otherwise

getBeforeCompletionTime

long getBeforeCompletionTime()
Returns the length of time the listener spent in its beforeCompletion call.

Returns:
the time in milliseconds spent before completing

getAfterCompletionTime

long getAfterCompletionTime()
Returns the length of time the listener spent in its afterCompletion call.

Returns:
the time in milliseconds spent after completing

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved