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 TransactionsMXBeanminDuration - Minimum duration.minSize - Minimum size.prj - Projection.consistentIds - Consistent ids.xid - Xid.lbRegex - Label regex.limit - Limit.order - Order.detailed - Detailed.kill - Kill.detailed flag is set - description of each transaction, else transactions count.public void cancel(String xid)
cancel in interface TransactionsMXBeanxid - Transaction xid.TransactionView.xid()public long getTxTimeoutOnPartitionMapExchange()
getTxTimeoutOnPartitionMapExchange in interface TransactionsMXBeanTransactionConfiguration.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 TransactionsMXBeantimeout - Transaction timeout on partition map exchange in milliseconds.TransactionConfiguration.setTxTimeoutOnPartitionMapExchange(long)public boolean getTxOwnerDumpRequestsAllowed()
getTxOwnerDumpRequestsAllowed in interface TransactionsMXBeantrue if allowed, false otherwise.public void setTxOwnerDumpRequestsAllowed(boolean allowed)
setTxOwnerDumpRequestsAllowed in interface TransactionsMXBeanallowed - whether to allowpublic long getLongTransactionTimeDumpThreshold()
getLongTransactionTimeDumpThreshold in interface TransactionsMXBeanpublic void setLongTransactionTimeDumpThreshold(long threshold)
setLongTransactionTimeDumpThreshold in interface TransactionsMXBeanthreshold - Threshold.public double getTransactionTimeDumpSamplesCoefficient()
getTransactionTimeDumpSamplesCoefficient in interface TransactionsMXBeanpublic void setTransactionTimeDumpSamplesCoefficient(double coefficient)
setTransactionTimeDumpSamplesCoefficient in interface TransactionsMXBeancoefficient - Coefficient.public int getTransactionTimeDumpSamplesPerSecondLimit()
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient() is above 0.0.
Must be integer value greater than 0.getTransactionTimeDumpSamplesPerSecondLimit in interface TransactionsMXBeanpublic void setTransactionTimeDumpSamplesPerSecondLimit(int limit)
TransactionsMXBean.getTransactionTimeDumpSamplesCoefficient() is above 0.0.
Must be integer value greater than 0.setTransactionTimeDumpSamplesPerSecondLimit in interface TransactionsMXBeanlimit - Limit value.public void setLongOperationsDumpTimeout(long timeout)
0 to disable.setLongOperationsDumpTimeout in interface TransactionsMXBeantimeout - Timeout.public long getLongOperationsDumpTimeout()
0 or less if not set.getLongOperationsDumpTimeout in interface TransactionsMXBeanpublic void setTxKeyCollisionsInterval(int timeout)
setTxKeyCollisionsInterval in interface TransactionsMXBeantimeout - Interval in millis.public int getTxKeyCollisionsInterval()
getTxKeyCollisionsInterval in interface TransactionsMXBean
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023