public class XAEnvironment extends Environment implements XAResource
CHECKPOINTER_NAME, CLEANER_NAME, envImpl, INCOMP_NAME, STATCAPTURE_NAME
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Constructor and Description |
---|
XAEnvironment(File envHome,
EnvironmentConfig configuration)
Create a database environment handle.
|
Modifier and Type | Method and Description |
---|---|
void |
commit(Xid xid,
boolean ignore) |
void |
end(Xid xid,
int flags) |
void |
forget(Xid xid) |
int |
getTransactionTimeout() |
Transaction |
getXATransaction(Xid xid)
Used to get the Transaction object given an XA Xid.
|
boolean |
isSameRM(XAResource rm) |
int |
prepare(Xid xid) |
Xid[] |
recover(int flags) |
void |
rollback(Xid xid) |
boolean |
setTransactionTimeout(int timeout) |
void |
setXATransaction(Xid xid,
Transaction txn)
Used to set the Transaction object for an XA Xid.
|
void |
start(Xid xid,
int flags) |
beginTransaction, checkEnv, checkHandleIsValid, checkpoint, cleanLog, cleanLogFile, close, compress, evictMemory, flushLog, getConfig, getDatabaseNames, getHome, getLockStats, getMutableConfig, getStats, getThreadTransaction, getTransactionStats, isInternalHandle, isValid, makeEnvironmentImpl, openDatabase, openSecondaryDatabase, preload, printStartupInfo, removeDatabase, renameDatabase, setMutableConfig, setThreadTransaction, setupRepConfig, sync, truncateDatabase, verify
public XAEnvironment(File envHome, EnvironmentConfig configuration) throws EnvironmentNotFoundException, EnvironmentLockedException
envHome
- The database environment's home directory.configuration
- The database environment attributes. If null,
default attributes are used.EnvironmentNotFoundException
EnvironmentLockedException
public Transaction getXATransaction(Xid xid)
public void setXATransaction(Xid xid, Transaction txn)
public void commit(Xid xid, boolean ignore) throws XAException
commit
in interface XAResource
XAException
public void end(Xid xid, int flags) throws XAException
end
in interface XAResource
XAException
public void forget(Xid xid) throws XAException
forget
in interface XAResource
XAException
public boolean isSameRM(XAResource rm) throws XAException
isSameRM
in interface XAResource
XAException
public int prepare(Xid xid) throws XAException
prepare
in interface XAResource
XAException
public Xid[] recover(int flags) throws XAException
recover
in interface XAResource
XAException
public void rollback(Xid xid) throws XAException
rollback
in interface XAResource
XAException
public int getTransactionTimeout() throws XAException
getTransactionTimeout
in interface XAResource
XAException
public boolean setTransactionTimeout(int timeout)
setTransactionTimeout
in interface XAResource
public void start(Xid xid, int flags) throws XAException
start
in interface XAResource
XAException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.