|
||||||||||
| 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 java.lang.Exception
Lock
lock in interface Lockjava.lang.Exception
public void release()
throws java.lang.Exception
Lock
release in interface Lockjava.lang.Exception
public boolean isAlive()
throws java.lang.Exception
Lock
isAlive in interface Lockjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||