com.sleepycat.je
Class XAEnvironment

java.lang.Object
  extended by com.sleepycat.je.Environment
      extended by com.sleepycat.je.XAEnvironment
All Implemented Interfaces:
XAResource

public class XAEnvironment
extends Environment
implements XAResource

Javadoc for this public class is generated via the doc templates in the doc_src directory.


Field Summary
 
Fields inherited from class com.sleepycat.je.Environment
environmentImpl
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
XAEnvironment(File envHome, EnvironmentConfig configuration)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 
Method Summary
 void commit(Xid xid, boolean ignore)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void end(Xid xid, int flags)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void forget(Xid xid)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 int getTransactionTimeout()
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 Transaction getXATransaction(Xid xid)
          Used to get the Transaction object given an XA Xid.
 boolean isSameRM(XAResource rm)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 int prepare(Xid xid)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 Xid[] recover(int flags)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void rollback(Xid xid)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 boolean setTransactionTimeout(int timeout)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 void setXATransaction(Xid xid, Transaction txn)
          Used to set the Transaction object for an XA Xid.
 void start(Xid xid, int flags)
          Javadoc for this public method is generated via the doc templates in the doc_src directory.
 
Methods inherited from class com.sleepycat.je.Environment
addReferringHandle, addReferringHandle, beginTransaction, checkEnv, checkHandleIsValid, checkpoint, cleanLog, close, compress, evictMemory, getConfig, getDatabaseNames, getDefaultTxnConfig, getEnvironmentImpl, getHome, getLockStats, getMemoryUsage, getMutableConfig, getStats, getThreadTransaction, getTransactionStats, openDatabase, openSecondaryDatabase, removeDatabase, removeReferringHandle, removeReferringHandle, renameDatabase, setMutableConfig, setThreadTransaction, sync, truncateDatabase, upgrade, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAEnvironment

public XAEnvironment(File envHome,
                     EnvironmentConfig configuration)
              throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException
Method Detail

getXATransaction

public Transaction getXATransaction(Xid xid)
                             throws DatabaseException
Used to get the Transaction object given an XA Xid.

Throws:
DatabaseException

setXATransaction

public void setXATransaction(Xid xid,
                             Transaction txn)
                      throws DatabaseException
Used to set the Transaction object for an XA Xid. Public for tests.

Throws:
DatabaseException

commit

public void commit(Xid xid,
                   boolean ignore)
            throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
commit in interface XAResource
Throws:
XAException

end

public void end(Xid xid,
                int flags)
         throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
end in interface XAResource
Throws:
XAException

forget

public void forget(Xid xid)
            throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
forget in interface XAResource
Throws:
XAException

isSameRM

public boolean isSameRM(XAResource rm)
                 throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
isSameRM in interface XAResource
Throws:
XAException

prepare

public int prepare(Xid xid)
            throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
prepare in interface XAResource
Throws:
XAException

recover

public Xid[] recover(int flags)
              throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
recover in interface XAResource
Throws:
XAException

rollback

public void rollback(Xid xid)
              throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
rollback in interface XAResource
Throws:
XAException

getTransactionTimeout

public int getTransactionTimeout()
                          throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
getTransactionTimeout in interface XAResource
Throws:
XAException

setTransactionTimeout

public boolean setTransactionTimeout(int timeout)
                              throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
setTransactionTimeout in interface XAResource
Throws:
XAException

start

public void start(Xid xid,
                  int flags)
           throws XAException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Specified by:
start in interface XAResource
Throws:
XAException


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.