public class ServerLock extends ServerObject implements RemoteLock
Lock interface.
This class makes a local lock available as an RMI service using
the RemoteLock
interface.javax.jcr.lock.Lock,
RemoteLock,
Serialized Form| Constructor and Description |
|---|
ServerLock(Lock lock,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local lock.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLockOwner()
Remote version of the
Lock.getLockOwner() method. |
String |
getLockToken()
Remote version of the
Lock.getLockToken() method. |
RemoteNode |
getNode()
Remote version of the
Lock.getNode() method. |
long |
getSecondsRemaining()
Remote version of the
javax.jcr.lock.Lock#getSecondsRemaining() () Lock.getSecondsRemaining()} method. |
boolean |
isDeep()
Remote version of the
Lock.isDeep() method. |
boolean |
isLive()
Remote version of the
Lock.isLive() method. |
boolean |
isLockOwningSession()
Remote version of the
javax.jcr.lock.Lock#isLockOwningSession() () Lock.isLockOwningSession()} method. |
boolean |
isSessionScoped()
Remote version of the
javax.jcr.lock.Lock#isSessionScoped() () Lock.isSessionScoped()} method. |
void |
refresh()
Remote version of the
Lock.refresh() method. |
clone, 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
javax.jcr.lock.Lock#isSessionScoped() () Lock.isSessionScoped()} method.isSessionScoped in interface RemoteLocktrue if the lock is live,
false otherwiseRemoteException - on RMI errorspublic long getSecondsRemaining()
throws RepositoryException,
RemoteException
javax.jcr.lock.Lock#getSecondsRemaining() () Lock.getSecondsRemaining()} method.getSecondsRemaining in interface RemoteLockRepositoryException - on repository errorsRemoteException - on RMI errorspublic boolean isLockOwningSession()
throws RemoteException
javax.jcr.lock.Lock#isLockOwningSession() () Lock.isLockOwningSession()} method.isLockOwningSession in interface RemoteLockboolean.RemoteException - on RMI errors"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"