public class TransactionMetricsAdapter extends Object implements TransactionMetrics, Externalizable
| Constructor and Description |
|---|
TransactionMetricsAdapter()
Create TransactionMetricsAdapter.
|
TransactionMetricsAdapter(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
long |
commitTime()
Gets last time transaction was committed.
|
Map<String,String> |
getAllOwnerTransactions()
Gets a map of all transactions for which the local node is the originating node.
|
long |
getLockedKeysNumber()
The number of keys locked on the node.
|
Map<String,String> |
getLongRunningOwnerTransactions(int duration)
Gets a map of all transactions for which the local node is the originating node and which duration
exceeds the given duration.
|
long |
getOwnerTransactionsNumber()
The number of active transactions for which this node is the initiator.
|
long |
getTransactionsCommittedNumber()
The number of transactions which were committed on the local node.
|
long |
getTransactionsHoldingLockNumber()
The number of active transactions on the local node holding at least one key lock.
|
long |
getTransactionsRolledBackNumber()
The number of transactions which were rolled back on the local node.
|
void |
onTxCommit()
Transaction commit callback.
|
void |
onTxRollback()
Transaction rollback callback.
|
void |
readExternal(ObjectInput in) |
void |
reset()
Reset.
|
long |
rollbackTime()
Gets last time transaction was rollback.
|
String |
toString() |
int |
txCommits()
Gets total number of transaction commits.
|
int |
txRollbacks()
Gets total number of transaction rollbacks.
|
void |
writeExternal(ObjectOutput out) |
public TransactionMetricsAdapter()
public TransactionMetricsAdapter(GridKernalContext ctx)
ctx - Kernal context.public long commitTime()
commitTime in interface TransactionMetricspublic long rollbackTime()
rollbackTime in interface TransactionMetricspublic int txCommits()
txCommits in interface TransactionMetricspublic int txRollbacks()
txRollbacks in interface TransactionMetricspublic Map<String,String> getAllOwnerTransactions()
getAllOwnerTransactions in interface TransactionMetricspublic Map<String,String> getLongRunningOwnerTransactions(int duration)
getLongRunningOwnerTransactions in interface TransactionMetricsduration.public long getTransactionsCommittedNumber()
getTransactionsCommittedNumber in interface TransactionMetricspublic long getTransactionsRolledBackNumber()
getTransactionsRolledBackNumber in interface TransactionMetricspublic long getTransactionsHoldingLockNumber()
getTransactionsHoldingLockNumber in interface TransactionMetricspublic long getLockedKeysNumber()
getLockedKeysNumber in interface TransactionMetricspublic long getOwnerTransactionsNumber()
getAllOwnerTransactions.size().getOwnerTransactionsNumber in interface TransactionMetricspublic void onTxCommit()
public void onTxRollback()
public void reset()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018