Methods Summary |
---|
public void | addActiveLock(java.lang.Object manager)add a concurrency manager as active locks to the DLM
getActiveLocks().addElement(manager);
|
public void | addDeferredLock(java.lang.Object manager)add a concurrency manager as deferred locks to the DLM
getDeferredLocks().addElement(manager);
|
public void | decrementDepth()decrement the depth of the thread
threadDepth--;
|
public java.util.Vector | getActiveLocks()Return a set of the active locks from the DLM
return activeLocks;
|
public java.util.Vector | getDeferredLocks()Return a set of the deferred locks
return deferredLocks;
|
public int | getThreadDepth()Return the depth of the thread associated with the DLM, being used to release the lock
return threadDepth;
|
public boolean | hasDeferredLock()Return if there are any deferred locks.
return !getDeferredLocks().isEmpty();
|
public void | incrementDepth()increment the depth of the thread
threadDepth++;
|
public boolean | isThreadComplete()Return if the thread is complete
return isThreadComplete;
|
public void | releaseActiveLocksOnThread()Release the active lock on the DLM
Vector activeLocks = getActiveLocks();
if (!activeLocks.isEmpty()) {
for (Enumeration activeLocksEnum = activeLocks.elements();
activeLocksEnum.hasMoreElements();) {
ConcurrencyManager manager = (ConcurrencyManager)activeLocksEnum.nextElement();
manager.release();
}
}
setIsThreadComplete(true);
|
public void | setActiveLocks(java.util.Vector activeLocks)set a set of the active locks to the DLM
this.activeLocks = activeLocks;
|
public void | setDeferredLocks(java.util.Vector deferredLocks)set a set of the deferred locks to the DLM
this.deferredLocks = deferredLocks;
|
public void | setIsThreadComplete(boolean isThreadComplete)set if the thread is complete in the given DLM
this.isThreadComplete = isThreadComplete;
|