code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
private String precalculateToString() {
StringBuilder sb = new StringBuilder(288);
sb.append("a Bitronix XID [");
sb.append(globalTransactionId.toString());
sb.append(" : ");
sb.append(branchQualifier.toString());
sb.append("]");
return sb.toString();
} | Get a human-readable string representation of the XID.
@return a human-readable string representation. | precalculateToString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/BitronixXid.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/BitronixXid.java | Apache-2.0 |
@Override
public boolean equals(Object obj) {
if (!(obj instanceof BitronixXid))
return false;
BitronixXid otherXid = (BitronixXid) obj;
return FORMAT_ID == otherXid.getFormatId() &&
globalTransactionId.equals(otherXid.getGlobalTransactionIdUid()) &&
... | Compare two XIDs for equality.
@param obj the XID to compare to.
@return true if both XIDs have the same format ID and contain exactly the same GTRID and BQUAL. | equals | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/BitronixXid.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/BitronixXid.java | Apache-2.0 |
@Override
public int hashCode() {
return hashCodeValue;
} | Get an integer hash for the XID.
@return a constant hash value. | hashCode | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/BitronixXid.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/BitronixXid.java | Apache-2.0 |
private int precalculateHashCode() {
int hashCode = FORMAT_ID;
if (globalTransactionId != null)
hashCode += globalTransactionId.hashCode();
if (branchQualifier != null)
hashCode += branchQualifier.hashCode();
return hashCode;
} | Get an integer hash for the XID.
@return a constant hash value. | precalculateHashCode | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/BitronixXid.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/BitronixXid.java | Apache-2.0 |
public String getServerId() {
return serverId;
} | ASCII ID that must uniquely identify this TM instance. It must not exceed 51 characters or it will be truncated.
<p>Property name:<br><b>bitronix.tm.serverId -</b> <i>(defaults to server's IP address but that's unsafe for
production use)</i></p>
@return the unique ID of this TM instance. | getServerId | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setServerId(String serverId) {
checkNotStarted();
this.serverId = serverId;
return this;
} | Set the ASCII ID that must uniquely identify this TM instance. It must not exceed 51 characters or it will be
truncated.
@see #getServerId()
@param serverId the unique ID of this TM instance.
@return this. | setServerId | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getLogPart1Filename() {
return logPart1Filename;
} | Get the journal fragment file 1 name.
<p>Property name:<br><b>bitronix.tm.journal.disk.logPart1Filename -</b> <i>(defaults to btm1.tlog)</i></p>
@return the journal fragment file 1 name. | getLogPart1Filename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setLogPart1Filename(String logPart1Filename) {
checkNotStarted();
this.logPart1Filename = logPart1Filename;
return this;
} | Set the journal fragment file 1 name.
@see #getLogPart1Filename()
@param logPart1Filename the journal fragment file 1 name.
@return this. | setLogPart1Filename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getLogPart2Filename() {
return logPart2Filename;
} | Get the journal fragment file 2 name.
<p>Property name:<br><b>bitronix.tm.journal.disk.logPart2Filename -</b> <i>(defaults to btm2.tlog)</i></p>
@return the journal fragment file 2 name. | getLogPart2Filename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setLogPart2Filename(String logPart2Filename) {
checkNotStarted();
this.logPart2Filename = logPart2Filename;
return this;
} | Set the journal fragment file 2 name.
@see #getLogPart2Filename()
@param logPart2Filename the journal fragment file 2 name.
@return this. | setLogPart2Filename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isForcedWriteEnabled() {
return forcedWriteEnabled;
} | Are logs forced to disk? Do not set to false in production since without disk force, integrity is not
guaranteed.
<p>Property name:<br><b>bitronix.tm.journal.disk.forcedWriteEnabled -</b> <i>(defaults to true)</i></p>
@return true if logs are forced to disk, false otherwise. | isForcedWriteEnabled | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setForcedWriteEnabled(boolean forcedWriteEnabled) {
checkNotStarted();
this.forcedWriteEnabled = forcedWriteEnabled;
return this;
} | Set if logs are forced to disk. Do not set to false in production since without disk force, integrity is not
guaranteed.
@see #isForcedWriteEnabled()
@param forcedWriteEnabled true if logs should be forced to disk, false otherwise.
@return this. | setForcedWriteEnabled | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isForceBatchingEnabled() {
return forceBatchingEnabled;
} | Are disk forces batched? Disabling batching can seriously lower the transaction manager's throughput.
<p>Property name:<br><b>bitronix.tm.journal.disk.forceBatchingEnabled -</b> <i>(defaults to true)</i></p>
@return true if disk forces are batched, false otherwise. | isForceBatchingEnabled | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setForceBatchingEnabled(boolean forceBatchingEnabled) {
checkNotStarted();
log.warn("forceBatchingEnabled is not longer used");
this.forceBatchingEnabled = forceBatchingEnabled;
return this;
} | Set if disk forces are batched. Disabling batching can seriously lower the transaction manager's throughput.
@see #isForceBatchingEnabled()
@param forceBatchingEnabled true if disk forces are batched, false otherwise.
@return this. | setForceBatchingEnabled | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public int getMaxLogSizeInMb() {
return maxLogSizeInMb;
} | Maximum size in megabytes of the journal fragments. Larger logs allow transactions to stay longer in-doubt but
the TM pauses longer when a fragment is full.
<p>Property name:<br><b>bitronix.tm.journal.disk.maxLogSize -</b> <i>(defaults to 2)</i></p>
@return the maximum size in megabytes of the journal fragments. | getMaxLogSizeInMb | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setMaxLogSizeInMb(int maxLogSizeInMb) {
checkNotStarted();
this.maxLogSizeInMb = maxLogSizeInMb;
return this;
} | Set the Maximum size in megabytes of the journal fragments. Larger logs allow transactions to stay longer
in-doubt but the TM pauses longer when a fragment is full.
@see #getMaxLogSizeInMb()
@param maxLogSizeInMb the maximum size in megabytes of the journal fragments.
@return this. | setMaxLogSizeInMb | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isFilterLogStatus() {
return filterLogStatus;
} | Should only mandatory logs be written? Enabling this parameter lowers space usage of the fragments but makes
debugging more complex.
<p>Property name:<br><b>bitronix.tm.journal.disk.filterLogStatus -</b> <i>(defaults to false)</i></p>
@return true if only mandatory logs should be written. | isFilterLogStatus | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setFilterLogStatus(boolean filterLogStatus) {
checkNotStarted();
this.filterLogStatus = filterLogStatus;
return this;
} | Set if only mandatory logs should be written. Enabling this parameter lowers space usage of the fragments but
makes debugging more complex.
@see #isFilterLogStatus()
@param filterLogStatus true if only mandatory logs should be written.
@return this. | setFilterLogStatus | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isSkipCorruptedLogs() {
return skipCorruptedLogs;
} | Should corrupted logs be skipped?
<p>Property name:<br><b>bitronix.tm.journal.disk.skipCorruptedLogs -</b> <i>(defaults to false)</i></p>
@return true if corrupted logs should be skipped. | isSkipCorruptedLogs | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setSkipCorruptedLogs(boolean skipCorruptedLogs) {
checkNotStarted();
this.skipCorruptedLogs = skipCorruptedLogs;
return this;
} | Set if corrupted logs should be skipped.
@see #isSkipCorruptedLogs()
@param skipCorruptedLogs true if corrupted logs should be skipped.
@return this. | setSkipCorruptedLogs | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isWarnAboutZeroResourceTransaction() {
return warnAboutZeroResourceTransaction;
} | Should transactions executed without a single enlisted resource result in a warning or not? Most of the time
transactions executed with no enlisted resource reflect a bug or a mis-configuration somewhere.
<p>Property name:<br><b>bitronix.tm.2pc.warnAboutZeroResourceTransactions -</b> <i>(defaults to true)</i></p>
@retu... | isWarnAboutZeroResourceTransaction | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setWarnAboutZeroResourceTransaction(boolean warnAboutZeroResourceTransaction) {
checkNotStarted();
this.warnAboutZeroResourceTransaction = warnAboutZeroResourceTransaction;
return this;
} | Set if transactions executed without a single enlisted resource should result in a warning or not. Most of the
time transactions executed with no enlisted resource reflect a bug or a mis-configuration somewhere.
@see #isWarnAboutZeroResourceTransaction()
@param warnAboutZeroResourceTransaction true if transactions exec... | setWarnAboutZeroResourceTransaction | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public int getDefaultTransactionTimeout() {
return defaultTransactionTimeout;
} | Default transaction timeout in seconds.
<p>Property name:<br><b>bitronix.tm.timer.defaultTransactionTimeout -</b> <i>(defaults to 60)</i></p>
@return the default transaction timeout in seconds. | getDefaultTransactionTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setDefaultTransactionTimeout(int defaultTransactionTimeout) {
checkNotStarted();
this.defaultTransactionTimeout = defaultTransactionTimeout;
return this;
} | Set the default transaction timeout in seconds.
@see #getDefaultTransactionTimeout()
@param defaultTransactionTimeout the default transaction timeout in seconds.
@return this. | setDefaultTransactionTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public int getGracefulShutdownInterval() {
return gracefulShutdownInterval;
} | Maximum amount of seconds the TM will wait for transactions to get done before aborting them at shutdown time.
<p>Property name:<br><b>bitronix.tm.timer.gracefulShutdownInterval -</b> <i>(defaults to 60)</i></p>
@return the maximum amount of time in seconds. | getGracefulShutdownInterval | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setGracefulShutdownInterval(int gracefulShutdownInterval) {
checkNotStarted();
this.gracefulShutdownInterval = gracefulShutdownInterval;
return this;
} | Set the maximum amount of seconds the TM will wait for transactions to get done before aborting them at shutdown
time.
@see #getGracefulShutdownInterval()
@param gracefulShutdownInterval the maximum amount of time in seconds.
@return this. | setGracefulShutdownInterval | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
@Deprecated
public int getBackgroundRecoveryInterval() {
return getBackgroundRecoveryIntervalSeconds() / 60;
} | Interval in minutes at which to run the recovery process in the background. Disabled when set to 0.
<p>Property name:<br><b>bitronix.tm.timer.backgroundRecoveryInterval -</b> <i>(defaults to 0)</i></p>
@return the interval in minutes.
@deprecated superceded by #getBackgroundRecoveryIntervalSeconds(). | getBackgroundRecoveryInterval | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
@Deprecated
public Configuration setBackgroundRecoveryInterval(int backgroundRecoveryInterval) {
log.warn("setBackgroundRecoveryInterval() is deprecated, consider using setBackgroundRecoveryIntervalSeconds() instead.");
setBackgroundRecoveryIntervalSeconds(backgroundRecoveryInterval * 60);
r... | Set the interval in minutes at which to run the recovery process in the background. Disabled when set to 0.
@see #getBackgroundRecoveryInterval()
@param backgroundRecoveryInterval the interval in minutes.
@deprecated superceded by #setBackgroundRecoveryIntervalSeconds(int).
@return this. | setBackgroundRecoveryInterval | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public int getBackgroundRecoveryIntervalSeconds() {
return backgroundRecoveryIntervalSeconds;
} | Interval in seconds at which to run the recovery process in the background. Disabled when set to 0.
<p>Property name:<br><b>bitronix.tm.timer.backgroundRecoveryIntervalSeconds -</b> <i>(defaults to 60)</i></p>
@return the interval in seconds. | getBackgroundRecoveryIntervalSeconds | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setBackgroundRecoveryIntervalSeconds(int backgroundRecoveryIntervalSeconds) {
checkNotStarted();
this.backgroundRecoveryIntervalSeconds = backgroundRecoveryIntervalSeconds;
return this;
} | Set the interval in seconds at which to run the recovery process in the background. Disabled when set to 0.
@see #getBackgroundRecoveryIntervalSeconds()
@param backgroundRecoveryIntervalSeconds the interval in minutes.
@return this. | setBackgroundRecoveryIntervalSeconds | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isDisableJmx() {
return disableJmx;
} | Should JMX Mbeans not be registered even if a JMX MBean server is detected?
<p>Property name:<br><b>bitronix.tm.disableJmx -</b> <i>(defaults to false)</i></p>
@return true if JMX MBeans should never be registered. | isDisableJmx | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setDisableJmx(boolean disableJmx) {
checkNotStarted();
this.disableJmx = disableJmx;
return this;
} | Set to true if JMX Mbeans should not be registered even if a JMX MBean server is detected.
@see #isDisableJmx()
@param disableJmx true if JMX MBeans should never be registered.
@return this. | setDisableJmx | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isSynchronousJmxRegistration() {
return synchronousJmxRegistration;
} | Should JMX registrations and un-registrations be done in a synchronous / blocking way.
<p>
By default all JMX registrations are done asynchronously. Registrations and un-registrations
are combined to avoid the registration of short lived instances and increase the overall throughput.
@return true if the caller should ... | isSynchronousJmxRegistration | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setSynchronousJmxRegistration(boolean synchronousJmxRegistration) {
checkNotStarted();
this.synchronousJmxRegistration = synchronousJmxRegistration;
return this;
} | Toggles synchronous and asynchronous JMX registration mode.
@param synchronousJmxRegistration true if the caller should be blocked when MBeans are registered
(defaults to false).
@return this. | setSynchronousJmxRegistration | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getJndiUserTransactionName() {
return jndiUserTransactionName;
} | Get the name the {@link javax.transaction.UserTransaction} should be bound under in the
{@link bitronix.tm.jndi.BitronixContext}.
@return the name the {@link javax.transaction.UserTransaction} should
be bound under in the {@link bitronix.tm.jndi.BitronixContext}. | getJndiUserTransactionName | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setJndiUserTransactionName(String jndiUserTransactionName) {
checkNotStarted();
this.jndiUserTransactionName = jndiUserTransactionName;
return this;
} | Set the name the {@link javax.transaction.UserTransaction} should be bound under in the
{@link bitronix.tm.jndi.BitronixContext}.
@see #getJndiUserTransactionName()
@param jndiUserTransactionName the name the {@link javax.transaction.UserTransaction} should
be bound under in the {@link bitronix.tm.jndi.BitronixC... | setJndiUserTransactionName | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getJndiTransactionSynchronizationRegistryName() {
return jndiTransactionSynchronizationRegistryName;
} | Get the name the {@link javax.transaction.TransactionSynchronizationRegistry} should be bound under in the
{@link bitronix.tm.jndi.BitronixContext}.
@return the name the {@link javax.transaction.TransactionSynchronizationRegistry} should
be bound under in the {@link bitronix.tm.jndi.BitronixContext}. | getJndiTransactionSynchronizationRegistryName | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setJndiTransactionSynchronizationRegistryName(String jndiTransactionSynchronizationRegistryName) {
checkNotStarted();
this.jndiTransactionSynchronizationRegistryName = jndiTransactionSynchronizationRegistryName;
return this;
} | Set the name the {@link javax.transaction.TransactionSynchronizationRegistry} should be bound under in the
{@link bitronix.tm.jndi.BitronixContext}.
@see #getJndiUserTransactionName()
@param jndiTransactionSynchronizationRegistryName the name the {@link javax.transaction.TransactionSynchronizationRegistry} should
... | setJndiTransactionSynchronizationRegistryName | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getJournal() {
return journal;
} | Get the journal implementation. Can be <code>disk</code>, <code>null</code> or a class name.
@return the journal name. | getJournal | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setJournal(String journal) {
checkNotStarted();
this.journal = journal;
return this;
} | Set the journal name. Can be <code>disk</code>, <code>null</code> or a class name.
@see #getJournal()
@param journal the journal name.
@return this. | setJournal | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getExceptionAnalyzer() {
return exceptionAnalyzer;
} | Get the exception analyzer implementation. Can be <code>null</code> for the default one or a class name.
@return the exception analyzer name. | getExceptionAnalyzer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setExceptionAnalyzer(String exceptionAnalyzer) {
checkNotStarted();
this.exceptionAnalyzer = exceptionAnalyzer;
return this;
} | Set the exception analyzer implementation. Can be <code>null</code> for the default one or a class name.
@see #getExceptionAnalyzer()
@param exceptionAnalyzer the exception analyzer name.
@return this. | setExceptionAnalyzer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isCurrentNodeOnlyRecovery() {
return currentNodeOnlyRecovery;
} | Should the recovery process <b>not</b> recover XIDs generated with another JVM unique ID? Setting this property to true
is useful in clustered environments where multiple instances of BTM are running on different nodes.
@see #getServerId() contains the value used as the JVM unique ID.
@return true if recovery should fi... | isCurrentNodeOnlyRecovery | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setCurrentNodeOnlyRecovery(boolean currentNodeOnlyRecovery) {
checkNotStarted();
this.currentNodeOnlyRecovery = currentNodeOnlyRecovery;
return this;
} | Set to true if recovery should filter out recovered XIDs that do not contain this JVM's unique ID, false otherwise.
@see #isCurrentNodeOnlyRecovery()
@param currentNodeOnlyRecovery true if recovery should filter out recovered XIDs that do not contain this JVM's unique ID, false otherwise.
@return this. | setCurrentNodeOnlyRecovery | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isAllowMultipleLrc() {
return allowMultipleLrc;
} | Should the transaction manager allow enlistment of multiple LRC resources in a single transaction?
This is highly unsafe but could be useful for testing.
@return true if the transaction manager should allow enlistment of multiple LRC resources in a single transaction, false otherwise. | isAllowMultipleLrc | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setAllowMultipleLrc(boolean allowMultipleLrc) {
checkNotStarted();
this.allowMultipleLrc = allowMultipleLrc;
return this;
} | Set to true if the transaction manager should allow enlistment of multiple LRC resources in a single transaction.
@param allowMultipleLrc true if the transaction manager should allow enlistment of multiple LRC resources in a single transaction, false otherwise.
@return this | setAllowMultipleLrc | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public boolean isConservativeJournaling() {
return conservativeJournaling;
} | Should the Disk Journal follow a conservative (sequential write) policy?
@return true if the Disk Journal should serialize writes to the transaction log, false otherwise. | isConservativeJournaling | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setConservativeJournaling(boolean conservativeJournaling) {
checkNotStarted();
this.conservativeJournaling = conservativeJournaling;
return this;
} | Set to true if the Disk Journal should follow a conservative (sequential write) policy.
@param conservativeJournaling true if the Disk Journal should follow a conservative (sequential write) policy
@return this | setConservativeJournaling | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getJdbcProxyFactoryClass() {
return jdbcProxyFactoryClass;
} | Get the factory class for creating JDBC proxy instances.
@return the name of the factory class | getJdbcProxyFactoryClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public void setJdbcProxyFactoryClass(String jdbcProxyFactoryClass) {
this.jdbcProxyFactoryClass = jdbcProxyFactoryClass;
} | Set the name of the factory class for creating JDBC proxy instances.
@param jdbcProxyFactoryClass the name of the proxy class | setJdbcProxyFactoryClass | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public String getResourceConfigurationFilename() {
return resourceConfigurationFilename;
} | {@link bitronix.tm.resource.ResourceLoader} configuration file name. {@link bitronix.tm.resource.ResourceLoader}
will be disabled if this value is null.
<p>Property name:<br><b>bitronix.tm.resource.configuration -</b> <i>(defaults to null)</i></p>
@return the filename of the resources configuration file or null if not ... | getResourceConfigurationFilename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public Configuration setResourceConfigurationFilename(String resourceConfigurationFilename) {
checkNotStarted();
this.resourceConfigurationFilename = resourceConfigurationFilename;
return this;
} | Set the {@link bitronix.tm.resource.ResourceLoader} configuration file name.
@see #getResourceConfigurationFilename()
@param resourceConfigurationFilename the filename of the resources configuration file or null you do not want to
use the {@link bitronix.tm.resource.ResourceLoader}.
@return this. | setResourceConfigurationFilename | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public byte[] buildServerIdArray() {
byte[] id = serverIdArray.get();
if (id == null) {
// DCL is not a problem here, we just want to avoid multiple concurrent creations of the same array as it would look ugly in the logs.
// More important is to avoid contended synchronizations ... | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | buildServerIdArray | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
@Override
public void shutdown() {
serverIdArray.set(null);
} | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | shutdown | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
@Override
public String toString() {
StringBuilder sb = new StringBuilder(512);
sb.append("a Configuration with [");
try {
sb.append(PropertyUtils.propertiesToString(this));
} catch (PropertyException ex) {
sb.append("???");
if (log.isDebugEnabled... | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | toString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
private void checkNotStarted() {
if (TransactionManagerServices.isTransactionManagerRunning())
throw new IllegalStateException("cannot change the configuration while the transaction manager is running");
} | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | checkNotStarted | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
static String getString(Properties properties, String key, String defaultValue) {
String value = System.getProperty(key);
if (value == null) {
value = properties.getProperty(key);
if (value == null)
return defaultValue;
}
return evaluate(properties... | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | getString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
static boolean getBoolean(Properties properties, String key, boolean defaultValue) {
return Boolean.valueOf(getString(properties, key, "" + defaultValue));
} | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | getBoolean | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
static int getInt(Properties properties, String key, int defaultValue) {
return Integer.parseInt(getString(properties, key, "" + defaultValue));
} | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | getInt | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
private static String evaluate(Properties properties, String value) {
String result = value;
int startIndex = value.indexOf('$');
if (startIndex > -1 && value.length() > startIndex +1 && value.charAt(startIndex +1) == '{') {
int endIndex = value.indexOf('}');
if (startIn... | Build the server ID byte array that will be prepended in generated UIDs. Once built, the value is cached for the duration of the JVM lifespan.
@return the server ID. | evaluate | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/Configuration.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/Configuration.java | Apache-2.0 |
public static BitronixTransactionManager getTransactionManager() {
transactionManagerLock.lock();
try {
if (transactionManager == null) {
transactionManager = new BitronixTransactionManager();
}
return transactionManager;
} finally {
... | Create an initialized transaction manager.
@return the transaction manager. | getTransactionManager | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static BitronixTransactionSynchronizationRegistry getTransactionSynchronizationRegistry() {
BitronixTransactionSynchronizationRegistry transactionSynchronizationRegistry = transactionSynchronizationRegistryRef.get();
if (transactionSynchronizationRegistry == null) {
transactionSynchro... | Create the JTA 1.1 TransactionSynchronizationRegistry.
@return the TransactionSynchronizationRegistry. | getTransactionSynchronizationRegistry | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static Configuration getConfiguration() {
Configuration configuration = configurationRef.get();
if (configuration == null) {
configuration = new Configuration();
if (!configurationRef.compareAndSet(null, configuration)) {
configuration = configurationRef.ge... | Create the configuration of all the components of the transaction manager.
@return the global configuration. | getConfiguration | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static Journal getJournal() {
Journal journal = journalRef.get();
if (journal == null) {
String configuredJournal = getConfiguration().getJournal();
if ("null".equals(configuredJournal) || null == configuredJournal) {
journal = new NullJournal();
... | Create the transactions journal.
@return the transactions journal. | getJournal | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static TaskScheduler getTaskScheduler() {
TaskScheduler taskScheduler = taskSchedulerRef.get();
if (taskScheduler == null) {
taskScheduler = new TaskScheduler();
if (!taskSchedulerRef.compareAndSet(null, taskScheduler)) {
taskScheduler = taskSchedulerRef.ge... | Create the task scheduler.
@return the task scheduler. | getTaskScheduler | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static ResourceLoader getResourceLoader() {
ResourceLoader resourceLoader = resourceLoaderRef.get();
if (resourceLoader == null) {
resourceLoader = new ResourceLoader();
if (!resourceLoaderRef.compareAndSet(null, resourceLoader)) {
resourceLoader = resource... | Create the resource loader.
@return the resource loader. | getResourceLoader | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static Recoverer getRecoverer() {
Recoverer recoverer = recovererRef.get();
if (recoverer == null) {
recoverer = new Recoverer();
if (!recovererRef.compareAndSet(null, recoverer)) {
recoverer = recovererRef.get();
}
}
return reco... | Create the transaction recoverer.
@return the transaction recoverer. | getRecoverer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static Executor getExecutor() {
Executor executor = executorRef.get();
if (executor == null) {
if (getConfiguration().isAsynchronous2Pc()) {
if (log.isDebugEnabled()) { log.debug("using AsyncExecutor"); }
executor = new AsyncExecutor();
} el... | Create the 2PC executor.
@return the 2PC executor. | getExecutor | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static ExceptionAnalyzer getExceptionAnalyzer() {
ExceptionAnalyzer analyzer = exceptionAnalyzerRef.get();
if (analyzer == null) {
String exceptionAnalyzerName = getConfiguration().getExceptionAnalyzer();
analyzer = new DefaultExceptionAnalyzer();
if (exception... | Create the exception analyzer.
@return the exception analyzer. | getExceptionAnalyzer | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static boolean isTransactionManagerRunning() {
return transactionManager != null;
} | Check if the transaction manager has started.
@return true if the transaction manager has started. | isTransactionManagerRunning | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
public static boolean isTaskSchedulerRunning() {
return taskSchedulerRef.get() != null;
} | Check if the task scheduler has started.
@return true if the task scheduler has started. | isTaskSchedulerRunning | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
protected static synchronized void clear() {
transactionManager = null;
transactionSynchronizationRegistryRef.set(null);
configurationRef.set(null);
journalRef.set(null);
taskSchedulerRef.set(null);
resourceLoaderRef.set(null);
recovererRef.set(null);
exe... | Clear services references. Called at the end of the shutdown procedure. | clear | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/TransactionManagerServices.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/TransactionManagerServices.java | Apache-2.0 |
@Override
public String getMessage() {
StringBuilder errorMessage = new StringBuilder();
errorMessage.append("collected ");
errorMessage.append(exceptions.size());
errorMessage.append(" exception(s):");
for (int i = 0; i < exceptions.size(); i++) {
errorMessage.ap... | Subclass of {@link javax.transaction.SystemException} supporting nested {@link Throwable}s.
@author Ludovic Orban | getMessage | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | Apache-2.0 |
public boolean isUnilateralRollback() {
for (Throwable throwable : exceptions) {
if (!(throwable instanceof BitronixRollbackSystemException))
return false;
}
return true;
} | Subclass of {@link javax.transaction.SystemException} supporting nested {@link Throwable}s.
@author Ludovic Orban | isUnilateralRollback | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | Apache-2.0 |
public List<? extends Exception> getExceptions() {
return exceptions;
} | Get the list of exceptions that have been thrown during execution.
@return the list of exceptions that have been thrown during execution. | getExceptions | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | Apache-2.0 |
public List<XAResourceHolderState> getResourceStates() {
return resourceStates;
} | Get the list of XAResourceHolderStates which threw an exception during execution.
This list always contains exactly one resource per exception present in {@link #getExceptions} list.
Indices of both list always match a resource against the exception it threw.
@return the list of resource which threw an exception during... | getResourceStates | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/BitronixMultiSystemException.java | Apache-2.0 |
public static boolean isUnilateralRollback(XAException ex) {
return (ex.errorCode >= XAException.XA_RBBASE && ex.errorCode <= XAException.XA_RBEND) || ex.errorCode == XAException.XAER_NOTA;
} | Subclass of {@link javax.transaction.xa.XAException} supporting nested {@link Throwable}s.
@author Ludovic Orban | isUnilateralRollback | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/BitronixXAException.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/BitronixXAException.java | Apache-2.0 |
@Override
protected ThreadContext initialValue() {
return new ThreadContext();
} | Transactional context of a thread. It contains both the active transaction (if any) and all default parameters
that a transaction running on a thread must inherit.
@author Ludovic Orban | initialValue | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public static ThreadContext getThreadContext() {
return threadContext.get();
} | Get the ThreadContext thread local value for the calling thread. This is
the only way to access the ThreadContext. The get() call will
automatically construct a ThreadContext if this thread doesn't have one
(see initialValue() above).
@return the calling thread's ThreadContext | getThreadContext | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public BitronixTransaction getTransaction() {
return transaction;
} | Return the transaction linked with this ThreadContext.
@return the transaction linked to this ThreadContext or null if there is none. | getTransaction | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public void setTransaction(BitronixTransaction transaction) {
if (transaction == null)
throw new IllegalArgumentException("transaction parameter cannot be null");
if (log.isDebugEnabled()) { log.debug("assigning <" + transaction + "> to <" + this + ">"); }
this.transaction = transact... | Link a transaction with this ThreadContext.
@param transaction the transaction to link. | setTransaction | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public void clearTransaction() {
transaction = null;
} | Clean the transaction from this ThreadContext | clearTransaction | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public int getTimeout() {
return timeout;
} | Return this context's default timeout.
@return this context's default timeout. | getTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public void setTimeout(int timeout) {
if (timeout == 0) {
int defaultValue = TransactionManagerServices.getConfiguration().getDefaultTransactionTimeout();
if (log.isDebugEnabled()) { log.debug("resetting default timeout of thread context to default value of " + defaultValue + "s"); }
... | Set this context's default timeout. All transactions started by the
thread linked to this context will get this value as their default
timeout.
@param timeout the new default timeout value in seconds. | setTimeout | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
@Override
public String toString() {
return "a ThreadContext (" + System.identityHashCode(this) + ") with transaction " + transaction + ", default timeout " + timeout + "s";
} | Return a human-readable representation.
@return a human-readable representation. | toString | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/ThreadContext.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/ThreadContext.java | Apache-2.0 |
public BitronixXid getXid() {
return xid;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getXid | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public void setXid(BitronixXid xid) throws BitronixSystemException {
if (log.isDebugEnabled()) { log.debug("assigning <" + xid + "> to <" + this + ">"); }
if (this.xid != null && !xid.equals(this.xid))
throw new BitronixSystemException("a XID has already been assigned to " + this);
t... | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | setXid | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public XAResource getXAResource() {
return xaResourceHolder.getXAResource();
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getXAResource | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public XAResourceHolder getXAResourceHolder() {
return xaResourceHolder;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getXAResourceHolder | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public Date getTransactionTimeoutDate() {
return transactionTimeoutDate;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getTransactionTimeoutDate | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public void setTransactionTimeoutDate(Date transactionTimeoutDate) {
this.transactionTimeoutDate = transactionTimeoutDate;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | setTransactionTimeoutDate | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public String getUniqueName() {
return bean.getUniqueName();
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getUniqueName | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean getUseTmJoin() {
return bean.getUseTmJoin();
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getUseTmJoin | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public int getTwoPcOrderingPosition() {
return bean.getTwoPcOrderingPosition();
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getTwoPcOrderingPosition | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean getIgnoreRecoveryFailures() {
return bean.getIgnoreRecoveryFailures();
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | getIgnoreRecoveryFailures | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean isEnded() {
return ended;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | isEnded | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean isStarted() {
return started;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | isStarted | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean isSuspended() {
return suspended;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | isSuspended | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public boolean isFailed() {
return failed;
} | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | isFailed | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
public void end(int flags) throws XAException {
boolean ended = this.ended;
boolean suspended = this.suspended;
if (this.ended && (flags == XAResource.TMSUSPEND)) {
if (log.isDebugEnabled()) { log.debug("resource already ended, changing state to suspended: " + this); }
t... | {@link XAResourceHolder} state container.
Instances are kept in the transaction and bound to / unbound from the {@link XAResourceHolder} as the
resource participates in different transactions. A {@link XAResourceHolder} without {@link XAResourceHolderState}
is considered to be in local transaction mode.
<p>Objects of t... | end | java | scalar-labs/btm | btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | https://github.com/scalar-labs/btm/blob/master/btm/src/main/java/bitronix/tm/internal/XAResourceHolderState.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.