List of usage examples for org.apache.commons.transaction.file FileResourceManager getStoreDir
public String getStoreDir()
From source file:com.anrisoftware.globalpom.fileresourcemanager.ResourceSaver.java
private void stopManager(FileResourceManager manager) throws FileResourceException { try {/*from w w w. ja va 2 s . co m*/ manager.stop(SHUTDOWN_MODE_NORMAL); } catch (ResourceManagerSystemException e) { throw log.errorStopManager(e, manager.getStoreDir()); } }
From source file:org.jboss.jbossts.fileio.xalib.txdirs.dir.XAFileResourceManager.java
/** * Constructor to create Resource Manager objects. Each of these * objects, at transaction time, are informed by the Transaction * Manager to prepare, commit or rollback (depending on the outcome * of the 2PC protocol)./*from w w w . ja v a 2 s. c om*/ * * @param freMngr the Resource Manager on which methods like start, commit * or rollback a transaction will be applied * @param curTxId the unique transaction id used by <code>freMngr</code> to * know on which transaction to work */ public XAFileResourceManager(FileResourceManager freMngr, String curTxId) { this.freMngr = freMngr; this.curTxId = curTxId; storeDir = freMngr.getStoreDir(); recovers = false; }