|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exoplatform.services.jcr.rmi.impl.server.ServerObject
org.exoplatform.services.jcr.rmi.impl.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 Form| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
ServerLock(javax.jcr.lock.Lock lock,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local lock. |
|
| 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. |
| Methods inherited from class org.exoplatform.services.jcr.rmi.impl.server.ServerObject |
|---|
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException |
| 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(javax.jcr.lock.Lock lock,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
lock - local lock
java.rmi.RemoteException - on RMI errors| Method Detail |
|---|
public java.lang.String getLockOwner()
throws java.rmi.RemoteException
Lock.getLockOwner() method.
getLockOwner in interface RemoteLockjava.rmi.RemoteException - on RMI errors
public boolean isDeep()
throws java.rmi.RemoteException
Lock.isDeep() method.
isDeep in interface RemoteLocktrue if the lock is deep, false otherwise
java.rmi.RemoteException - on RMI errors
public java.lang.String getLockToken()
throws java.rmi.RemoteException
Lock.getLockToken() method.
getLockToken in interface RemoteLockjava.rmi.RemoteException - on RMI errors
public boolean isLive()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Lock.isLive() method.
isLive in interface RemoteLocktrue if the lock is live, false otherwise
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public void refresh()
throws javax.jcr.RepositoryException,
java.rmi.RemoteException
Lock.refresh() method.
refresh in interface RemoteLockjavax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors
public boolean isSessionScoped()
throws java.rmi.RemoteException
Lock.isSessionScoped() () Lock.isSessionScoped()}
method.
isSessionScoped in interface RemoteLocktrue if the lock is live, false otherwise
java.rmi.RemoteException - on RMI errors
public 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.
getNode in interface RemoteLockNode.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||