Package | Description |
---|---|
org.apache.commons.transaction.file |
Modifier and Type | Class and Description |
---|---|
class |
ResourceManagerSystemException
Signals an internal system error in a
ResourceManager . |
Modifier and Type | Method and Description |
---|---|
protected void |
FileResourceManager.assureNotMarkedForRollback(FileResourceManager.TransactionContext context) |
protected void |
VirtualAdminCommandsFileResourceManager.checkForVirtualAdminCommand(Object resourceId) |
void |
FileResourceManager.TransactionContext.cleanUp() |
void |
FileResourceManager.TransactionContext.commit() |
void |
ResourceManager.commitTransaction(Object txId)
Commis the transaction specified by the given transaction identifier.
|
void |
FileResourceManager.commitTransaction(Object txId) |
void |
VirtualAdminCommandsFileResourceManager.copyResource(Object txId,
Object fromResourceId,
Object toResourceId,
boolean overwrite) |
void |
FileResourceManager.copyResource(Object txId,
Object fromResourceId,
Object toResourceId,
boolean overwrite) |
boolean |
FileSequence.create(String sequenceName,
long initialValue)
Creates a sequence if it does not already exist.
|
void |
ResourceManager.createResource(Object txId,
Object resourceId)
Creates a resource.
|
void |
VirtualAdminCommandsFileResourceManager.createResource(Object txId,
Object resourceId) |
void |
FileResourceManager.createResource(Object txId,
Object resourceId) |
void |
ResourceManager.createResource(Object txId,
Object resourceId,
boolean assureOnly)
Creates a resource.
|
void |
VirtualAdminCommandsFileResourceManager.createResource(Object txId,
Object resourceId,
boolean assureOnly) |
void |
FileResourceManager.createResource(Object txId,
Object resourceId,
boolean assureOnly) |
void |
ResourceManager.deleteResource(Object txId,
Object resourceId)
Deletes a resource.
|
void |
VirtualAdminCommandsFileResourceManager.deleteResource(Object txId,
Object resourceId) |
void |
FileResourceManager.deleteResource(Object txId,
Object resourceId) |
void |
ResourceManager.deleteResource(Object txId,
Object resourceId,
boolean assureOnly)
Deletes a resource.
|
void |
VirtualAdminCommandsFileResourceManager.deleteResource(Object txId,
Object resourceId,
boolean assureOnly) |
void |
FileResourceManager.deleteResource(Object txId,
Object resourceId,
boolean assureOnly) |
protected void |
FileResourceManager.fileInitialSaneCheck(Object txId,
Object path) |
void |
FileResourceManager.TransactionContext.finalCleanUp() |
int |
ResourceManager.getDefaultIsolationLevel()
Gets the default isolation level as an integer.
|
long |
ResourceManager.getDefaultTransactionTimeout()
Gets the default transaction timeout in milliseconds.
|
int |
ResourceManager.getIsolationLevel(Object txId)
Gets the isolation level for the specified transaction.
|
int |
FileResourceManager.getIsolationLevel(Object txId) |
protected String |
FileResourceManager.getPathForRead(Object txId,
Object resourceId) |
protected String |
FileResourceManager.getPathForWrite(Object txId,
Object resourceId) |
protected int |
FileResourceManager.getSharedLockLevel(FileResourceManager.TransactionContext context) |
int[] |
ResourceManager.getSupportedIsolationLevels()
Gets an array of all isolation levels supported by this resource manager.
|
int[] |
FileResourceManager.getSupportedIsolationLevels() |
int |
ResourceManager.getTransactionState(Object txId)
Gets the state of the transaction specified by the given transaction identifier.
|
int |
FileResourceManager.getTransactionState(Object txId) |
long |
ResourceManager.getTransactionTimeout(Object txId)
Gets the transaction timeout of the specified transaction in milliseconds.
|
long |
FileResourceManager.getTransactionTimeout(Object txId) |
void |
FileResourceManager.TransactionContext.init() |
boolean |
ResourceManager.isIsolationLevelSupported(int level)
Tests if the specified isolation level is supported by this resource manager.
|
boolean |
FileResourceManager.isIsolationLevelSupported(int level) |
boolean |
ResourceManager.lockResource(Object resourceId,
Object txId)
Explicitly locks a resource exclusively, i.e.
|
boolean |
FileResourceManager.lockResource(Object resourceId,
Object txId) |
boolean |
ResourceManager.lockResource(Object resourceId,
Object txId,
boolean shared)
Explicitly locks a resource in reentrant style.
|
boolean |
FileResourceManager.lockResource(Object resourceId,
Object txId,
boolean shared) |
boolean |
ResourceManager.lockResource(Object resourceId,
Object txId,
boolean shared,
boolean wait,
long timeoutMSecs,
boolean reentrant)
Explicitly locks a resource.
|
boolean |
FileResourceManager.lockResource(Object resourceId,
Object txId,
boolean shared,
boolean wait,
long timeoutMSecs,
boolean reentrant) |
void |
ResourceManager.markTransactionForRollback(Object txId)
Marks the transaction specified by the given transaction identifier for rollback.
|
void |
FileResourceManager.markTransactionForRollback(Object txId) |
void |
VirtualAdminCommandsFileResourceManager.moveResource(Object txId,
Object fromResourceId,
Object toResourceId,
boolean overwrite) |
void |
FileResourceManager.moveResource(Object txId,
Object fromResourceId,
Object toResourceId,
boolean overwrite) |
long |
FileSequence.nextSequenceValueBottom(String sequenceName,
long increment)
Gets the next value of the sequence.
|
int |
ResourceManager.prepareTransaction(Object txId)
Prepares the transaction specified by the given transaction identifier for commit.
|
int |
FileResourceManager.prepareTransaction(Object txId) |
protected long |
FileSequence.read(String sequenceName) |
protected long |
FileSequence.readFromPath(String path) |
InputStream |
ResourceManager.readResource(Object resourceId)
Opens a streamable resource for a single reading request not inside the scope of a transaction.
|
InputStream |
VirtualAdminCommandsFileResourceManager.readResource(Object resourceId) |
InputStream |
FileResourceManager.readResource(Object resourceId) |
InputStream |
ResourceManager.readResource(Object txId,
Object resourceId)
Opens a streamable resource for reading.
|
InputStream |
VirtualAdminCommandsFileResourceManager.readResource(Object txId,
Object resourceId) |
InputStream |
FileResourceManager.readResource(Object txId,
Object resourceId) |
void |
FileResourceManager.TransactionContext.recoverState() |
boolean |
ResourceManager.resourceExists(Object resourceId)
Checks if a resource exists wihtout being in a transaction.
|
boolean |
VirtualAdminCommandsFileResourceManager.resourceExists(Object resourceId) |
boolean |
FileResourceManager.resourceExists(Object resourceId) |
boolean |
ResourceManager.resourceExists(Object txId,
Object resourceId)
Checks if a resource exists.
|
boolean |
VirtualAdminCommandsFileResourceManager.resourceExists(Object txId,
Object resourceId) |
boolean |
FileResourceManager.resourceExists(Object txId,
Object resourceId) |
void |
FileResourceManager.TransactionContext.rollback() |
void |
ResourceManager.rollbackTransaction(Object txId)
Rolls back the transaction specified by the given transaction identifier.
|
void |
FileResourceManager.rollbackTransaction(Object txId) |
void |
FileResourceManager.TransactionContext.saveState() |
void |
ResourceManager.setIsolationLevel(Object txId,
int level)
Sets the isolation level for the specified transaction.
|
void |
FileResourceManager.setIsolationLevel(Object txId,
int level) |
void |
ResourceManager.setTransactionTimeout(Object txId,
long mSecs)
Sets the transaction timeout of the specified transaction in milliseconds.
|
void |
FileResourceManager.setTransactionTimeout(Object txId,
long mSecs) |
void |
ResourceManager.startTransaction(Object txId)
Creates and starts a transaction using the specified transaction identifier.
|
void |
FileResourceManager.startTransaction(Object txId) |
protected FileResourceManager.TransactionContext |
FileResourceManager.txInitialSaneCheck(Object txId) |
protected FileResourceManager.TransactionContext |
FileResourceManager.txInitialSaneCheckForWriting(Object txId) |
protected boolean |
FileResourceManager.undoScheduledChangeOrCreate(Object txId,
Object resourceId) |
protected boolean |
FileResourceManager.undoScheduledDelete(Object txId,
Object resourceId) |
void |
FileResourceManager.TransactionContext.upgradeLockToCommit() |
protected void |
FileSequence.write(String sequenceName,
long value) |
OutputStream |
ResourceManager.writeResource(Object txId,
Object resourceId)
Opens a resource for writing.
|
OutputStream |
FileResourceManager.writeResource(Object txId,
Object resourceId) |
OutputStream |
VirtualAdminCommandsFileResourceManager.writeResource(Object txId,
Object resourceId,
boolean append) |
OutputStream |
FileResourceManager.writeResource(Object txId,
Object resourceId,
boolean append) |
protected void |
FileSequence.writeToPath(String path,
long value) |
Constructor and Description |
---|
FileResourceManager.TransactionContext(Object txId) |
FileSequence(String storeDir,
LoggerFacade logger)
Creates a new resouce manager operation on the specified directories.
|
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.