Examples of alertHistory()


Examples of org.apache.helix.PropertyKey.Builder.alertHistory()

      int[] metricsy = {99 + 3*x, 99 + 3*y, 98 + 4*x, 98+4*y, 97+5*y};
     
      setHealthData(metricsx, metricsy);
      task.run();
      Thread.sleep(100);
      history = helixDataAccessor.getProperty(keyBuilder.alertHistory()).getRecord();
     
      Assert.assertEquals(history.getMapFields().size(), Math.min(3 + i + 1 + historySize, 30));
      recordMap = new TreeMap<String, Map<String, String>>();
      recordMap.putAll( history.getMapFields());
      lastRecord = recordMap.lastEntry().getValue();
View Full Code Here

Examples of org.apache.helix.PropertyKey.Builder.alertHistory()

     
      setHealthData(metricsx, metricsy);
      task.run();
      for (int j = 0; j < 10; j++) {
          Thread.sleep(100);
          history = helixDataAccessor.getProperty(keyBuilder.alertHistory()).getRecord();
          recordMap = new TreeMap<String, Map<String, String>>();
          recordMap.putAll( history.getMapFields());
          lastRecord = recordMap.lastEntry().getValue();
         
          if (history.getMapFields().size() == 30 && lastRecord.size() == 10)
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.