|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosConcurrencyControl.TransactionalLockSetPOA
org.openorb.ccs.kernel.TransactionalLockSet
public class TransactionalLockSet
This class provides operations to acquire and release locks on behalf a specific transaction Each transaction lock set will be related to the coordinator of a transaction
Constructor Summary | |
---|---|
TransactionalLockSet()
|
Method Summary | |
---|---|
void |
change_mode(org.omg.CosTransactions.Coordinator current,
lock_mode held_mode,
lock_mode new_mode)
Changes the mode of a single lock for a specific transaction. |
LockCoordinator |
get_coordinator(org.omg.CosTransactions.Coordinator which)
returns the lock coordinator associated with the specified transaction |
boolean |
isLockable(lock_mode mode)
return whether the current lock mode permits the required lock mode |
void |
lock(org.omg.CosTransactions.Coordinator current,
lock_mode mode)
Acquires a lock in the specified mode for a specific transaction |
void |
setRelatedLockSet(TransactionalLockSet relatedLockSet)
sets the related lock set |
void |
storeRolledBackedTransactions(org.omg.CosTransactions.Coordinator current)
stores the rolledBacked transactions, since they cannot be locked again |
boolean |
try_lock(org.omg.CosTransactions.Coordinator current,
lock_mode mode)
Attempts to acquire a lock on the specified lock set for a specific transaction. |
void |
unlock(org.omg.CosTransactions.Coordinator current,
lock_mode mode)
Drops a single lock on the specified lock set in the specified mode for a specific transaction. |
void |
unlockAll(org.omg.CosTransactions.Coordinator current)
drop all locks held by the specified transaction |
Methods inherited from class org.omg.CosConcurrencyControl.TransactionalLockSetPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionalLockSet()
Method Detail |
---|
public void lock(org.omg.CosTransactions.Coordinator current, lock_mode mode)
current
- the reference to the coordinator of the transactionmode
- the specified modepublic boolean try_lock(org.omg.CosTransactions.Coordinator current, lock_mode mode)
current
- The reference to the coordinator of the transaction.mode
- The lock mode.
public void unlock(org.omg.CosTransactions.Coordinator current, lock_mode mode) throws LockNotHeld
current
- The reference to the coordinator of the transaction.mode
- The lock mode.
LockNotHeld
- If called on a
lock that is not held.public void change_mode(org.omg.CosTransactions.Coordinator current, lock_mode held_mode, lock_mode new_mode) throws LockNotHeld
current
- The reference to the coordinator of the transaction.held_mode
- The current held mode.new_mode
- The new mode.
LockNotHeld
- When no lock is held.public LockCoordinator get_coordinator(org.omg.CosTransactions.Coordinator which)
which
- the reference to the coordinator of the transaction
public void unlockAll(org.omg.CosTransactions.Coordinator current)
current
- the reference to the coordinator of the transactionpublic boolean isLockable(lock_mode mode)
mode
- the required lock mode
public void setRelatedLockSet(TransactionalLockSet relatedLockSet)
relatedLockSet
- the related lock setpublic void storeRolledBackedTransactions(org.omg.CosTransactions.Coordinator current)
current
- the reference to the coordinator of the transaction
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |