Package org.apache.commons.transaction.file

Examples of org.apache.commons.transaction.file.FileResourceManager

Caution:
The txId passed to many methods as an identifier for the transaction concerned will function as a key in a HashMap. Thus assure that equals and hashCode are both properly implemented and match each other. Caution: You will have to guarantee that no other process will access neither the store or the working dir concurrently to this FileResourceManager. Special Caution: Be very careful not to have two instances of FileResourceManager working in the same store and/or working dir. @version $Revision: 1.2 $

        if (urlEncodePathString != null) {
            urlEncodePath = "true".equals(urlEncodePathString);
        }

        rm =
            new FileResourceManager(
                storeDir,
                workDir,
                urlEncodePath,
                new TxLogger(getLogger(), FileResourceManager.class.getName()),
                debug);
View Full Code Here


     */
    @Override
    protected FileResourceManager createInstance()
        throws Exception
    {
        FileResourceManager fileResourceManager =
            new FileResourceManager( storeDir.getAbsolutePath(), workDir.getAbsolutePath(),
                                     this.resourceIdToPathMapper, this.transactionIdToPathMapper, loggerFacade,
                                     loggerFacade.isFineEnabled() );

        return fileResourceManager;
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.transaction.file.FileResourceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.