Package org.apache.jackrabbit.rmi.server
Class ServerLock
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerLock
-
- All Implemented Interfaces:
Serializable,Remote,RemoteLock
@Deprecated public class ServerLock extends ServerObject implements RemoteLock
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Lockinterface. This class makes a local lock available as an RMI service using theRemoteLockinterface.- See Also:
Lock,RemoteLock, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerLock(Lock lock, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local lock.
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerLock
public ServerLock(Lock lock, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local lock.- Parameters:
lock- local lock- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getNode
public RemoteNode getNode() throws RemoteException
Deprecated.Remote version of theLock.getNode()method.- Specified by:
getNodein interfaceRemoteLock- Returns:
- remote node
- Throws:
RemoteException- on RMI errors
-
getLockOwner
public String getLockOwner() throws RemoteException
Deprecated.Remote version of theLock.getLockOwner()method.- Specified by:
getLockOwnerin interfaceRemoteLock- Returns:
- lock owner
- Throws:
RemoteException- on RMI errors
-
isDeep
public boolean isDeep() throws RemoteExceptionDeprecated.Remote version of theLock.isDeep()method.- Specified by:
isDeepin interfaceRemoteLock- Returns:
trueif the lock is deep,falseotherwise- Throws:
RemoteException- on RMI errors
-
getLockToken
public String getLockToken() throws RemoteException
Deprecated.Remote version of theLock.getLockToken()method.- Specified by:
getLockTokenin interfaceRemoteLock- Returns:
- lock token
- Throws:
RemoteException- on RMI errors
-
isLive
public boolean isLive() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.isLive()method.- Specified by:
isLivein interfaceRemoteLock- Returns:
trueif the lock is live,falseotherwise- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
refresh
public void refresh() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.refresh()method.- Specified by:
refreshin interfaceRemoteLock- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isSessionScoped
public boolean isSessionScoped() throws RemoteExceptionDeprecated.Remote version of theLock.isSessionScoped()() Lock.isSessionScoped()} method.- Specified by:
isSessionScopedin interfaceRemoteLock- Returns:
trueif the lock is live,falseotherwise- Throws:
RemoteException- on RMI errors
-
getSecondsRemaining
public long getSecondsRemaining() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theLock.getSecondsRemaining()() Lock.getSecondsRemaining()} method.- Specified by:
getSecondsRemainingin interfaceRemoteLock- Returns:
- the number of seconds remaining until this lock times out.
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
isLockOwningSession
public boolean isLockOwningSession() throws RemoteExceptionDeprecated.Remote version of theLock.isLockOwningSession()() Lock.isLockOwningSession()} method.- Specified by:
isLockOwningSessionin interfaceRemoteLock- Returns:
- a
boolean. - Throws:
RemoteException- on RMI errors
-
-