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, getSerialValues
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public ServerLockManager(LockManager manager, RemoteAdapterFactory factory) throws RemoteException
RemoteException
public String[] getLockTokens() throws RepositoryException
getLockTokens
in interface RemoteLockManager
RepositoryException
public void addLockToken(String lockToken) throws RepositoryException
addLockToken
in interface RemoteLockManager
RepositoryException
public void removeLockToken(String lockToken) throws RepositoryException
removeLockToken
in interface RemoteLockManager
RepositoryException
public boolean isLocked(String absPath) throws RepositoryException
isLocked
in interface RemoteLockManager
RepositoryException
public boolean holdsLock(String absPath) throws RepositoryException
holdsLock
in interface RemoteLockManager
RepositoryException
public RemoteLock getLock(String absPath) throws RepositoryException, RemoteException
getLock
in interface RemoteLockManager
RepositoryException
RemoteException
public RemoteLock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo) throws RepositoryException, RemoteException
lock
in interface RemoteLockManager
RepositoryException
RemoteException
public void unlock(String absPath) throws RepositoryException
unlock
in interface RemoteLockManager
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.