|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.main.DefaultJDBCLock
public class DefaultJDBCLock
Represents an exclusive lock on a database, used to avoid multiple Karaf instances attempting to become master.
Constructor Summary | |
---|---|
DefaultJDBCLock(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 DefaultJDBCLock(java.util.Properties props)
Method Detail |
---|
public boolean lock()
Lock
lock
in interface Lock
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 |