|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.odmg.locking.RemoteLockMapImpl
Servlet based lock mechanism for usage in distributed environment.
| Constructor Summary | |
RemoteLockMapImpl()
|
|
| Method Summary | |
boolean |
addReader(TransactionImpl tx,
java.lang.Object obj)
Add a reader lock entry for transaction tx on object obj to the persistent storage. |
void |
configure(Configuration pConfig)
configure an object using the Configuration pConfig |
java.util.Collection |
getReaders(java.lang.Object obj)
returns a collection of Reader LockEntries for object obj. |
LockEntry |
getWriter(java.lang.Object obj)
returns the LockEntry for the Writer of object obj. |
boolean |
hasReadLock(TransactionImpl tx,
java.lang.Object obj)
check if there is a reader lock entry for transaction tx on object obj in the persistent storage. |
void |
removeReader(TransactionImpl tx,
java.lang.Object obj)
remove a reader lock entry for transaction tx on object obj from the persistent storage. |
void |
removeWriter(LockEntry writer)
remove a writer lock entry for transaction tx on object obj from the persistent storage. |
byte[] |
serialize(java.lang.Object obj)
|
boolean |
setWriter(TransactionImpl tx,
java.lang.Object obj)
generate a writer lock entry for transaction tx on object obj and write it to the persistent storage. |
boolean |
upgradeLock(LockEntry reader)
upgrade a reader lock entry for transaction tx on object obj and write it to the persistent storage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RemoteLockMapImpl()
| Method Detail |
public LockEntry getWriter(java.lang.Object obj)
getWriter in interface LockMappublic java.util.Collection getReaders(java.lang.Object obj)
getReaders in interface LockMap
public boolean addReader(TransactionImpl tx,
java.lang.Object obj)
addReader in interface LockMap
public byte[] serialize(java.lang.Object obj)
throws java.io.IOException
java.io.IOException
public void removeReader(TransactionImpl tx,
java.lang.Object obj)
removeReader in interface LockMappublic void removeWriter(LockEntry writer)
removeWriter in interface LockMappublic boolean upgradeLock(LockEntry reader)
upgradeLock in interface LockMap
public boolean setWriter(TransactionImpl tx,
java.lang.Object obj)
setWriter in interface LockMap
public boolean hasReadLock(TransactionImpl tx,
java.lang.Object obj)
hasReadLock in interface LockMap
public void configure(Configuration pConfig)
throws ConfigurationException
Configurable
configure in interface ConfigurablepConfig - the Configuration object used to configure current instance
ConfigurationExceptionConfigurable.configure(org.apache.ojb.broker.util.configuration.Configuration)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||