Class DistributedTransactionConfiguration
- java.lang.Object
-
- org.apache.ignite.internal.cluster.DistributedTransactionConfiguration
-
public class DistributedTransactionConfiguration extends Object
Distributed transaction configuration.
-
-
Constructor Summary
Constructors Constructor Description DistributedTransactionConfiguration(GridKernalContext ctx, IgniteLogger log, DistributePropertyListener<Long> longOperationsDumpTimeoutLsnr, DistributePropertyListener<Integer> collisionsDumpIntervalLsnr)
-
Method Summary
-
-
-
Constructor Detail
-
DistributedTransactionConfiguration
public DistributedTransactionConfiguration(GridKernalContext ctx, IgniteLogger log, DistributePropertyListener<Long> longOperationsDumpTimeoutLsnr, DistributePropertyListener<Integer> collisionsDumpIntervalLsnr)
- Parameters:
ctx- Kernal context.log- Log.longOperationsDumpTimeoutLsnr- Listener oflongOperationsDumpTimeoutchange event.collisionsDumpIntervalLsnr- Listener ofcollisionsDumpIntervalchange event.
-
-
Method Detail
-
updateLongOperationsDumpTimeoutAsync
public GridFutureAdapter<?> updateLongOperationsDumpTimeoutAsync(long timeout) throws IgniteCheckedException
Cluster wide update oflongOperationsDumpTimeout.- Parameters:
timeout- New value oflongOperationsDumpTimeout.- Returns:
- Future for
longOperationsDumpTimeoutupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateLongOperationsDumpTimeoutLocal
public void updateLongOperationsDumpTimeoutLocal(long timeout)
Local update oflongOperationsDumpTimeout.- Parameters:
timeout- New value oflongOperationsDumpTimeout.
-
longOperationsDumpTimeout
public Long longOperationsDumpTimeout()
- Returns:
- Long operations dump timeout. See
longOperationsDumpTimeout.
-
updateLongTransactionTimeDumpThresholdAsync
public GridFutureAdapter<?> updateLongTransactionTimeDumpThresholdAsync(long longTransactionTimeDumpThreshold) throws IgniteCheckedException
Cluster wide update oflongTransactionTimeDumpThreshold.- Parameters:
longTransactionTimeDumpThreshold- New value of threshold timeout in milliseconds.- Returns:
- Future for
longTransactionTimeDumpThresholdupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateLongTransactionTimeDumpThresholdLocal
public void updateLongTransactionTimeDumpThresholdLocal(long longTransactionTimeDumpThreshold)
Local update oflongTransactionTimeDumpThreshold.- Parameters:
longTransactionTimeDumpThreshold- New value oflongTransactionTimeDumpThreshold.
-
longTransactionTimeDumpThreshold
public Long longTransactionTimeDumpThreshold()
- Returns:
- Threshold timeout for long transactions. See
longTransactionTimeDumpThresholdfor more information.
-
updateTransactionTimeDumpSamplesCoefficientAsync
public GridFutureAdapter<?> updateTransactionTimeDumpSamplesCoefficientAsync(double transactionTimeDumpSamplesCoefficient) throws IgniteCheckedException
Cluster wide update oftransactionTimeDumpSamplesCoefficient.- Parameters:
transactionTimeDumpSamplesCoefficient- New coefficient for samples of completed transactions that will be dumped in log.- Returns:
- Future for
transactionTimeDumpSamplesCoefficientupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateTransactionTimeDumpSamplesCoefficientLocal
public void updateTransactionTimeDumpSamplesCoefficientLocal(double transactionTimeDumpSamplesCoefficient)
Local update oftransactionTimeDumpSamplesCoefficient.- Parameters:
transactionTimeDumpSamplesCoefficient- New coefficient for samples of completed transactions that will be dumped in log.
-
transactionTimeDumpSamplesCoefficient
public Double transactionTimeDumpSamplesCoefficient()
- Returns:
- The coefficient for samples of completed transactions that will be dumped in log.
See
transactionTimeDumpSamplesCoefficient.
-
updateLongTransactionTimeDumpSamplesPerSecondLimitAsync
public GridFutureAdapter<?> updateLongTransactionTimeDumpSamplesPerSecondLimitAsync(int limit) throws IgniteCheckedException
Cluster wide update oflongTransactionTimeDumpSamplesPerSecondLimit.- Parameters:
limit- New limit of samples of completed transactions that will be dumped in log per second.- Returns:
- Future for
longTransactionTimeDumpSamplesPerSecondLimitupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateLongTransactionTimeDumpSamplesPerSecondLimitLocal
public void updateLongTransactionTimeDumpSamplesPerSecondLimitLocal(int limit)
Local update oflongTransactionTimeDumpSamplesPerSecondLimit.- Parameters:
limit- New limit of samples of completed transactions that will be dumped in log per second.
-
longTransactionTimeDumpSamplesPerSecondLimit
public Integer longTransactionTimeDumpSamplesPerSecondLimit()
- Returns:
- Limit of samples of completed transactions that will be dumped in log per second.
See
longTransactionTimeDumpSamplesPerSecondLimitfor more information.
-
updateCollisionsDumpIntervalAsync
public GridFutureAdapter<?> updateCollisionsDumpIntervalAsync(int collisionsDumpInterval) throws IgniteCheckedException
Cluster wide update ofcollisionsDumpInterval.- Parameters:
collisionsDumpInterval- New collisions dump interval.- Returns:
- Future for
collisionsDumpIntervalupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateCollisionsDumpIntervalLocal
public void updateCollisionsDumpIntervalLocal(int collisionsDumpInterval)
Local update ofcollisionsDumpInterval.- Parameters:
collisionsDumpInterval- New collisions dump interval.
-
collisionsDumpInterval
public Integer collisionsDumpInterval()
- Returns:
- Collisions dump interval. See
collisionsDumpInterval.
-
updateTxOwnerDumpRequestsAllowedAsync
public GridFutureAdapter<?> updateTxOwnerDumpRequestsAllowedAsync(boolean allowed) throws IgniteCheckedException
Cluster wide update oftxOwnerDumpRequestsAllowed.- Parameters:
allowed- Allowance to dump requests from local node to near node, when long running transaction is found.- Returns:
- Future for
txOwnerDumpRequestsAllowedupdate operation. - Throws:
IgniteCheckedException- If failed during cluster wide update.
-
updateTxOwnerDumpRequestsAllowedLocal
public void updateTxOwnerDumpRequestsAllowedLocal(boolean allowed)
Local update oftxOwnerDumpRequestsAllowed.- Parameters:
allowed- Allowance to dump requests from local node to near node, when long running transaction is found.
-
txOwnerDumpRequestsAllowed
public Boolean txOwnerDumpRequestsAllowed()
- Returns:
- Allowance to dump requests from local node to near node, when long running transaction is found.
See
txOwnerDumpRequestsAllowedfor more information.
-
-