Package org.sonatype.sisu.goodies.common

Examples of org.sonatype.sisu.goodies.common.Time.toMillis()


          actualWindow.toString(), actualTimeout.toString()
      );

      final MultivaluedMap<String, String> params = new MultivaluedMapImpl();
      params.add("timeout", String.valueOf(actualTimeout.toMillis()));
      params.add("window", String.valueOf(actualWindow.toMillis()));

      final ClientResponse response = getNexusClient()
          .serviceResource("events/waitFor", params)
          .get(ClientResponse.class);
View Full Code Here


          actualWindow.toString(), actualTimeout.toString()
      );

      final MultivaluedMap<String, String> params = new MultivaluedMapImpl();
      params.add("timeout", String.valueOf(actualTimeout.toMillis()));
      params.add("window", String.valueOf(actualWindow.toMillis()));

      final ClientResponse response = getNexusClient()
          .serviceResource("tasks/waitFor", params)
          .get(ClientResponse.class);
View Full Code Here

      }

      LOG.info("Waiting for Nexus to not execute any routing update jobs (timeouts in {})", actualTimeout.toString());

      final MultivaluedMap<String, String> params = new MultivaluedMapImpl();
      params.add("timeout", String.valueOf(actualTimeout.toMillis()));

      final ClientResponse response =
          getNexusClient().serviceResource("routing/waitFor", params).get(ClientResponse.class);

      response.close();
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.