| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | lockAttributes(int
use the bits in this int to decide if the user is
interested in this kind of lockable object. The bits are defined in
VirtualLockTable. For instance, the user may only ask
for TABLE_AND_ROWLOCK and if this is not a table or row lock, then
don't participate. flag, Hashtable<String, Object> if this decides to participate, put all relevant
attributes into the Hashtable. The complete list of interesting
attributes is listed in VirtualLockTable.
The following attributes must be present for all participating
lockables:
VirtualLockTable.LOCKNAME,
VirtualLockTable.LOCKTYPE,
either VirtualLockTable.CONTAINERID or VirtualLockTable.CONGLOMID,
attributes)MT - this routine must be MP safe, caller will not be single threading the lock manager. Implements org. This lockable want to participate in the Virtual LockTable when we want to print LATCH information. |
| public boolean | lockerAlwaysCompatible()
Implements org. Returns true if any lock request on a Lockable L in a compatibility space CS1 is compatible with any other lock held on L in CS1. |
| public void | lockEvent(Latch
Latch descriptor lockInfo)Implements org. Note the fact the object is locked. |
| public boolean | requestCompatible(Object
The desired qualifier requestedQualifier, Object The already granted qualifier grantedQualifier)Implements org. Return true if the requested qualifier is compatible with the already granted qualifier. |
| public void | unlockEvent(Latch
Latch descriptor lockInfo)Implements org. Note that the object has been unlocked Must only be called by the lock manager. |
| ShExLockable | back to summary |
|---|---|
| public ShExLockable() | |
| lockAttributes | back to summary |
|---|---|
| public boolean lockAttributes(int flag, Hashtable<String, Object> attributes) Implements org. This lockable want to participate in the Virtual LockTable when we want to print LATCH information. Any lockable object which DOES NOT want to participate should override this function.
| |
| lockerAlwaysCompatible | back to summary |
|---|---|
| public boolean lockerAlwaysCompatible() Implements org. Doc from org. Returns true if any lock request on a Lockable L in a compatibility space CS1 is compatible with any other lock held on L in CS1.
| |
| lockEvent | back to summary |
|---|---|
| public void lockEvent(Latch lockInfo) Implements org. Doc from org. Note the fact the object is locked. Performs required actions to ensure that unlockEvent() work correctly. This method does not actually perform any locking of the object, the locking mechanism is provided by the lock manager. If the class supports multiple lockers of the object then this method will be called once per locker, each with their own qualifier. Must only be called by the lock manager. Synchronization will be handled by the lock manager.
| |
| requestCompatible | back to summary |
|---|---|
| public boolean requestCompatible(Object requestedQualifier, Object grantedQualifier) Implements org. Doc from org. Return true if the requested qualifier is compatible with the already granted qualifier.
| |
| unlockEvent | back to summary |
|---|---|
| public void unlockEvent(Latch lockInfo) Implements org. Doc from org. Note that the object has been unlocked Must only be called by the lock manager. Synchronization will be handled by the lock manager.
| |