Examples of updatePrefixFile()


Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

          Server.withPort(server1port).serve("/.meta/prefixes.txt").withBehaviours(
              Behaviours.content(prefixFile1(true)));
      server1.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final PrefixSource proxy1EntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
                MavenRepository.class));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

          Server.withPort(server2port).serve("/.meta/prefixes.txt").withBehaviours(
              Behaviours.content(prefixFile2(true)));
      server2.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY2_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final PrefixSource proxy1EntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

              Behaviours.content(prefixFile2(true)));
      server2.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY2_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final PrefixSource proxy1EntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
                MavenRepository.class));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

          Server.withPort(server2port).serve("/.meta/prefixes.txt").withBehaviours(
              Behaviours.content(TextFilePrefixSourceMarshaller.MAGIC + "\n" + Strings.repeat("/12345677890", 25)));
      server2.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY2_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final PrefixSource proxy1EntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

              Behaviours.content(TextFilePrefixSourceMarshaller.MAGIC + "\n" + Strings.repeat("/12345677890", 25)));
      server2.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY2_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final PrefixSource proxy1EntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
                MavenRepository.class));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

          Server.withPort(server1port).serve("/.meta/prefixes.txt").withBehaviours(
              new DeliverBehaviour(500, "text/plain", "Ugly server error"));
      server1.start();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final RoutingStatus status =
            wm.getStatusFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
                MavenRepository.class));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

    try {
      // remote peer will be down
      server1.stop();

      final Manager wm = lookup(Manager.class);
      wm.updatePrefixFile(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID, MavenRepository.class));
      waitForRoutingBackgroundUpdates();
      {
        final RoutingStatus status =
            wm.getStatusFor(getRepositoryRegistry().getRepositoryWithFacet(PROXY1_REPO_ID,
                MavenRepository.class));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.routing.Manager.updatePrefixFile()

              Behaviours.content(prefixFile1(true)));
      try {
        server.start();
        final MavenProxyRepository mavenProxyRepository =
            getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID, MavenProxyRepository.class);
        wm.updatePrefixFile(mavenProxyRepository);
        waitForRoutingBackgroundUpdates();

        final PrefixSource hostedEntrySource =
            wm.getPrefixSourceFor(getRepositoryRegistry().getRepositoryWithFacet(HOSTED_REPO_ID,
                MavenRepository.class));
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.