org.apache.jackrabbit.rmi.server
Class ServerLockManager

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerLockManager
All Implemented Interfaces:
Serializable, Remote, RemoteLockManager

public class ServerLockManager
extends ServerObject
implements RemoteLockManager

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerLockManager(LockManager manager, RemoteAdapterFactory factory)
           
 
Method Summary
 void addLockToken(String lockToken)
           
 RemoteLock getLock(String absPath)
           
 String[] getLockTokens()
           
 boolean holdsLock(String absPath)
           
 boolean isLocked(String absPath)
           
 RemoteLock lock(String absPath, boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerInfo)
           
 void removeLockToken(String lockToken)
           
 void unlock(String absPath)
           
 
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

ServerLockManager

public ServerLockManager(LockManager manager,
                         RemoteAdapterFactory factory)
                  throws RemoteException
Throws:
RemoteException
Method Detail

getLockTokens

public String[] getLockTokens()
                       throws RepositoryException
Specified by:
getLockTokens in interface RemoteLockManager
Throws:
RepositoryException

addLockToken

public void addLockToken(String lockToken)
                  throws RepositoryException
Specified by:
addLockToken in interface RemoteLockManager
Throws:
RepositoryException

removeLockToken

public void removeLockToken(String lockToken)
                     throws RepositoryException
Specified by:
removeLockToken in interface RemoteLockManager
Throws:
RepositoryException

isLocked

public boolean isLocked(String absPath)
                 throws RepositoryException
Specified by:
isLocked in interface RemoteLockManager
Throws:
RepositoryException

holdsLock

public boolean holdsLock(String absPath)
                  throws RepositoryException
Specified by:
holdsLock in interface RemoteLockManager
Throws:
RepositoryException

getLock

public RemoteLock getLock(String absPath)
                   throws RepositoryException,
                          RemoteException
Specified by:
getLock in interface RemoteLockManager
Throws:
RepositoryException
RemoteException

lock

public RemoteLock lock(String absPath,
                       boolean isDeep,
                       boolean isSessionScoped,
                       long timeoutHint,
                       String ownerInfo)
                throws RepositoryException,
                       RemoteException
Specified by:
lock in interface RemoteLockManager
Throws:
RepositoryException
RemoteException

unlock

public void unlock(String absPath)
            throws RepositoryException
Specified by:
unlock in interface RemoteLockManager
Throws:
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.