|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.core.RepositoryLocker
public class RepositoryLocker
Interface for remote manipulations with lock on SOFA repository servlet. See
SofaServlet
.
Field Summary | |
---|---|
static int |
DEFAULT_LOCK_TIMEOUT
Default timeout for locking the repository in seconds. |
static int |
DEFAULT_SPIN_TIME
Default spin interval when acquiring a lock in milliseconds. |
Constructor Summary | |
---|---|
RepositoryLocker()
|
Method Summary | |
---|---|
static boolean |
isLocked(RepositoryConfiguration rc)
Returns the status of the lock on repository servlet. |
static boolean |
lock(RepositoryConfiguration rc)
Locks the lock on repository servlet. |
static boolean |
unlock(RepositoryConfiguration rc)
Unlocks the lock on repository servlet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_LOCK_TIMEOUT
public static int DEFAULT_SPIN_TIME
Constructor Detail |
---|
public RepositoryLocker()
Method Detail |
---|
public static boolean isLocked(RepositoryConfiguration rc) throws java.io.IOException
rc
- Configuration of the repository.
java.io.IOException
SofaServlet
,
lock(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
,
unlock(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
public static boolean lock(RepositoryConfiguration rc) throws java.io.IOException
rc
- Configuration of the repository.
java.io.IOException
SofaServlet
,
isLocked(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
,
unlock(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
public static boolean unlock(RepositoryConfiguration rc) throws java.io.IOException
rc
- Configuration of the repository.
java.io.IOException
SofaServlet
,
isLocked(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
,
lock(org.objectweb.dsrg.sofa.repository.model.RepositoryConfiguration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |