Package org.jgroups.protocols
Class Locking.ClientLockTable
- java.lang.Object
-
- org.jgroups.protocols.Locking.ClientLockTable
-
- Enclosing class:
- Locking
protected class Locking.ClientLockTable extends java.lang.Object
Manages access to client locks
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Locking.ClientLock>
pending_release_reqs
protected java.util.concurrent.ConcurrentMap<java.lang.String,java.util.Map<Owner,Locking.ClientLock>>
table
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClientLockTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToPendingReleaseRequests(Locking.ClientLock cl)
protected Locking.ClientLock
getLock(java.lang.String name, Owner owner, boolean create_if_absent)
protected java.util.List<Tuple<java.lang.String,Owner>>
getLockInfo()
Returns locks that have been successfully acquiredprotected java.util.List<Locking.Request>
getPendingRequests(Address sender)
protected int
numLocks()
java.lang.String
printLocks()
protected boolean
removeClientLock(java.lang.String lock_name, Owner owner)
void
removeFromPendingReleaseRequests(Locking.ClientLock cl)
protected void
resendPendingLockRequests()
java.lang.String
toString()
protected void
unlockAll()
protected void
unlockForce(java.lang.String lock_name)
protected java.util.Collection<java.util.Map<Owner,Locking.ClientLock>>
values()
-
-
-
Field Detail
-
table
protected final java.util.concurrent.ConcurrentMap<java.lang.String,java.util.Map<Owner,Locking.ClientLock>> table
-
pending_release_reqs
protected final java.util.Set<Locking.ClientLock> pending_release_reqs
-
-
Method Detail
-
numLocks
protected int numLocks()
-
getLock
protected Locking.ClientLock getLock(java.lang.String name, Owner owner, boolean create_if_absent)
-
removeClientLock
protected boolean removeClientLock(java.lang.String lock_name, Owner owner)
-
unlockAll
protected void unlockAll()
-
unlockForce
protected void unlockForce(java.lang.String lock_name)
-
resendPendingLockRequests
protected void resendPendingLockRequests()
-
values
protected java.util.Collection<java.util.Map<Owner,Locking.ClientLock>> values()
-
getLockInfo
protected java.util.List<Tuple<java.lang.String,Owner>> getLockInfo()
Returns locks that have been successfully acquired
-
getPendingRequests
protected java.util.List<Locking.Request> getPendingRequests(Address sender)
-
printLocks
public java.lang.String printLocks()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
addToPendingReleaseRequests
public void addToPendingReleaseRequests(Locking.ClientLock cl)
-
removeFromPendingReleaseRequests
public void removeFromPendingReleaseRequests(Locking.ClientLock cl)
-
-