|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.main.SimpleFileLock
public class SimpleFileLock
Constructor Summary | |
---|---|
SimpleFileLock(java.util.Properties props)
|
Method Summary | |
---|---|
boolean |
isAlive()
Indicates whether or not the lock still exists. |
boolean |
lock()
A KeepAlive function to maintain the lock. |
void |
release()
Terminate the lock connection safely. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFileLock(java.util.Properties props)
Method Detail |
---|
public boolean lock() throws Exception
Lock
lock
in interface Lock
Exception
public void release() throws Exception
Lock
release
in interface Lock
Exception
public boolean isAlive() throws Exception
Lock
isAlive
in interface Lock
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |