@ConfigurationProperties(value="spring.jta.atomikos.properties") 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. |
long |
getCheckpointInterval() |
int |
getConsoleFileCount() |
int |
getConsoleFileLimit() |
String |
getConsoleFileName() |
AtomikosLoggingLevel |
getConsoleLogLevel() |
long |
getDefaultJtaTimeout() |
String |
getLogBaseDir() |
String |
getLogBaseName() |
int |
getMaxActives() |
long |
getMaxTimeout() |
String |
getOutputDir() |
String |
getService() |
String |
getTransactionManagerUniqueName() |
boolean |
isEnableLogging() |
boolean |
isForceShutdownOnVmExit() |
boolean |
isSerialJtaTransactions() |
boolean |
isThreadedTwoPhaseCommit() |
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 maxActives)
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 String getService()
public void setMaxTimeout(long maxTimeout)
maxTimeout
- the max timeoutpublic long getMaxTimeout()
public void setDefaultJtaTimeout(long defaultJtaTimeout)
defaultJtaTimeout
- the default JTA timeoutpublic long getDefaultJtaTimeout()
public void setMaxActives(int maxActives)
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.maxActives
- the max activitiespublic int getMaxActives()
public void setEnableLogging(boolean enableLogging)
enableLogging
- if logging is enabledpublic boolean isEnableLogging()
public void setTransactionManagerUniqueName(String uniqueName)
uniqueName
- the unique namepublic String getTransactionManagerUniqueName()
public 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 boolean isSerialJtaTransactions()
public void setForceShutdownOnVmExit(boolean forceShutdownOnVmExit)
forceShutdownOnVmExit
- if VM shutdown should be forcedpublic boolean isForceShutdownOnVmExit()
public void setLogBaseName(String logBaseName)
logBaseName
- the log base namepublic String getLogBaseName()
public void setLogBaseDir(String logBaseDir)
logBaseDir
- the log base dirpublic String getLogBaseDir()
public void setCheckpointInterval(long checkpointInterval)
checkpointInterval
- the checkpoint intervalpublic long getCheckpointInterval()
public void setConsoleLogLevel(AtomikosLoggingLevel consoleLogLevel)
AtomikosLoggingLevel.WARN
.consoleLogLevel
- the console log levelpublic AtomikosLoggingLevel getConsoleLogLevel()
public void setOutputDir(String outputDir)
outputDir
- the output dirpublic String getOutputDir()
public void setConsoleFileName(String consoleFileName)
consoleFileName
- the console file namepublic String getConsoleFileName()
public void setConsoleFileCount(int consoleFileCount)
consoleFileCount
- the console file countpublic int getConsoleFileCount()
public void setConsoleFileLimit(int consoleFileLimit)
consoleFileLimit
- the console file limitpublic int getConsoleFileLimit()
public void setThreadedTwoPhaseCommit(boolean threadedTwoPhaseCommit)
threadedTwoPhaseCommit
- if threaded two phase commits should be usedpublic boolean isThreadedTwoPhaseCommit()
public Properties asProperties()
Properties
object that can be used with
Atomikos.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.