|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class ServerLock
Remote adapter for the JCR Lock
interface.
This class makes a local lock available as an RMI service using
the RemoteLock
interface.
Lock
,
RemoteLock
,
Serialized FormField Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
ServerLock(Lock lock,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local lock. |
Method Summary | |
---|---|
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. |
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. |
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 |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerLock(Lock lock, RemoteAdapterFactory factory) throws RemoteException
lock
- local lock
RemoteException
- on RMI errorsMethod Detail |
---|
public RemoteNode getNode() throws RemoteException
Lock.getNode()
method.
getNode
in interface RemoteLock
RemoteException
- on RMI errorspublic String getLockOwner() throws RemoteException
Lock.getLockOwner()
method.
getLockOwner
in interface RemoteLock
RemoteException
- on RMI errorspublic boolean isDeep() throws RemoteException
Lock.isDeep()
method.
isDeep
in interface RemoteLock
true
if the lock is deep,
false
otherwise
RemoteException
- on RMI errorspublic String getLockToken() throws RemoteException
Lock.getLockToken()
method.
getLockToken
in interface RemoteLock
RemoteException
- on RMI errorspublic boolean isLive() throws RepositoryException, RemoteException
Lock.isLive()
method.
isLive
in interface RemoteLock
true
if the lock is live,
false
otherwise
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic void refresh() throws RepositoryException, RemoteException
Lock.refresh()
method.
refresh
in interface RemoteLock
RepositoryException
- on repository errors
RemoteException
- on RMI errorspublic boolean isSessionScoped() throws RemoteException
Lock.isSessionScoped()
() Lock.isSessionScoped()} method.
isSessionScoped
in interface RemoteLock
true
if the lock is live,
false
otherwise
RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |