public class IsolationManager extends Object
IsolationManager class.
Modifier and Type | Class and Description |
---|---|
static class |
IsolationManager.EventType |
static class |
IsolationManager.OrderedReadWriteLockList |
Modifier | Constructor and Description |
---|---|
protected |
IsolationManager(int confNumLocks)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attachListener(PropertyChangeListener changeListener)
attachListener.
|
static IsolationManager |
factory(int confNumLocks)
Factory method.
|
Lock[] |
globalLocks()
Retrieve the 'global' locks
|
boolean |
isInsideIsolatedBlock()
isInsideIsolatedBlock.
|
void |
lock(Lock[] locksToUse)
This methods also handles the case where nested lock requests are made.
|
Object |
readMode(Object wrappee)
readMode.
|
Lock |
retrievePseudoLock(Object candidateObject) |
Lock[] |
retrievePseudoLocksSorted(Object[] candidateObjects) |
void |
unlock(Lock[] locksToUse) |
Object |
writeMode(Object wrappee)
writeMode.
|
protected IsolationManager(int confNumLocks)
confNumLocks
- The granularity control for the number of representative locks to use.public static IsolationManager factory(int confNumLocks)
confNumLocks
- The granularity control for the number of representative locks to use.public final void attachListener(PropertyChangeListener changeListener)
attachListener.
changeListener
- The listener to attach to the future. The listener may be synchronously triggered.public final boolean isInsideIsolatedBlock()
isInsideIsolatedBlock.
public final Lock[] globalLocks()
public final void lock(Lock[] locksToUse)
locksToUse
- The candidate locks to usepublic final void unlock(Lock[] locksToUse)
locksToUse
- The candidate locks to usepublic Lock retrievePseudoLock(Object candidateObject)
candidateObject
- The candidate objectpublic Lock[] retrievePseudoLocksSorted(Object[] candidateObjects)
candidateObjects
- The set of candidate objectsCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.