public class ServerLockManager extends ServerObject implements RemoteLockManager
ref| Constructor and Description |
|---|
ServerLockManager(LockManager manager,
RemoteAdapterFactory factory) |
| Modifier and Type | Method and 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) |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic ServerLockManager(LockManager manager, RemoteAdapterFactory factory) throws RemoteException
RemoteExceptionpublic String[] getLockTokens() throws RepositoryException
getLockTokens in interface RemoteLockManagerRepositoryExceptionpublic void addLockToken(String lockToken) throws RepositoryException
addLockToken in interface RemoteLockManagerRepositoryExceptionpublic void removeLockToken(String lockToken) throws RepositoryException
removeLockToken in interface RemoteLockManagerRepositoryExceptionpublic boolean isLocked(String absPath) throws RepositoryException
isLocked in interface RemoteLockManagerRepositoryExceptionpublic boolean holdsLock(String absPath) throws RepositoryException
holdsLock in interface RemoteLockManagerRepositoryExceptionpublic RemoteLock getLock(String absPath) throws RepositoryException, RemoteException
getLock in interface RemoteLockManagerRepositoryExceptionRemoteExceptionpublic RemoteLock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException, RemoteException
lock in interface RemoteLockManagerRepositoryExceptionRemoteExceptionpublic void unlock(String absPath) throws RepositoryException
unlock in interface RemoteLockManagerRepositoryExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.