Examples of alerts()


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

        EXP + "(accumulate()(dbFoo.partition10.latency))" + CMP + "(GREATER)" + CON + "(10)";
    _alertsHolder.addAlert(alert);
    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    System.out.println("alert: " + alert);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert));
    AssertJUnit.assertEquals(1, alertsSize(rec));
  }
View Full Code Here

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

    _alertsHolder.addAlert(alert2);

    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    // System.out.println("alert: "+alert1);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert1));
    AssertJUnit.assertTrue(alertRecordContains(rec, alert2));
    AssertJUnit.assertEquals(2, alertsSize(rec));
View Full Code Here

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

    _alertsHolder.addAlert(alert1);

    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    // System.out.println("alert: "+alert1);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert1));
    AssertJUnit.assertEquals(1, alertsSize(rec));
  }
View Full Code Here

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

          accessor.getChildValuesMap(keyBuilder.healthReports(instanceName));
      hsMap.put(instanceName, childValuesMap);
    }
    _healthStatMap = Collections.unmodifiableMap(hsMap);
    _persistentStats = accessor.getProperty(keyBuilder.persistantStat());
    _alerts = accessor.getProperty(keyBuilder.alerts());
    _alertStatus = accessor.getProperty(keyBuilder.alertStatus());

    return true;

  }
View Full Code Here

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

        EXP + "(accumulate()(dbFoo.partition10.latency))" + CMP + "(GREATER)" + CON + "(10)";
    _alertsHolder.addAlert(alert);
    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    System.out.println("alert: " + alert);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert));
    AssertJUnit.assertEquals(1, alertsSize(rec));
  }
View Full Code Here

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

    _alertsHolder.addAlert(alert2);

    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    // System.out.println("alert: "+alert1);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert1));
    AssertJUnit.assertTrue(alertRecordContains(rec, alert2));
    AssertJUnit.assertEquals(2, alertsSize(rec));
View Full Code Here

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

    _alertsHolder.addAlert(alert1);

    HelixDataAccessor accessor = _helixManager.getHelixDataAccessor();
    Builder keyBuilder = accessor.keyBuilder();

    ZNRecord rec = accessor.getProperty(keyBuilder.alerts()).getRecord();
    // System.out.println("alert: "+alert1);
    System.out.println("rec: " + rec.toString());
    AssertJUnit.assertTrue(alertRecordContains(rec, alert1));
    AssertJUnit.assertEquals(1, alertsSize(rec));
  }
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.