use of net.sourceforge.processdash.util.lock.LockUncertainException in project processdash by dtuma.
the class ResourceBridgeClient method pingLock.
public synchronized void pingLock() throws LockFailureException {
if (userName == null)
throw new NotLockedException();
ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient.pingLock[" + remoteUrl + "]");
try {
doLockPostRequest(PING_LOCK_ACTION);
pt.click("Pinged bridged lock");
} catch (LockFailureException lfe) {
throw lfe;
} catch (Exception e) {
throw new LockUncertainException(e);
}
}
use of net.sourceforge.processdash.util.lock.LockUncertainException in project processdash by dtuma.
the class ResourceBridgeClient method doAssertLock.
private synchronized void doAssertLock(String action) throws LockFailureException {
if (userName == null)
throw new NotLockedException();
ProfTimer pt = new ProfTimer(logger, "ResourceBridgeClient." + action + "[" + remoteUrl + "]");
try {
doLockPostRequest(action);
pt.click("Asserted bridged lock");
} catch (LockFailureException lfe) {
throw lfe;
} catch (Exception e) {
throw new LockUncertainException(e);
}
}
Aggregations