Package org.apache.jackrabbit.rmi.server
Class ServerLockManager
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerLockManager
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteLockManager
public class ServerLockManager extends ServerObject implements RemoteLockManager
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerLockManager(LockManager manager, RemoteAdapterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLockToken(String lockToken)
RemoteLock
getLock(String absPath)
String[]
getLockTokens()
boolean
holdsLock(String absPath)
boolean
isLocked(String absPath)
RemoteLock
lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)
void
removeLockToken(String lockToken)
void
unlock(String absPath)
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerLockManager
public ServerLockManager(LockManager manager, RemoteAdapterFactory factory) throws RemoteException
- Throws:
RemoteException
-
-
Method Detail
-
getLockTokens
public String[] getLockTokens() throws RepositoryException
- Specified by:
getLockTokens
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
addLockToken
public void addLockToken(String lockToken) throws RepositoryException
- Specified by:
addLockToken
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
removeLockToken
public void removeLockToken(String lockToken) throws RepositoryException
- Specified by:
removeLockToken
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
isLocked
public boolean isLocked(String absPath) throws RepositoryException
- Specified by:
isLocked
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
holdsLock
public boolean holdsLock(String absPath) throws RepositoryException
- Specified by:
holdsLock
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
getLock
public RemoteLock getLock(String absPath) throws RepositoryException, RemoteException
- Specified by:
getLock
in interfaceRemoteLockManager
- Throws:
RepositoryException
RemoteException
-
lock
public RemoteLock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException, RemoteException
- Specified by:
lock
in interfaceRemoteLockManager
- Throws:
RepositoryException
RemoteException
-
unlock
public void unlock(String absPath) throws RepositoryException
- Specified by:
unlock
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
-