Class FateTxnDetails

    • Constructor Detail

      • FateTxnDetails

        public FateTxnDetails​(long reportTime,
                              AdminUtil.TransactionStatus txnStatus,
                              Map<String,​String> idsToNameMap)
        Create a detailed FaTE transaction that can be formatted for status reports.

        Implementation note: Instance of this class are expected to be used for status reporting that represent a snapshot at the time of measurement. This class is conservative in handling possible vales - gathering FaTE information is done asynchronously and when the measurement is captured it may not be complete.

        Parameters:
        reportTime - the Instant that the report snapshot was created
        txnStatus - the FaTE transaction status
        idsToNameMap - a map of namespace, table ids to names.
    • Method Detail

      • getTxnId

        public String getTxnId()
      • compareTo

        public int compareTo​(FateTxnDetails other)
        Sort by running time in reverse (oldest txn first). txid is unique as used to break times and so that compareTo remains consistent with hashCode and equals methods.
        Specified by:
        compareTo in interface Comparable<FateTxnDetails>
        Parameters:
        other - the FateTxnDetails to be compared.
        Returns:
        -1, 0 or 1 if older, equal or newer than the other
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object