Package net.sourceforge.processdash.util.lock

Examples of net.sourceforge.processdash.util.lock.FileConcurrencyLock


        this.lockFilename = strategy.getLockFilename();

        this.workingDirectory = new File(workingDirectoryParent, getWorkingId());

        File lockFile = new File(workingDirectory, lockFilename);
        this.processLock = new FileConcurrencyLock(lockFile);
        this.processLock.setListenForLostLock(false);
    }
View Full Code Here


    public void acquireWriteLock(LockMessageHandler lockHandler,
            String ownerName) throws AlreadyLockedException,
            LockFailureException {
        File lockFile = new File(targetDirectory, lockFilename);
        writeLock = new FileConcurrencyLock(lockFile);
        writeLock.setListenForLostLock(shouldMonitorWriteLock(lockFile));
        writeLock.setApprover(this);
        writeLock.acquireLock(null, lockHandler, ownerName);
    }
View Full Code Here

    public DatasetAutoMigrator(BridgedWorkingDirectory workingDir,
            File sourceDir, DialogParentSource dps) {
        this.workingDir = workingDir;
        this.sourceDir = sourceDir;
        this.dps = dps;
        this.sourceDirLock = new FileConcurrencyLock(new File(sourceDir,
                DashboardInstanceStrategy.LOCK_FILE_NAME));
        this.resources = ResourceBundle
                .getBundle("Templates.resources.ProcessDashboard");
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.lock.FileConcurrencyLock

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.