Package org.sonatype.nexus.proxy.item

Examples of org.sonatype.nexus.proxy.item.RepositoryItemUidLock.unlock()


        // NXCM-2499 temporarily we do put access serialization back here, to avoid all the deadlocks.
        lock.lock(Action.create);
        return super.retrieveItem(fromTask, request);
      }
      finally {
        lock.unlock();
      }
    }
    finally {
      lock.unlock();
    }
View Full Code Here


      finally {
        lock.unlock();
      }
    }
    finally {
      lock.unlock();
    }
  }

  @Override
  protected StorageItem doRetrieveItem(final ResourceStoreRequest request)
View Full Code Here

        loadArtifactMappings();
      }
      return remoteArtifactMappings;
    }
    finally {
      lock.unlock();
    }
  }

  private void loadArtifactMappings()
      throws StorageException, IllegalOperationException
View Full Code Here

        repository.removeFromNotFoundCache(item.getResourceStoreRequest());
        final ResourceStoreRequest request = new ResourceStoreRequest(item);
        result = (StorageFileItem) repository.getLocalStorage().retrieveItem(repository, request);
      }
      finally {
        itemLock.unlock();
      }
    }
    catch (ItemNotFoundException ex) {
      log.warn(
          "Nexus BUG in "
View Full Code Here

        catch (final ItemNotFoundException e) {
          // fall through
        }

        // give away the lock on content.xml as we will regenerate it
        itemLock.unlock();
        try {
          // we need to get new file, so update the lock
          repoLock.lock(Action.delete);
          // recheck the condition now that we have an exclusive lock
          try {
View Full Code Here

        catch (final ItemNotFoundException e) {
          // fall through
        }

        // give away the lock on artifacts.xml as we will regenerate it
        itemLock.unlock();
        try {
          // we need to get new file, so update the lock
          repoLock.lock(Action.delete);
          // recheck the condition now that we have an exclusive lock
          try {
View Full Code Here

    try {
      lock.lock(Action.read);
      return super.retrieveItem(fromTask, request);
    }
    finally {
      lock.unlock();
    }
  }

  @Override
  protected void validateMemberRepository(final Repository repository)
View Full Code Here

      request.setRequestGroupLocalOnly(true);
      return super.doRetrieveItem(request);
    }
    finally {
      request.setRequestGroupLocalOnly(requestGroupLocalOnly);
      lock.unlock();
    }
  }

  @Override
  protected Collection<StorageItem> doListItems(final ResourceStoreRequest request)
View Full Code Here

      request.setRequestGroupLocalOnly(true);
      return super.doListItems(request);
    }
    finally {
      request.setRequestGroupLocalOnly(requestGroupLocalOnly);
      lock.unlock();
    }
  }

  @Subscribe
  public void onEvent(final RepositoryGroupMembersChangedEvent event) {
View Full Code Here

              getMimeSupport().guessMimeTypeFromPath(P2_INDEX),
              null
          );
        }
        finally {
          lock.unlock();
        }
      }
      finally {
        FileUtils.deleteDirectory(tempP2Repository);
      }
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.