public static class TransactionMetricsAdapter.TransactionMetricsSnapshot extends Object implements TransactionMetrics, Externalizable
| Constructor and Description |
|---|
TransactionMetricsSnapshot()
Required by
Externalizable. |
TransactionMetricsSnapshot(TransactionMetricsAdapter adapter) |
| 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 |
readExternal(ObjectInput in) |
long |
rollbackTime()
Gets last time transaction was rollback.
|
int |
txCommits()
Gets total number of transaction commits.
|
int |
txRollbacks()
Gets total number of transaction rollbacks.
|
void |
writeExternal(ObjectOutput out) |
public TransactionMetricsSnapshot()
Externalizable.public TransactionMetricsSnapshot(TransactionMetricsAdapter adapter)
adapter - Transaction metrics adapter.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 - Transaction duration.duration.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 writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023