Examples of healthReport()


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

      record.setSimpleField("TimeStamp", new Date().getTime() + "");
      record.setMapField(_statName, valMap);
      HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
      Builder keyBuilder = helixDataAccessor.keyBuilder();
      helixDataAccessor.setProperty(
          keyBuilder.healthReport(manager.getInstanceName(), record.getId()),
          new HealthStat(record));
    }
    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
View Full Code Here

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

      record.setSimpleField("TimeStamp", new Date().getTime() + "");
      record.setMapField("TestStat@DB=TestDB;Partition=TestDB_3", valMap);
      HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
      Builder keyBuilder = helixDataAccessor.keyBuilder();
      helixDataAccessor.setProperty(
          keyBuilder.healthReport(manager.getInstanceName(), record.getId()),
          new HealthStat(record));
    }
    try {
      Thread.sleep(1000);
    } catch (InterruptedException e) {
View Full Code Here

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

  @Override
  public void reportHealthReportMessage(ZNRecord healthCheckInfoUpdate) {
    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();
    accessor.setProperty(keyBuilder.healthReport(_instanceName, healthCheckInfoUpdate.getId()),
        new HealthStat(healthCheckInfoUpdate));

  }

  @Override
View Full Code Here

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

          }
          record.setSimpleField(StatsHolder.TIMESTAMP_NAME, "" + System.currentTimeMillis());

          HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
          Builder keyBuilder = accessor.keyBuilder();
          accessor.setProperty(keyBuilder.healthReport(_instanceName, record.getId()),
              new HealthStat(record));

          provider.resetStats();
        } catch (Exception e) {
          _logger.error("fail to transmit health report", e);
View Full Code Here

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

    for (int i = 0; i < n; i++) {
      String instance = "localhost_" + (12918 + i);
      ZNRecord record = null;
      for (int j = 0; j < 10; j++) {
        record = accessor.getProperty(keyBuilder.healthReport(instance, "mockAlerts")).getRecord();
        if (record.getId().equals("mockAlerts4")) {
          break;
        } else {
          Thread.sleep(500);
        }
View Full Code Here

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

      String instance = message.getTgtName();
      if (_done.getAndSet(true) == false) {
        for (int i = 0; i < 5; i++) {
          // System.out.println(instance + " sets healthReport: " + "mockAlerts" + i);
          accessor.setProperty(keyBuilder.healthReport(instance, "mockAlerts"), new HealthStat(
              new ZNRecord("mockAlerts" + i)));
        }
      }
    }
View Full Code Here

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

      record.setSimpleField("TimeStamp", new Date().getTime() + "");
      record.setMapField(_statName, valMap);
      HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
      Builder keyBuilder = helixDataAccessor.keyBuilder();
      helixDataAccessor
        .setProperty(keyBuilder.healthReport( manager.getInstanceName(), record.getId()), new HealthStat(record))
    }
    try
    {
      Thread.sleep(1000);
    }
View Full Code Here

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

      record.setSimpleField("TimeStamp", new Date().getTime() + "");
      record.setMapField(_statName, valMap);
      HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
      Builder keyBuilder = helixDataAccessor.keyBuilder();
      helixDataAccessor
        .setProperty(keyBuilder.healthReport( manager.getInstanceName(), record.getId()), new HealthStat(record));
    }
    try
    {
      Thread.sleep(1000);
    }
View Full Code Here

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

      record.setSimpleField("TimeStamp", new Date().getTime() + "");
      record.setMapField("TestStat@DB=TestDB;Partition=TestDB_3", valMap);
      HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
      Builder keyBuilder = helixDataAccessor.keyBuilder();
      helixDataAccessor
        .setProperty(keyBuilder.healthReport( manager.getInstanceName(), record.getId()), new HealthStat(record));
    }
    try
    {
      Thread.sleep(1000);
    }
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.