public abstract class AlfrescoTxDiskDriver extends AlfrescoDiskDriver implements TransactionalFilesystemInterface
Provides common code to the Alfresco filesystem implementations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AlfrescoTxDiskDriver.CallableIO<V>
An extended
Callable that throws IOExceptions. |
protected static class |
AlfrescoTxDiskDriver.PropagatingException
A wrapper for checked exceptions to be passed through the retrying transaction handler.
|
ioControlHandler, m_transactionService| Constructor and Description |
|---|
AlfrescoTxDiskDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginReadTransaction(SrvSession sess)
Begin a read-only transaction
|
void |
beginWriteTransaction(SrvSession sess)
Begin a writeable transaction
|
<T> T |
doInWriteTransaction(SrvSession sess,
AlfrescoTxDiskDriver.CallableIO<T> callback)
Perform a retryable operation in a write transaction
|
void |
endTransaction(SrvSession sess,
Object tx)
End an active transaction
|
getIoControlHandler, getServiceRegistry, getTransactionService, processIOControl, registerContext, setIoControlHandler, setServiceRegistry, setTransactionServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseFile, createDirectory, createFile, deleteDirectory, deleteFile, fileExists, flushFile, getFileInformation, isReadOnly, openFile, readFile, renameFile, seekFile, setFileInformation, startSearch, truncateFile, writeFilecreateContext, treeClosed, treeOpenedpublic void beginReadTransaction(SrvSession sess)
beginReadTransaction in interface TransactionalFilesystemInterfacesess - SrvSessionpublic void beginWriteTransaction(SrvSession sess)
beginWriteTransaction in interface TransactionalFilesystemInterfacesess - SrvSessionpublic <T> T doInWriteTransaction(SrvSession sess, AlfrescoTxDiskDriver.CallableIO<T> callback) throws IOException
WARNING : side effect - that the current transaction, if any, is ended.
sess - the server sessioncallback - callback for the retryable operationExceptionIOExceptionpublic void endTransaction(SrvSession sess, Object tx)
endTransaction in interface TransactionalFilesystemInterfacesess - SrvSessiontx - ObjectCopyright © 2005–2014 Alfresco Software. All rights reserved.