Package org.radargun

Examples of org.radargun.StageResult


         throw new IllegalStateException("Should never happen");
      }
   }

   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      if (result.isError()) return result;

      if (dumpConfig) {
         for (DistStageAck ack : acks) {
            if (ack instanceof ServiceStartAck) {
               ServiceStartAck sAck = (ServiceStartAck) ack;
View Full Code Here


   @InjectTrait(dependency = InjectTrait.Dependency.MANDATORY)
   private Clustered clustered;

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      StringBuilder reportCsvContent = new StringBuilder();

      // TODO: move this into test report
      if (masterState.get(FIRST_SCALE_STAGE_KEY) == null) {
         masterState.put(FIRST_SCALE_STAGE_KEY, masterState.getConfigName());
View Full Code Here

      }
   }

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult res = super.processAckOnMaster(acks);
      if (res.isError()) return res;
      if (testName == null || testName.isEmpty()) {
         log.warn("No test name - results are not recorded");
         return StageResult.SUCCESS;
      } else if (testName.equalsIgnoreCase("warmup")) {
         log.info("This test was executed as a warmup");
View Full Code Here

      return successfulResponse();
   }

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = StageResult.SUCCESS;
      for (DistStageAck ack : acks) {
         if (ack.isError()) {
            log.warn("Received error ack " + ack);
            result = errorResult();
         } else {
View Full Code Here

      return new IterationAck(slaveState, results, totalSize);
   }

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      if (result.isError()) return result;

      Report.Test test = null;
      if (testName == null || testName.isEmpty()) {
         log.warn("No test name - results are not recorded");
      } else if (testName.equalsIgnoreCase("warmup")) {
View Full Code Here

      return getExecutingSlaves().indexOf(slaveState.getSlaveIndex());
   }

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = StageResult.SUCCESS;
      logDurationInfo(acks);
      for (DistStageAck ack : acks) {
         if (ack.isError()) {
            log.warn("Received error ack " + ack);
            result = errorResult();
View Full Code Here

   @InjectTrait(dependency = InjectTrait.Dependency.MANDATORY)
   private BasicOperations basicOperations;

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      if (result.isError()) return result;

      StringBuilder reportCsvContent = new StringBuilder();

      // TODO: move this into test report
      if (masterState.get(FIRST_SCALE_STAGE_KEY) == null) {
View Full Code Here

      return CONFIRMATION_KEY + slaveIndex;
   }

   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      logDurationInfo(acks);
      StageResult result = StageResult.SUCCESS;
      for (DistStageAck ack : acks) {
         if (ack.isError()) {
            log.warn("Ack error from remote slave: " + ack);
            result = errorResult();
         }
         if (!(ack instanceof ReplicationAck)) {
            log.info("Slave " + ack.getSlaveIndex() + " did not sent any response");
            continue;
         }
         ReplicationAck replicationAck = (ClusterValidationStage.ReplicationAck) ack;
         if (partialReplication) {
            if (replicationAck.result <= 0) {
               log.warn("Replication hasn't occurred on slave: " + ack);
               result = errorResult();
            }
         } else { //total replication expected
            int expectedRepl = getExecutingSlaves().size() - 1;
            if (!(replicationAck.result == expectedRepl)) {
               log.warn("On slave " + ack + " total replication hasn't occurred. Expected " + expectedRepl + " and received " + replicationAck.result);
               result = errorResult();
            }
         }
      }
      if (result.isError()) log.warn("Cluster hasn't formed!");
      return result;
   }
View Full Code Here

      log.info("The population took: " + (duration / 1000) + " seconds.");
      return new DurationAck(slaveState, duration);
   }

   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      if (result.isError()) return result;

      logDurationInfo(acks);
      for (DurationAck ack : Projections.instancesOf(acks, DurationAck.class)) {
         if (log.isTraceEnabled()) {
            log.trace("Tpcc population on slave " + ack.getSlaveIndex() + " finished in " + ack.duration + " millis.");
View Full Code Here

      }
   }

   @Override
   public StageResult processAckOnMaster(List<DistStageAck> acks) {
      StageResult result = super.processAckOnMaster(acks);
      if (result.isError()) return result;

      long sumOwnedSize = 0, sumLocalSize = 0;
      Long totalSize = null;
      Integer numReplicas = null;
      Map<Object, Map<Integer, Long>> subparts = new HashMap<>();
View Full Code Here

TOP

Related Classes of org.radargun.StageResult

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.