|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.distributed.api.Lock
Class to implement Mutual Exclusion or Lock
Method Summary | |
boolean |
isLockAvailable()
Method to see if Lock is available |
boolean |
receiveOkay()
Method to take action when OK is received |
void |
receiveRequest(int hispid,
int hists)
Method to take action when a request is received |
void |
releaseLock()
Method to release a lock or Mutex |
void |
requestLock()
Method to request a Lock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isLockAvailable()
public boolean receiveOkay()
public void receiveRequest(int hispid, int hists)
hispid
- ID of requesting Processhists
- Timestamp of the requestpublic void releaseLock()
public void requestLock()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |