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
ServerLockManager
public ServerLockManager(LockManager manager,
RemoteAdapterFactory factory)
throws RemoteException
- Throws:
RemoteException
getLockTokens
public String[] getLockTokens()
throws RepositoryException
- Specified by:
getLockTokens
in interface RemoteLockManager
- Throws:
RepositoryException
addLockToken
public void addLockToken(String lockToken)
throws RepositoryException
- Specified by:
addLockToken
in interface RemoteLockManager
- Throws:
RepositoryException
removeLockToken
public void removeLockToken(String lockToken)
throws RepositoryException
- Specified by:
removeLockToken
in interface RemoteLockManager
- Throws:
RepositoryException
isLocked
public boolean isLocked(String absPath)
throws RepositoryException
- Specified by:
isLocked
in interface RemoteLockManager
- Throws:
RepositoryException
holdsLock
public boolean holdsLock(String absPath)
throws RepositoryException
- Specified by:
holdsLock
in interface RemoteLockManager
- Throws:
RepositoryException
getLock
public RemoteLock getLock(String absPath)
throws RepositoryException,
RemoteException
- Specified by:
getLock
in interface RemoteLockManager
- Throws:
RepositoryException
RemoteException
lock
public RemoteLock lock(String absPath,
boolean isDeep,
boolean isSessionScoped,
long timeoutHint,
String ownerInfo)
throws RepositoryException,
RemoteException
- Specified by:
lock
in interface RemoteLockManager
- Throws:
RepositoryException
RemoteException
unlock
public void unlock(String absPath)
throws RepositoryException
- Specified by:
unlock
in interface RemoteLockManager
- Throws:
RepositoryException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.