Package org.sonatype.nexus.util.sequence

Examples of org.sonatype.nexus.util.sequence.ConstantNumberSequence


              this.repositoryStatusCheckerThread.interrupt();
            }
          }
        }
        else {
          this.remoteStatusRetainTimeSequence = new ConstantNumberSequence(REMOTE_STATUS_RETAIN_TIME);
        }

        // if this is proxy
        // and was !shouldProxy() and the new is shouldProxy()
        if (proxyMode != null && proxyMode.shouldProxy() && !oldProxyMode.shouldProxy()) {
View Full Code Here


{
  protected FixedRateWalkerThrottleController fixedRateWalkerThrottleController;

  @Test
  public void testDoesItHelpAtAll() {
    final int measuredTpsHigh = performAndMeasureActualTps(20, new ConstantNumberSequence(1));
    final int measuredTpsMid = performAndMeasureActualTps(10, new ConstantNumberSequence(1));
    final int measuredTpsLow = performAndMeasureActualTps(5, new ConstantNumberSequence(1));

    System.err.println(measuredTpsHigh + "\n" + measuredTpsMid + "\n" + measuredTpsLow);
    assertThat("Mid TPS should be less than high TPS run", measuredTpsMid, lessThan(measuredTpsHigh));
    assertThat("Low TPS should be less than medium TPS run", measuredTpsLow, lessThan(measuredTpsMid));
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.util.sequence.ConstantNumberSequence

Copyright © 2018 www.massapicom. 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.