Examples of LockTokenNotFoundException


Examples of org.apache.slide.lock.LockTokenNotFoundException

    public void renewLock(NodeLock lock) throws LockTokenNotFoundException, ObjectNotFoundException, ServiceAccessException {
        if (locks == null)
            locks = new Vector();
        boolean wasPresent = locks.removeElement(lock);
        if (!wasPresent) {
            throw new LockTokenNotFoundException(lock);
        }
        locks.addElement(lock.cloneObject());
    }
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

    * @exception LockTokenNotFoundException Lock token was not found
    */
    public void removeLock(NodeLock lock) throws LockTokenNotFoundException, ObjectNotFoundException, ServiceAccessException {

        if (locks == null) {
            throw new LockTokenNotFoundException(lock);
        }
        boolean wasPresent = locks.removeElement(lock);
        if (!wasPresent) {
            throw new LockTokenNotFoundException(lock);
        }
    }
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

      throws ServiceAccessException, LockTokenNotFoundException
   {
      debug("renewLock {0} {1}", uri, lock.getLockId());
      List list = (List)get(uri.toString());
      if (list == null || !list.contains(lock)) {
         throw new LockTokenNotFoundException(lock);
      }
      list = new ArrayList(list);
      list.remove(lock);
      list.add(lock);
      put(uri.toString(), list);
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

      throws ServiceAccessException, LockTokenNotFoundException
   {
      debug("removeLock {0} {1}", uri, lock.getLockId());
      List list = (List)get(uri.toString());
      if (list == null) {
         throw new LockTokenNotFoundException(lock);
      }
      if (!list.contains(lock)) {
         throw new LockTokenNotFoundException(lock);
      } else {
         if (list.size() == 1) {
            remove(uri.toString());
         } else {
            list = new ArrayList(list);
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

            Vector locksVector = null;
            if (value != null) {
                locksVector = (Vector) value;
                boolean wasPresent = locksVector.removeElement(lock);
                if (!wasPresent) {
                    throw new LockTokenNotFoundException(lock);
                }
                locksVector.addElement(lock.cloneObject());
            }
        }
    }
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

            Vector locksVector = null;
            if (value != null) {
                locksVector = (Vector) value;
                boolean wasPresent = locksVector.removeElement(lock);
                if (!wasPresent) {
                    throw new LockTokenNotFoundException(lock);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

            Vector locksVector = null;
            if (value != null) {
                locksVector = (Vector) value;
                boolean wasPresent = locksVector.removeElement(lock);
                if (!wasPresent) {
                    throw new LockTokenNotFoundException(lock);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

                Vector locksVector = null;
                if (value != null) {
                    locksVector = new Vector((Vector) value);
                    boolean wasPresent = locksVector.removeElement(lock);
                    if (!wasPresent) {
                        throw new LockTokenNotFoundException(lock);
                    }
                    locksVector.addElement(lock.cloneObject());
                    locksCache.put(uri.toString(), locksVector);
                }
            } finally {
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

                Vector locksVector = null;
                if (value != null) {
                    locksVector = new Vector((Vector) value);
                    boolean wasPresent = locksVector.removeElement(lock);
                    if (!wasPresent) {
                        throw new LockTokenNotFoundException(lock);
                    }
                    locksCache.put(uri.toString(), locksVector);
                }
            } finally {
                delist(this);
View Full Code Here

Examples of org.apache.slide.lock.LockTokenNotFoundException

                Vector locksVector = null;
                if (value != null) {
                    locksVector = new Vector((Vector) value);
                    boolean wasPresent = locksVector.removeElement(lock);
                    if (!wasPresent) {
                        throw new LockTokenNotFoundException(lock);
                    }
                    locksCache.put(uri.toString(), locksVector);
                }
            } finally {
                delist(this);
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.