Class TransactionServiceStatsProvider
- java.lang.Object
-
- com.sun.enterprise.transaction.monitoring.TransactionServiceStatsProvider
-
@AMXMetadata(type="transaction-service-mon", group="monitoring") @ManagedObject @Description("Transaction Service Statistics") public class TransactionServiceStatsProvider extends Object
Collects the Transaction Service monitoring data and provides it to the callers.- Author:
- Marina Vatkina
-
-
Constructor Summary
Constructors Constructor Description TransactionServiceStatsProvider(JavaEETransactionManager tm, Logger l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
freezeEvent(boolean b)
org.glassfish.external.statistics.CountStatistic
getActiveCount()
org.glassfish.external.statistics.StringStatistic
getActiveIds()
org.glassfish.external.statistics.CountStatistic
getCommittedCount()
org.glassfish.external.statistics.CountStatistic
getRolledbackCount()
org.glassfish.external.statistics.StringStatistic
getState()
void
transactionActivatedEvent()
void
transactionCommittedEvent()
void
transactionDeactivatedEvent()
void
transactionRolledbackEvent()
-
-
-
Constructor Detail
-
TransactionServiceStatsProvider
public TransactionServiceStatsProvider(JavaEETransactionManager tm, Logger l)
-
-
Method Detail
-
getActiveCount
@ManagedAttribute(id="activecount") @Description("Provides the number of transactions that are currently active.") public org.glassfish.external.statistics.CountStatistic getActiveCount()
-
getCommittedCount
@ManagedAttribute(id="committedcount") @Description("Provides the number of transactions that have been committed.") public org.glassfish.external.statistics.CountStatistic getCommittedCount()
-
getRolledbackCount
@ManagedAttribute(id="rolledbackcount") @Description("Provides the number of transactions that have been rolled back.") public org.glassfish.external.statistics.CountStatistic getRolledbackCount()
-
getState
@ManagedAttribute(id="state") @Description("Indicates if the transaction service has been frozen.") public org.glassfish.external.statistics.StringStatistic getState()
-
getActiveIds
@ManagedAttribute(id="activeids") @Description("List of inflight transactions.") public org.glassfish.external.statistics.StringStatistic getActiveIds()
-
transactionActivatedEvent
public void transactionActivatedEvent()
-
transactionDeactivatedEvent
public void transactionDeactivatedEvent()
-
transactionCommittedEvent
public void transactionCommittedEvent()
-
transactionRolledbackEvent
public void transactionRolledbackEvent()
-
freezeEvent
public void freezeEvent(boolean b)
-
-