Package org.apache.jackrabbit.rmi.remote
Interface RemoteLock
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ServerLock
@Deprecated public interface RemoteLock extends Remote
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Lockinterface. Used by theServerLockandClientLockadapter 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 signaled with RemoteExceptions.
- See Also:
Lock,ClientLock,ServerLock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetLockOwner()Deprecated.Remote version of theLock.getLockOwner()method.StringgetLockToken()Deprecated.Remote version of theLock.getLockToken()method.RemoteNodegetNode()Deprecated.Remote version of theLock.getNode()method.longgetSecondsRemaining()Deprecated.Remote version of theLock.getSecondsRemaining()() Lock.getSecondsRemaining()} method.booleanisDeep()Deprecated.Remote version of theLock.isDeep()method.booleanisLive()Deprecated.Remote version of theLock.isLive()method.booleanisLockOwningSession()Deprecated.Remote version of theLock.isLockOwningSession()() Lock.isLockOwningSession()} method.booleanisSessionScoped()Deprecated.Remote version of theLock.isSessionScoped()() Lock.isSessionScoped()} method.voidrefresh()Deprecated.Remote version of theLock.refresh()method.
-
-
-
Method Detail
-
getNode
RemoteNode getNode() throws RepositoryException, RemoteException
Deprecated.Remote version of theLock.getNode()method.- Returns:
- remote node
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- Since:
- JCR-RMI 2.0
-
getLockOwner
String getLockOwner() throws RemoteException
Deprecated.Remote version of theLock.getLockOwner()method.- Returns:
- lock owner
- Throws:
RemoteException- on RMI errors
-
isDeep
boolean isDeep() throws RemoteExceptionDeprecated.Remote version of theLock.isDeep()method.- Returns:
trueif the lock is deep,falseotherwise- Throws:
RemoteException- on RMI errors
-
getLockToken
String getLockToken() throws RemoteException
Deprecated.Remote version of theLock.getLockToken()method.- Returns:
- lock token
- Throws:
RemoteException- on RMI errors
-
isLive
boolean isLive() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.isLive()method.- Returns:
trueif the lock is live,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
refresh
void refresh() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.refresh()method.- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isSessionScoped
boolean isSessionScoped() throws RemoteExceptionDeprecated.Remote version of theLock.isSessionScoped()() Lock.isSessionScoped()} method.- Returns:
trueif the lock is live,falseotherwise- Throws:
RemoteException- on RMI errors
-
getSecondsRemaining
long getSecondsRemaining() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.getSecondsRemaining()() Lock.getSecondsRemaining()} method.- Returns:
- the number of seconds remaining until this lock times out.
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isLockOwningSession
boolean isLockOwningSession() throws RemoteExceptionDeprecated.Remote version of theLock.isLockOwningSession()() Lock.isLockOwningSession()} method.- Returns:
- a
boolean. - Throws:
RemoteException- on RMI errors
-
-