Remote adapter for the JCR Lock interface.
This class makes a local lock available as an RMI service using
the RemoteLock
interface.
@Deprecated public class ServerLock extends ServerObject implements RemoteLock
Lock,
RemoteLock,
Serialized Formref| Constructor and Description |
|---|
ServerLock(Lock lock,
RemoteAdapterFactory factory)
Deprecated.
Creates a remote adapter for the given local lock.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLockOwner()
Deprecated.
Remote version of the
Lock.getLockOwner() method. |
String |
getLockToken()
Deprecated.
Remote version of the
Lock.getLockToken() method. |
RemoteNode |
getNode()
Deprecated.
Remote version of the
Lock.getNode() method. |
long |
getSecondsRemaining()
Deprecated.
Remote version of the
Lock.getSecondsRemaining() () Lock.getSecondsRemaining()} method. |
boolean |
isDeep()
Deprecated.
Remote version of the
Lock.isDeep() method. |
boolean |
isLive()
Deprecated.
Remote version of the
Lock.isLive() method. |
boolean |
isLockOwningSession()
Deprecated.
Remote version of the
Lock.isLockOwningSession() () Lock.isLockOwningSession()} method. |
boolean |
isSessionScoped()
Deprecated.
Remote version of the
Lock.isSessionScoped() () Lock.isSessionScoped()} method. |
void |
refresh()
Deprecated.
Remote version of the
Lock.refresh() method. |
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValuesclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic ServerLock(Lock lock, RemoteAdapterFactory factory) throws RemoteException
lock - local lockRemoteException - on RMI errorspublic RemoteNode getNode() throws RemoteException
Lock.getNode() method.getNode in interface RemoteLockRemoteException - on RMI errorspublic String getLockOwner() throws RemoteException
Lock.getLockOwner() method.getLockOwner in interface RemoteLockRemoteException - on RMI errorspublic boolean isDeep()
throws RemoteException
Lock.isDeep() method.isDeep in interface RemoteLocktrue if the lock is deep,
false otherwiseRemoteException - on RMI errorspublic String getLockToken() throws RemoteException
Lock.getLockToken() method.getLockToken in interface RemoteLockRemoteException - on RMI errorspublic boolean isLive()
throws RepositoryException,
RemoteException
Lock.isLive() method.isLive in interface RemoteLocktrue if the lock is live,
false otherwiseRepositoryException - on repository errorsRemoteException - on RMI errorspublic void refresh()
throws RepositoryException,
RemoteException
Lock.refresh() method.refresh in interface RemoteLockRepositoryException - on repository errorsRemoteException - on RMI errorspublic boolean isSessionScoped()
throws RemoteException
Lock.isSessionScoped() () Lock.isSessionScoped()} method.isSessionScoped in interface RemoteLocktrue if the lock is live,
false otherwiseRemoteException - on RMI errorspublic long getSecondsRemaining()
throws RepositoryException,
RemoteException
Lock.getSecondsRemaining() () Lock.getSecondsRemaining()} method.getSecondsRemaining in interface RemoteLockRepositoryException - on repository errorsRemoteException - on RMI errorspublic boolean isLockOwningSession()
throws RemoteException
Lock.isLockOwningSession() () Lock.isLockOwningSession()} method.isLockOwningSession in interface RemoteLockboolean.RemoteException - on RMI errorsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.