Class TransactionMetricsAdapter.TransactionMetricsSnapshot

    • Constructor Detail

      • TransactionMetricsSnapshot

        public TransactionMetricsSnapshot()
        Required by Externalizable.
      • TransactionMetricsSnapshot

        public TransactionMetricsSnapshot​(TransactionMetricsAdapter adapter)
        Parameters:
        adapter - Transaction metrics adapter.
    • Method Detail

      • commitTime

        public long commitTime()
        Gets last time transaction was committed.
        Specified by:
        commitTime in interface TransactionMetrics
        Returns:
        Last commit time.
      • rollbackTime

        public long rollbackTime()
        Gets last time transaction was rollback.
        Specified by:
        rollbackTime in interface TransactionMetrics
        Returns:
        Last rollback time.
      • txCommits

        public int txCommits()
        Gets total number of transaction commits.
        Specified by:
        txCommits in interface TransactionMetrics
        Returns:
        Number of transaction commits.
      • txRollbacks

        public int txRollbacks()
        Gets total number of transaction rollbacks.
        Specified by:
        txRollbacks in interface TransactionMetrics
        Returns:
        Number of transaction rollbacks.
      • getAllOwnerTransactions

        public Map<String,​String> getAllOwnerTransactions()
        Gets a map of all transactions for which the local node is the originating node.
        Specified by:
        getAllOwnerTransactions in interface TransactionMetrics
        Returns:
        Map of local node owning transactions.
      • getLongRunningOwnerTransactions

        public 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.
        Specified by:
        getLongRunningOwnerTransactions in interface TransactionMetrics
        Parameters:
        duration - Transaction duration.
        Returns:
        Map of local node owning transactions which duration is longer than duration.
      • getTransactionsCommittedNumber

        public long getTransactionsCommittedNumber()
        The number of transactions which were committed on the local node.
        Specified by:
        getTransactionsCommittedNumber in interface TransactionMetrics
        Returns:
        The number of transactions which were committed on the local node.
      • getTransactionsRolledBackNumber

        public long getTransactionsRolledBackNumber()
        The number of transactions which were rolled back on the local node.
        Specified by:
        getTransactionsRolledBackNumber in interface TransactionMetrics
        Returns:
        The number of transactions which were rolled back on the local node.
      • getTransactionsHoldingLockNumber

        public long getTransactionsHoldingLockNumber()
        The number of active transactions on the local node holding at least one key lock.
        Specified by:
        getTransactionsHoldingLockNumber in interface TransactionMetrics
        Returns:
        The number of active transactions holding at least one key lock.
      • getLockedKeysNumber

        public long getLockedKeysNumber()
        The number of keys locked on the node.
        Specified by:
        getLockedKeysNumber in interface TransactionMetrics
        Returns:
        The number of keys locked on the node.
      • getOwnerTransactionsNumber

        public long getOwnerTransactionsNumber()
        The number of active transactions for which this node is the initiator. Effectively, this method is semantically equivalent to getAllOwnerTransactions.size().
        Specified by:
        getOwnerTransactionsNumber in interface TransactionMetrics
        Returns:
        The number of active transactions for which this node is the initiator.