public class AtomikosProperties extends Object
asProperties()
Constructor and Description |
---|
AtomikosProperties() |
Modifier and Type | Method and Description |
---|---|
Properties |
asProperties()
Returns the properties as a
Properties object that can be used with
Atomikos. |
void |
setCheckpointInterval(long checkpointInterval)
Specifies the interval between checkpoints.
|
void |
setConsoleFileCount(int consoleFileCount)
Specifies how many debug logs files can be created.
|
void |
setConsoleFileLimit(int consoleFileLimit)
Specifies how many bytes can be stored at most in debug logs files.
|
void |
setConsoleFileName(String consoleFileName)
Specifies the debug logs file name.
|
void |
setConsoleLogLevel(AtomikosLoggingLevel consoleLogLevel)
Specifies the console log level.
|
void |
setDefaultJtaTimeout(long defaultJtaTimeout)
The default timeout for JTA transactions (optional, defaults to 10000
ms).
|
void |
setEnableLogging(boolean enableLogging)
Specifies if disk logging should be enabled or not.
|
void |
setForceShutdownOnVmExit(boolean forceShutdownOnVmExit)
Specifies whether VM shutdown should trigger forced shutdown of the transaction
core.
|
void |
setLogBaseDir(String logBaseDir)
Specifies the directory in which the log files should be stored.
|
void |
setLogBaseName(String logBaseName)
Specifies the transactions log file base name.
|
void |
setMaxActives(int maxActivities)
Specifies the maximum number of active transactions.
|
void |
setMaxTimeout(long maxTimeout)
Specifies the maximum timeout (in milliseconds) that can be allowed for
transactions.
|
void |
setOutputDir(String outputDir)
Specifies the directory in which to store the debug log files.
|
void |
setSerialJtaTransactions(boolean serialJtaTransactions)
Specifies if subtransactions should be joined when possible.
|
void |
setService(String service)
Specifies the transaction manager implementation that should be started.
|
void |
setThreadedTwoPhaseCommit(boolean threadedTwoPhaseCommit)
Specifies whether or not to use different (and concurrent) threads for two-phase
commit on the participating resources.
|
void |
setTransactionManagerUniqueName(String uniqueName)
Specifies the transaction manager's unique name.
|
public void setService(String service)
service
- the servicepublic void setMaxTimeout(long maxTimeout)
maxTimeout
- the max timeoutpublic void setDefaultJtaTimeout(long defaultJtaTimeout)
defaultJtaTimeout
- the default JTA timeoutpublic void setMaxActives(int maxActivities)
IllegalStateException
with error message "Max number of active transactions reached" if you call
UserTransaction.begin()
while there are already n concurrent transactions
running, n being this value.maxActivities
- the max activitiespublic void setEnableLogging(boolean enableLogging)
enableLogging
- if logging is enabledpublic void setTransactionManagerUniqueName(String uniqueName)
uniqueName
- the unique namepublic void setSerialJtaTransactions(boolean serialJtaTransactions)
XAResource.start(TM_JOIN)
will be made for
different but related subtransactions. This setting has no effect on resource
access within one and the same transaction. If you don't use subtransactions then
this setting can be ignored.serialJtaTransactions
- if serial JTA transaction are supportedpublic void setForceShutdownOnVmExit(boolean forceShutdownOnVmExit)
forceShutdownOnVmExit
- if VM shutdown should be forcedpublic void setLogBaseName(String logBaseName)
logBaseName
- the log base namepublic void setLogBaseDir(String logBaseDir)
logBaseDir
- the log base dirpublic void setCheckpointInterval(long checkpointInterval)
checkpointInterval
- the checkpoint intervalpublic void setConsoleLogLevel(AtomikosLoggingLevel consoleLogLevel)
AtomikosLoggingLevel.WARN
.consoleLogLevel
- the console log levelpublic void setOutputDir(String outputDir)
outputDir
- the output dirpublic void setConsoleFileName(String consoleFileName)
consoleFileName
- the console file namepublic void setConsoleFileCount(int consoleFileCount)
consoleFileCount
- the console file countpublic void setConsoleFileLimit(int consoleFileLimit)
consoleFileLimit
- the console file limitpublic void setThreadedTwoPhaseCommit(boolean threadedTwoPhaseCommit)
threadedTwoPhaseCommit
- if threaded two phase commits should be usedpublic Properties asProperties()
Properties
object that can be used with
Atomikos.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.