Package org.openrdf.sail

Examples of org.openrdf.sail.LockManager


  private boolean tryToRemoveLock(SailReadOnlyException e, Repository repo)
    throws IOException, StoreException
  {
    boolean lockRemoved = false;

    LockManager lockManager = new DirectoryLockManager(repo.getDataDir());

    if (lockManager.isLocked()) {
      if (askProceed("WARNING: The lock from another process on this repository needs to be removed", true))
      {
        repo.shutDown();
        lockRemoved = lockManager.revokeLock();
        repo.initialize();
      }
    }

    return lockRemoved;
View Full Code Here


  private boolean tryToRemoveLock(SailLockedException e)
    throws IOException
  {
    boolean lockRemoved = false;

    LockManager lockManager = e.getLockManager();

    if (lockManager != null && lockManager.isLocked()) {
      if (askProceed("WARNING: The lock from process '" + e.getLockedBy()
          + "' on this repository needs to be removed", true))
      {
        lockRemoved = lockManager.revokeLock();
      }
    }

    return lockRemoved;
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.LockManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.