org.apache.jackrabbit.rmi.client
Class ClientLock

java.lang.Object
  extended byorg.apache.jackrabbit.rmi.client.ClientLock
All Implemented Interfaces:
Lock

public class ClientLock
extends Object
implements Lock

Local adapter for the JCR-RMI RemoteLock inteface. This class makes a remote lock locally available using the JCR Lock interface.

Author:
Jukka Zitting
See Also:
Lock, RemoteLock

Constructor Summary
ClientLock(Node node, RemoteLock remote)
          Creates a local adapter for the given remote lock.
 
Method Summary
 String getLockOwner()
          
 String getLockToken()
          
 Node getNode()
          Returns the owning node without contacting the remote lock.
 boolean isDeep()
          
 boolean isLive()
          
 boolean isSessionScoped()
          
 void refresh()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLock

public ClientLock(Node node,
                  RemoteLock remote)
Creates a local adapter for the given remote lock.

Parameters:
node - current node
remote - remote lock
Method Detail

getNode

public Node getNode()
Returns the owning node without contacting the remote lock.

Specified by:
getNode in interface Lock

getLockOwner

public String getLockOwner()

Specified by:
getLockOwner in interface Lock

isDeep

public boolean isDeep()

Specified by:
isDeep in interface Lock

getLockToken

public String getLockToken()

Specified by:
getLockToken in interface Lock

isLive

public boolean isLive()
               throws RepositoryException

Specified by:
isLive in interface Lock
Throws:
RepositoryException

refresh

public void refresh()
             throws RepositoryException

Specified by:
refresh in interface Lock
Throws:
RepositoryException

isSessionScoped

public boolean isSessionScoped()

Specified by:
isSessionScoped in interface Lock


Copyright © 2004-2006 . All Rights Reserved.