Examples of unlock()


Examples of org.apache.blur.zookeeper.ZooKeeperLockManager.unlock()

  public void testSafeModeNoCache() throws KeeperException, InterruptedException {
    String safemodePath = ZookeeperPathConstants.getSafemodePath(DEFAULT);
    ZooKeeperLockManager zooKeeperLockManager = new ZooKeeperLockManager(zooKeeper1, safemodePath);
    zooKeeperLockManager.lock(DEFAULT);
    assertTrue(clusterStatus2.isInSafeMode(false, DEFAULT));
    zooKeeperLockManager.unlock(DEFAULT);
    assertFalse(clusterStatus2.isInSafeMode(false, DEFAULT));
  }

  @Test
  public void testSafeModeCache() throws KeeperException, InterruptedException {
View Full Code Here

Examples of org.apache.catalina.tribes.tipis.ReplicatedMapEntry.unlock()

                        new MapMessage(mapContextName, MapMessage.MSG_BACKUP, true, (Serializable)entry.getKey(), null,
                                       rentry.getDiff(), entry.getPrimary(), entry.getBackupNodes());
                } catch (IOException x) {
                    log.error("Unable to diff object. Will replicate the entire object instead.", x);
                } finally {
                    rentry.unlock();
                }

            }
            if (msg == null) {
                //construct a complete
View Full Code Here

Examples of org.apache.commons.configuration.sync.SynchronizerSupport.unlock()

                loadFromTransformedStream(in, encoding);
            }
        }
        finally
        {
            syncSupport.unlock(LockMode.WRITE);
        }
    }

    /**
     * Loads data from an input stream if the associated {@code FileBased}
View Full Code Here

Examples of org.apache.commons.configuration2.sync.SynchronizerSupport.unlock()

                loadFromTransformedStream(in, encoding);
            }
        }
        finally
        {
            syncSupport.unlock(LockMode.WRITE);
        }
    }

    /**
     * Loads data from an input stream if the associated {@code FileBased}
View Full Code Here

Examples of org.apache.directory.server.core.ReferralManager.unlock()

        {
            // Check if the entry has a parent which is a referral
            isparentReferral = referralManager.hasParentReferral( reqTargetDn );
        }
       
        referralManager.unlock();
       
        if ( !isReferral && !isparentReferral )
        {
            // This is not a referral and it does not have a parent which
            // is a referral : standard case, just deal with the request
View Full Code Here

Examples of org.apache.directory.server.core.api.ReferralManager.unlock()

            }
        }
        finally
        {
            // Unlock the ReferralManager
            referralManager.unlock();
        }

        if ( !isReferral && !isparentReferral )
        {
            // This is not a referral and it does not have a parent which
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.CertificationAuthority.unlock()

            }
            CertificationAuthority ca = getCertificationAuthority(request);
            if(ca == null) {
                throw new Exception("CA is not running.  CA may not have been initialized.");
            }
            ca.unlock(password.toCharArray());

            // Return to CA's index page
            response.setRenderParameter(INFO_MSG, "CA has been unlocked successfully!");
            log.info("CA has been unlocked successfully!");
            return INDEX_MODE+BEFORE_ACTION;
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory.unlock()

        editStreams.add(eStream);
      } catch (IOException e) {
        failedSd = true;
        // remove stream and this storage directory from list
        FSImage.LOG.warn("rollEdidLog: removing storage " + sd.getRoot().getPath());
        sd.unlock();
        fsimage.removedStorageDirs.add(sd);
        it.remove();
      }
    }
    if(failedSd)
View Full Code Here

Examples of org.apache.hadoop.hive.ql.lockmgr.HiveLockManager.unlock()

      throw new HiveException("Table " + tabName + " is not locked ");
    }
    Iterator<HiveLock> locksIter = locks.iterator();
    while (locksIter.hasNext()) {
      HiveLock lock = locksIter.next();
      lockMgr.unlock(lock);
    }

    return 0;
  }
View Full Code Here

Examples of org.apache.harmony.awt.nativebridge.Int16Pointer.unlock()

        wndCls.set_hCursor(0);
        wndCls.set_lpszClassName(namePtr);

        short classAtom = win32.RegisterClassExW(wndCls);
        int winError = win32.GetLastError();
        namePtr.unlock();

        if (classAtom == 0) {
            throw new InternalError("Failed to register window class "
                    + className + " GetLastError returned " + winError);
        }
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.