Examples of releaseLock()


Examples of ch.fork.AdHocRailway.domain.locomotives.LocomotiveControlface.releaseLock()

                    boolean succeeded = locomotiveControl
                            .acquireLock(myLocomotive);
                    lockButton.setSelected(succeeded);
                } else {
                    if (locomotiveControl.isLockedByMe(myLocomotive)) {
                        boolean succeeded = !locomotiveControl
                                .releaseLock(myLocomotive);
                        lockButton.setSelected(succeeded);
                    } else {
                        lockButton.setSelected(true);
                    }
View Full Code Here

Examples of com.asakusafw.bulkloader.cache.LocalCacheInfoRepository.releaseLock()

        LOG.info("TG-IMPORTER-11012",
                bean.getTargetName(), bean.getBatchId(), bean.getJobflowId(), bean.getExecutionId());
        Connection connection = DBConnection.getConnection();
        LocalCacheInfoRepository repository = new LocalCacheInfoRepository(connection);
        try {
            repository.releaseLock(bean.getExecutionId());
        } finally {
            DBConnection.closeConn(connection);
        }
    }
View Full Code Here

Examples of com.asakusafw.bulkloader.cache.LocalCacheInfoRepository.releaseLock()

                tableInfo.setImportProtocol(protocol);
            }
            succeed = true;
        } finally {
            if (succeed == false) {
                repository.releaseLock(bean.getExecutionId());
            }
            DBConnection.closeConn(connection);
        }
    }
View Full Code Here

Examples of com.asakusafw.bulkloader.exporter.LockRelease.releaseLock()

                    exporterBean.getBatchId(),
                    exporterBean.getJobflowId(),
                    exporterBean.getJobflowSid(),
                    exporterBean.getExecutionId());
            LockRelease lock = createLockRelease();
            if (!lock.releaseLock(exporterBean, updateEnd)) {
                // ロックの解除に失敗
                throw new BulkLoaderSystemException(getClass(), "TG-RECOVERER-01013",
                        exporterBean.getTargetName(),
                        exporterBean.getBatchId(),
                        exporterBean.getJobflowId(),
View Full Code Here

Examples of com.sleepycat.je.txn.BasicLocker.releaseLock()

      if (duplicateRoot != null) {
    duplicateRoot.releaseLatchIfOwner();
      }

      if (dupCountLNLocked) {
    locker.releaseLock(dcl.getNodeId());
      }
  }

        return ret;
    }
View Full Code Here

Examples of com.sleepycat.je.txn.BasicLocker.releaseLock()

      }
  } finally {
            releaseNodeLadderLatches(nodeLadder);

      if (dupCountLNLocked) {
    locker.releaseLock(dcl.getNodeId());
      }

            if (duplicateRoot != null) {
                duplicateRoot.releaseLatch();
            }
View Full Code Here

Examples of com.sleepycat.je.txn.Locker.releaseLock()

        /* Release oldLsn locks. */
        for (LockInfo lockInfo : owners) {
            final Locker locker = lockInfo.getLocker();
            if (locker != excludeLocker &&
                locker.allowReleaseLockAfterLsnChange()) {
                locker.releaseLock(oldLsn);
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.sleepycat.je.txn.Txn.releaseLock()

            // Shouldn't release at operation end
            userTxn.operationEnd();
            checkHeldLocks(userTxn, 1, 0);

            userTxn.releaseLock(ln.getNodeId());
            checkHeldLocks(userTxn, 0, 0);
            userTxn.commit(Txn.TXN_SYNC);
            afterRelease = mb.getCacheMemoryUsage();
            assertEquals(beforeLock, afterRelease);
        } catch (Throwable t) {
View Full Code Here

Examples of liquibase.lockservice.LockService.releaseLock()

            changeLogIterator.run(createUpdateVisitor(), new RuntimeEnvironment(database, contexts, labelExpression));
        } finally {
            database.setObjectQuotingStrategy(ObjectQuotingStrategy.LEGACY);
            try {
                lockService.releaseLock();
            } catch (LockException e) {
                log.severe("Could not release lock", e);
            }
            resetServices();
        }
View Full Code Here

Examples of liquibase.lockservice.LockServiceEx.releaseLock()

      ChangeLogIterator changeLogIterator = getStandardChangelogIterator(contexts, changeLog);

      changeLogIterator.run(new UpdateVisitor(database), database);
    } finally {
      try {
        lockService.releaseLock();
      } catch (LockException e) {
        LOGGER.error("Error while releasing db lock", e);
      }
    }
  }
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.