java.lang.Object
de.grogra.util.LockableImpl
de.grogra.persistence.PersistenceManager
- All Implemented Interfaces:
Lockable
- Direct Known Subclasses:
GraphManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.util.Lockable
Lockable.DeadLockException
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
abstract int
allocateBitMark
(boolean resetOnDispose) abstract int
allocateObjectMark
(boolean resetOnDispose) protected void
void
close()
protected void
completeTransaction
(Transaction t, boolean commit) protected abstract Transaction
createTransaction
(Thread thread) protected abstract TransactionApplier
abstract void
disposeBitMark
(int handle, boolean resetAll) abstract void
disposeObjectMark
(int handle, boolean resetAll) final Transaction
final PersistenceBindings
final PersistenceConnection
final short
getId()
final LogStore
getLog()
abstract PersistenceCapable
getObject
(long id) int
getStamp()
final Transaction
getTransaction
(boolean create) final Transaction.Data
final void
getTransactions
(List<? super Transaction> list) protected final void
idUsed
(long id) void
initNonlocalTransactionNotifier
(Runnable notifier) final void
localTransactionCommitted
(Transaction.Key key, long stamp) final void
localTransactionRolledBack
(Transaction.Key key, long stamp) final void
makePersistent
(PersistenceCapable o, long id, Transaction t) final void
makePersistent
(Object o, Transaction t) protected abstract void
makePersistentImpl
(PersistenceCapable o, long id, Transaction t) final void
protected abstract void
protected final long
nextId()
protected void
prepareCompletion
(Transaction t, boolean commit) abstract long
abstract void
final void
protected void
transactionApplied
(Transaction.Data xa, boolean rollback, Transaction t) final void
transactionCommitted
(Transaction.Data xa, long stamp) boolean
undo
(Transaction t) abstract void
Methods inherited from class de.grogra.util.LockableImpl
enterWriteLock, execute, execute, executeForcedly, executeForcedly, executeInAllowedThread, getMaxWaitingTime, getQueueLength, invokeRun, isAllowedThread, isLocked, killLock, leaveWriteLock, lock
-
Field Details
-
makeLock
-
-
Constructor Details
-
PersistenceManager
-
-
Method Details
-
initNonlocalTransactionNotifier
-
close
public void close() -
createXAApplier
-
createTransaction
-
getTransactions
-
getActiveTransaction
-
getTransaction
-
beginTransaction
-
prepareCompletion
-
completeTransaction
-
transactionCommitted
-
localTransactionCommitted
-
localTransactionRolledBack
-
getTransactionData
-
getLog
-
getConnection
-
getBindings
-
getId
public final short getId() -
addXAListener
-
removeXAListener
-
getStamp
public int getStamp() -
transactionApplied
-
makePersistent
-
prepareId
-
makePersistent
-
makeTransient
-
nextId
protected final long nextId() -
idUsed
protected final void idUsed(long id) -
makePersistentImpl
-
makeTransientImpl
-
getObject
-
writeExtent
- Throws:
IOException
-
readExtent
- Throws:
IOException
-
allocateBitMark
public abstract int allocateBitMark(boolean resetOnDispose) -
disposeBitMark
public abstract void disposeBitMark(int handle, boolean resetAll) -
allocateObjectMark
public abstract int allocateObjectMark(boolean resetOnDispose) -
disposeObjectMark
public abstract void disposeObjectMark(int handle, boolean resetAll) -
undo
- Throws:
IOException
-