Class FateTxnDetails
- java.lang.Object
-
- org.apache.accumulo.server.util.fateCommand.FateTxnDetails
-
- All Implemented Interfaces:
Comparable<FateTxnDetails>
public class FateTxnDetails extends Object implements Comparable<FateTxnDetails>
-
-
Constructor Summary
Constructors Constructor Description FateTxnDetails(long reportTime, AdminUtil.TransactionStatus txnStatus, Map<String,String> idsToNameMap)
Create a detailed FaTE transaction that can be formatted for status reports.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FateTxnDetails other)
Sort by running time in reverse (oldest txn first).boolean
equals(Object o)
String
getTxnId()
int
hashCode()
String
toString()
-
-
-
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 createdtxnStatus
- the FaTE transaction statusidsToNameMap
- 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 interfaceComparable<FateTxnDetails>
- Parameters:
other
- the FateTxnDetails to be compared.- Returns:
- -1, 0 or 1 if older, equal or newer than the other
-
-