Examples of expireCaches()


Examples of org.sonatype.nexus.proxy.maven.maven1.M1Repository.expireCaches()

    catch (ItemNotFoundException e) {
      // good
    }

    // reset NFC
    repository.expireCaches(new ResourceStoreRequest(RepositoryItemUid.PATH_ROOT, true));

    // a "snapshot"
    repository.setRepositoryPolicy(RepositoryPolicy.SNAPSHOT);
    repository.getCurrentCoreConfiguration().commitChanges();
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.maven1.M1Repository.expireCaches()

    catch (UnsupportedStorageOperationException e) {
      // good
    }

    // reset NFC
    repository.expireCaches(new ResourceStoreRequest(RepositoryItemUid.PATH_ROOT, true));

    // a "snapshot"
    repository.setRepositoryPolicy(RepositoryPolicy.SNAPSHOT);
    repository.getCurrentCoreConfiguration().commitChanges();
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.maven2.M2Repository.expireCaches()

    catch (ItemNotFoundException e) {
      // good
    }

    // reset NFC
    repository.expireCaches(new ResourceStoreRequest(RepositoryItemUid.PATH_ROOT, true));

    // a "snapshot"
    repository.setRepositoryPolicy(RepositoryPolicy.SNAPSHOT);
    repository.getCurrentCoreConfiguration().commitChanges();
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.maven2.M2Repository.expireCaches()

    catch (UnsupportedStorageOperationException e) {
      // good
    }

    // reset NFC
    repository.expireCaches(new ResourceStoreRequest(RepositoryItemUid.PATH_ROOT, true));

    // a "snapshot"
    repository.setRepositoryPolicy(RepositoryPolicy.SNAPSHOT);
    repository.getCurrentCoreConfiguration().commitChanges();
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.maven2.M2Repository.expireCaches()

    if (remoteAddress != null) {
      request.getRequestContext().put(AccessManager.REQUEST_REMOTE_ADDRESS, remoteAddress);
    }

    // invoke expire caches
    repository.expireCaches(request);

    // NO file should be pulled down
    {
      File artifactFile;
      if (!M2ArtifactRecognizer.isChecksum(path)) {
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.GroupRepository.expireCaches()

    central.setLocalStatus(LocalStatus.OUT_OF_SERVICE);
    nexusConfiguration().saveConfiguration();

    GroupRepository group = repositoryRegistry.getRepositoryWithFacet("public", GroupRepository.class);
    group.expireCaches(new ResourceStoreRequest("/"));
  }
}
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.