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 |
|---|---|
java.lang.String |
getLockOwner()
Remote version of the
Lock.getLockOwner() method. |
java.lang.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, unexportObjectpublic ServerLock(Lock lock,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
lock - local lockjava.rmi.RemoteException - on RMI errorspublic RemoteNode getNode() throws java.rmi.RemoteException
Lock.getNode() method.getNode in interface RemoteLockjava.rmi.RemoteException - on RMI errorspublic java.lang.String getLockOwner()
throws java.rmi.RemoteException
Lock.getLockOwner() method.getLockOwner in interface RemoteLockjava.rmi.RemoteException - on RMI errorspublic boolean isDeep()
throws java.rmi.RemoteException
Lock.isDeep() method.isDeep in interface RemoteLocktrue if the lock is deep,
false otherwisejava.rmi.RemoteException - on RMI errorspublic java.lang.String getLockToken()
throws java.rmi.RemoteException
Lock.getLockToken() method.getLockToken in interface RemoteLockjava.rmi.RemoteException - on RMI errorspublic boolean isLive()
throws RepositoryException,
java.rmi.RemoteException
Lock.isLive() method.isLive in interface RemoteLocktrue if the lock is live,
false otherwiseRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorspublic void refresh()
throws RepositoryException,
java.rmi.RemoteException
Lock.refresh() method.refresh in interface RemoteLockRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorspublic boolean isSessionScoped()
throws java.rmi.RemoteException
javax.jcr.lock.Lock#isSessionScoped() () Lock.isSessionScoped()} method.isSessionScoped in interface RemoteLocktrue if the lock is live,
false otherwisejava.rmi.RemoteException - on RMI errorspublic long getSecondsRemaining()
throws RepositoryException,
java.rmi.RemoteException
javax.jcr.lock.Lock#getSecondsRemaining() () Lock.getSecondsRemaining()} method.getSecondsRemaining in interface RemoteLockRepositoryException - on repository errorsjava.rmi.RemoteException - on RMI errorspublic boolean isLockOwningSession()
throws java.rmi.RemoteException
javax.jcr.lock.Lock#isLockOwningSession() () Lock.isLockOwningSession()} method.isLockOwningSession in interface RemoteLockboolean.java.rmi.RemoteException - on RMI errors"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"