Package com.linkedin.helix.model

Examples of com.linkedin.helix.model.Alerts


  public void persistAlerts()
  {
    //XXX: Am I using _accessor too directly here?
   
    Alerts alerts = _accessor.getProperty(_keyBuilder.alerts());
    if (alerts == null) {
      alerts = new Alerts(Alerts.nodeName); //TODO: fix naming of this record, if it matters
    }
    alerts.getRecord().setMapFields(_alertsMap);
     boolean retVal = _accessor.setProperty(_keyBuilder.alerts(), alerts);
     logger.debug("persistAlerts retVal: "+retVal);
  }
View Full Code Here


  }

  public void updateCache(HealthDataCache cache)
  {
    _cache = cache;
    Alerts alertsRecord = _cache.getAlerts();
    if (alertsRecord != null)
    {
      _alertsMap = alertsRecord.getMapFields();
    }
    else
    {
      _alertsMap = new HashMap<String, Map<String,String>>();
    }
View Full Code Here

  public void persistAlerts()
  {
    //XXX: Am I using _accessor too directly here?
   
    Alerts alerts = _accessor.getProperty(_keyBuilder.alerts());
    if (alerts == null) {
      alerts = new Alerts(Alerts.nodeName); //TODO: fix naming of this record, if it matters
    }
    alerts.getRecord().setMapFields(_alertsMap);
     boolean retVal = _accessor.setProperty(_keyBuilder.alerts(), alerts);
     logger.debug("persistAlerts retVal: "+retVal);
  }
View Full Code Here

  }

  public void updateCache(HealthDataCache cache)
  {
    _cache = cache;
    Alerts alertsRecord = _cache.getAlerts();
    if (alertsRecord != null)
    {
      _alertsMap = alertsRecord.getMapFields();
    }
    else
    {
      _alertsMap = new HashMap<String, Map<String,String>>();
    }
View Full Code Here

TOP

Related Classes of com.linkedin.helix.model.Alerts

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.