|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.record.graph.LockInfo
public class LockInfo
Information about a lock.
| Field Summary | |
|---|---|
(package private) java.lang.String |
_description
Description of this lock. |
(package private) java.lang.Long |
_owningThreadId
Unique id of thread that owns this lock. |
(package private) long |
_uniqueId
Unique id of this object. |
(package private) java.util.Set<java.lang.Long> |
_waitingThreadIds
Set of unique ids of the threads that wait for this lock. |
| Constructor Summary | |
|---|---|
LockInfo(java.lang.Long uniqueId,
java.lang.String description,
long owningThreadId,
java.util.Set<java.lang.Long> waitingThreadIds)
Constructor for lock information. |
|
LockInfo(com.sun.jdi.ObjectReference objRef)
Constructor for lock information. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the description. |
java.lang.Long |
getOwningThreadId()
Returns the unique id of the owning thread, or null if not owned. |
long |
getUniqueId()
Returns the unique id. |
java.util.Set<java.lang.Long> |
getWaitingThreadIds()
Returns a list of unique ids of the threads waiting for this lock |
void |
setOwningThreadId(java.lang.Long owningThreadId)
Sets the unique id of the owning thread, or null if not owned. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
long _uniqueId
java.lang.String _description
java.lang.Long _owningThreadId
java.util.Set<java.lang.Long> _waitingThreadIds
| Constructor Detail |
|---|
public LockInfo(java.lang.Long uniqueId,
java.lang.String description,
long owningThreadId,
java.util.Set<java.lang.Long> waitingThreadIds)
uniqueId - lock's unique iddescription - description of the lockowningThreadId - unique id of thread owning this lockwaitingThreadIds - set of unique ids of the threads waiting for this lockpublic LockInfo(com.sun.jdi.ObjectReference objRef)
objRef - ObjectReference for lock| Method Detail |
|---|
public long getUniqueId()
public java.lang.Long getOwningThreadId()
public void setOwningThreadId(java.lang.Long owningThreadId)
owningThreadId - owning thread id, or null if not ownedpublic java.util.Set<java.lang.Long> getWaitingThreadIds()
public java.lang.String getDescription()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||