|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryLockMechanism
Exclusive lock on a repository home directory. This class encapsulates collective experience on how to acquire an exclusive lock on a given directory. The lock is expected to be exclusive both across process boundaries and within a single JVM.
| Method Summary | |
|---|---|
void |
acquire()
Lock the repository home. |
void |
init(String homeDir)
Initialize the instance for the given directory path. |
void |
release()
Releases repository lock. |
| Method Detail |
|---|
void init(String homeDir)
throws RepositoryException
acquire() method.
homeDir - directory path
RepositoryException - if the canonical path of the directory
can not be determined
void acquire()
throws RepositoryException
RepositoryException - if the repository lock can not be acquired
void release()
throws RepositoryException
RepositoryException - if the repository lock can not be released
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||