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
@Deprecated(forRemoval=true) public class ServerLockManager extends ServerObject implements RemoteLockManager
Deprecated, for removal: This API element is subject to removal in a future version.- 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)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLockToken(String lockToken)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteLock
getLock(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getLockTokens()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
holdsLock(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isLocked(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteLock
lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)
Deprecated, for removal: This API element is subject to removal in a future version.void
removeLockToken(String lockToken)
Deprecated, for removal: This API element is subject to removal in a future version.void
unlock(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.-
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
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
RemoteException
-
-
Method Detail
-
getLockTokens
public String[] getLockTokens() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getLockTokens
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
addLockToken
public void addLockToken(String lockToken) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addLockToken
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
removeLockToken
public void removeLockToken(String lockToken) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeLockToken
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
isLocked
public boolean isLocked(String absPath) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isLocked
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
holdsLock
public boolean holdsLock(String absPath) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
holdsLock
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
getLock
public RemoteLock getLock(String absPath) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- 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
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
lock
in interfaceRemoteLockManager
- Throws:
RepositoryException
RemoteException
-
unlock
public void unlock(String absPath) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
unlock
in interfaceRemoteLockManager
- Throws:
RepositoryException
-
-