|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteLock
Remote version of the JCR Lock interface. Used by the
ServerLock and
ClientLock adapter classes to
provide transparent RMI access to remote locks.
The methods in this interface are documented only with a reference to a corresponding Lock method. The remote object will simply forward the method call to the underlying Lock instance. Return values and possible exceptions are copied over the network. RMI errors are signalled with RemoteExceptions.
Lock,
ClientLock,
ServerLock| Method Summary | |
|---|---|
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. |
boolean |
isDeep()
Remote version of the Lock.isDeep() method. |
boolean |
isLive()
Remote version of the Lock.isLive() method. |
boolean |
isSessionScoped()
Remote version of the Lock.isSessionScoped() () Lock.isSessionScoped()}
method. |
void |
refresh()
Remote version of the Lock.refresh() method. |
| Method Detail |
|---|
java.lang.String getLockOwner()
throws java.rmi.RemoteException
Lock.getLockOwner() method.
java.rmi.RemoteException - on RMI errors
boolean isDeep()
throws java.rmi.RemoteException
Lock.isDeep() method.
true if the lock is deep, false otherwise
java.rmi.RemoteException - on RMI errors
java.lang.String getLockToken()
throws java.rmi.RemoteException
Lock.getLockToken() method.
java.rmi.RemoteException - on RMI errors
boolean isLive()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Lock.isLive() method.
true if the lock is live, false otherwise
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
void refresh()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Lock.refresh() method.
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
boolean isSessionScoped()
throws java.rmi.RemoteException
Lock.isSessionScoped() () Lock.isSessionScoped()}
method.
true if the lock is live, false otherwise
java.rmi.RemoteException - on RMI errors
RemoteNode getNode()
throws java.rmi.RemoteException
Lock.getNode() method. Returns the lock holding
node. Note that N.getLock().getNode() (where N is a locked node) will
only return N if N is the lock holder. If N is in the
subtree of the lock holder, H, then this call will return H.
Node.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||