public class TransactionsMXBeanImpl extends Object implements TransactionsMXBean
Constructor and Description |
---|
TransactionsMXBeanImpl(GridKernalContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String xid)
Kills transactions by the xid.
|
String |
getActiveTransactions(Long minDuration,
Integer minSize,
String prj,
String consistentIds,
String xid,
String lbRegex,
Integer limit,
String order,
boolean detailed,
boolean kill) |
long |
getLongOperationsDumpTimeout()
Returns a timeout (in millis) for printing long-running transactions as
well as transactions that cannot receive locks for all their keys for a
long time.
|
long |
getLongTransactionTimeDumpThreshold()
Returns threshold timeout in milliseconds for long transactions, if transaction exceeds it,
it will be dumped in log with information about how much time did
it spent in system time (time while aquiring locks, preparing, commiting, etc.)
|
double |
getTransactionTimeDumpSamplesCoefficient()
Returns the coefficient for samples of completed transactions that will be dumped in log.
|
int |
getTransactionTimeDumpSamplesPerSecondLimit()
Returns the limit of samples of completed transactions that will be dumped in log per second,
if
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient() is above 0.0 . |
int |
getTxKeyCollisionsInterval() |
boolean |
getTxOwnerDumpRequestsAllowed()
Shows if dump requests from local node to near node are allowed, when long running transaction
is found.
|
long |
getTxTimeoutOnPartitionMapExchange()
Gets transaction timeout on partition map exchange.
|
void |
setLongOperationsDumpTimeout(long timeout)
Setting a timeout (in millis) for printing long-running transactions as
well as transactions that cannot receive locks for all their keys for a
long time.
|
void |
setLongTransactionTimeDumpThreshold(long threshold)
Sets threshold timeout in milliseconds for long transactions, if transaction exceeds it,
it will be dumped in log with information about how much time did
it spent in system time (time while aquiring locks, preparing, commiting, etc.)
|
void |
setTransactionTimeDumpSamplesCoefficient(double coefficient)
Sets the coefficient for samples of completed transactions that will be dumped in log.
|
void |
setTransactionTimeDumpSamplesPerSecondLimit(int limit)
Sets the limit of samples of completed transactions that will be dumped in log per second,
if
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient() is above 0.0 . |
void |
setTxKeyCollisionsInterval(int timeout)
Set timeout interval for tx key contention analysis.
|
void |
setTxOwnerDumpRequestsAllowed(boolean allowed)
Sets if dump requests from local node to near node are allowed, when long running transaction
is found.
|
void |
setTxTimeoutOnPartitionMapExchange(long timeout)
Sets transaction timeout on partition map exchange.
|
String |
toString() |
public TransactionsMXBeanImpl(GridKernalContext ctx)
ctx
- Context.public String getActiveTransactions(Long minDuration, Integer minSize, String prj, String consistentIds, String xid, String lbRegex, Integer limit, String order, boolean detailed, boolean kill)
getActiveTransactions
in interface TransactionsMXBean
minDuration
- Minimum duration.minSize
- Minimum size.prj
- Projection.consistentIds
- Consistent ids.xid
- Xid.lbRegex
- Label regex.limit
- Limit.order
- Order.detailed
- Detailed.kill
- Kill.public void cancel(String xid)
cancel
in interface TransactionsMXBean
xid
- Transaction xid.TransactionView.xid()
public long getTxTimeoutOnPartitionMapExchange()
getTxTimeoutOnPartitionMapExchange
in interface TransactionsMXBean
TransactionConfiguration.getTxTimeoutOnPartitionMapExchange()
public void setTxTimeoutOnPartitionMapExchange(long timeout)
If not set, default value is TransactionConfiguration.TX_TIMEOUT_ON_PARTITION_MAP_EXCHANGE
which means
transactions will never be rolled back on partition map exchange.
setTxTimeoutOnPartitionMapExchange
in interface TransactionsMXBean
timeout
- Transaction timeout on partition map exchange in milliseconds.TransactionConfiguration.setTxTimeoutOnPartitionMapExchange(long)
public boolean getTxOwnerDumpRequestsAllowed()
getTxOwnerDumpRequestsAllowed
in interface TransactionsMXBean
true
if allowed, false
otherwise.public void setTxOwnerDumpRequestsAllowed(boolean allowed)
setTxOwnerDumpRequestsAllowed
in interface TransactionsMXBean
allowed
- whether to allowpublic long getLongTransactionTimeDumpThreshold()
getLongTransactionTimeDumpThreshold
in interface TransactionsMXBean
public void setLongTransactionTimeDumpThreshold(long threshold)
setLongTransactionTimeDumpThreshold
in interface TransactionsMXBean
threshold
- Threshold.public double getTransactionTimeDumpSamplesCoefficient()
getTransactionTimeDumpSamplesCoefficient
in interface TransactionsMXBean
public void setTransactionTimeDumpSamplesCoefficient(double coefficient)
setTransactionTimeDumpSamplesCoefficient
in interface TransactionsMXBean
coefficient
- Coefficient.public int getTransactionTimeDumpSamplesPerSecondLimit()
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient()
is above 0.0
.
Must be integer value greater than 0
.getTransactionTimeDumpSamplesPerSecondLimit
in interface TransactionsMXBean
public void setTransactionTimeDumpSamplesPerSecondLimit(int limit)
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient()
is above 0.0
.
Must be integer value greater than 0
.setTransactionTimeDumpSamplesPerSecondLimit
in interface TransactionsMXBean
limit
- Limit value.public void setLongOperationsDumpTimeout(long timeout)
0
to disable.setLongOperationsDumpTimeout
in interface TransactionsMXBean
timeout
- Timeout.public long getLongOperationsDumpTimeout()
0
or less if not set.getLongOperationsDumpTimeout
in interface TransactionsMXBean
public void setTxKeyCollisionsInterval(int timeout)
setTxKeyCollisionsInterval
in interface TransactionsMXBean
timeout
- Interval in millis.public int getTxKeyCollisionsInterval()
getTxKeyCollisionsInterval
in interface TransactionsMXBean
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020