Class TxInfo
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.management.tx.TxInfo
-
- All Implemented Interfaces:
Externalizable,Serializable
public class TxInfo extends VisorDataTransferObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TxInfo()Default constructor.TxInfo(IgniteUuid xid, long startTime, long duration, TransactionIsolation isolation, TransactionConcurrency concurrency, long timeout, String lb, Collection<UUID> primaryNodes, TransactionState state, int size, IgniteUuid nearXid, Collection<UUID> masterNodeIds, AffinityTopologyVersion topVer, TxVerboseInfo info)TxInfo(IgniteUuid xid, TransactionState state)Constructor for historical mode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionConcurrencygetConcurrency()longgetDuration()StringgetFormattedStartTime()TransactionIsolationgetIsolation()StringgetLabel()@Nullable Collection<UUID>getMasterNodeIds()@Nullable IgniteUuidgetNearXid()Collection<UUID>getPrimaryNodes()bytegetProtocolVersion()intgetSize()longgetStartTime()TransactionStategetState()longgetTimeout()AffinityTopologyVersiongetTopologyVersion()TxVerboseInfogetTxVerboseInfo()IgniteUuidgetXid()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.StringtoString()StringtoUserString()Get tx info as user string.protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
TxInfo
public TxInfo()
Default constructor.
-
TxInfo
public TxInfo(IgniteUuid xid, long startTime, long duration, TransactionIsolation isolation, TransactionConcurrency concurrency, long timeout, String lb, Collection<UUID> primaryNodes, TransactionState state, int size, IgniteUuid nearXid, Collection<UUID> masterNodeIds, AffinityTopologyVersion topVer, TxVerboseInfo info)
- Parameters:
xid- Xid.startTime- Start time of transaction.duration- Duration.isolation- Isolation.concurrency- Concurrency.timeout- Timeout.lb- Label.primaryNodes- Primary nodes.state- State.size- Size.info- Verbose TX info.
-
TxInfo
public TxInfo(IgniteUuid xid, TransactionState state)
Constructor for historical mode. Used to encapsulate information about tx commit/rollback from completed versions history map.- Parameters:
xid- Xid.state- State.
-
-
Method Detail
-
getProtocolVersion
public byte getProtocolVersion()
- Overrides:
getProtocolVersionin classVisorDataTransferObject- Returns:
- Transfer object version.
-
getXid
public IgniteUuid getXid()
-
getStartTime
public long getStartTime()
-
getFormattedStartTime
public String getFormattedStartTime()
-
getDuration
public long getDuration()
-
getIsolation
public TransactionIsolation getIsolation()
-
getConcurrency
public TransactionConcurrency getConcurrency()
-
getTopologyVersion
public AffinityTopologyVersion getTopologyVersion()
-
getTimeout
public long getTimeout()
-
getLabel
public String getLabel()
-
getPrimaryNodes
public Collection<UUID> getPrimaryNodes()
-
getState
public TransactionState getState()
-
getSize
public int getSize()
-
getNearXid
@Nullable public @Nullable IgniteUuid getNearXid()
-
getMasterNodeIds
@Nullable public @Nullable Collection<UUID> getMasterNodeIds()
-
getTxVerboseInfo
public TxVerboseInfo getTxVerboseInfo()
- Returns:
- Tx verbose info.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classVisorDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
toUserString
public String toUserString()
Get tx info as user string.- Returns:
- User string.
-
-