Examples of LockFile


Examples of org.eclipse.jgit.storage.file.LockFile

   * Unlock this file and abort this change.
   * <p>
   * The temporary file (if created) is deleted before returning.
   */
  public void unlock() {
    final LockFile tmp = myLock;
    if (tmp != null) {
      myLock = null;
      tmp.unlock();
    }
  }
View Full Code Here

Examples of org.geoserver.security.file.LockFile

        return getName();
    }
           
    protected void ensureLock() throws IOException {
        if (lockFile!=null) return; // we have one
        lockFile=new LockFile(roleFile);
        try {
            lockFile.writeLock();
        } catch (IOException ex) { // cannot obtain lock
            lockFile=null; // assert lockFile == null
            throw ex; // throw again
View Full Code Here

Examples of org.sonatype.nexus.bootstrap.LockFile

      File workDir = new File(properties.get("nexus-work")).getCanonicalFile();
      mkdir(workDir.toPath());

      // lock the work directory
      lockFile = new LockFile(new File(workDir, "nexus.lock"));
      if (!lockFile.lock()) {
        throw new IllegalStateException("Nexus work directory already in use: " + workDir);
      }

      // are we already running in OSGi or should we embed OSGi?
View Full Code Here

Examples of org.syncany.tests.scenarios.framework.LockFile

        assertFileListEquals(clientA.getLocalFilesExcludeLockedAndNoRead(), clientB.getLocalFilesExcludeLockedAndNoRead());
        assertSqlDatabaseEquals(clientA.getDatabaseFile(), clientB.getDatabaseFile());
      }
    });

    ClientActions.run(clientA, null, new LockFile(), new Executable() {
      @Override
      public void execute() throws Exception {
        clientA.upWithForceChecksum();

        clientB.down();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.