Examples of PersistentStats


Examples of org.apache.helix.model.PersistentStats

      // get the result
      ClusterConfig result = builder.build();

      // remove stats
      PersistentStats stats = result.getStats();
      for (String removedStat : _removedStats.getMapFields().keySet()) {
        if (stats.getMapFields().containsKey(removedStat)) {
          stats.getMapFields().remove(removedStat);
        }
      }

      // remove alerts
      Alerts alerts = result.getAlerts();
View Full Code Here

Examples of org.apache.helix.model.PersistentStats

      _constraintMap = new HashMap<ConstraintType, ClusterConstraints>();
      _stateModelMap = new HashMap<StateModelDefId, StateModelDefinition>();
      _isPaused = false;
      _autoJoin = false;
      _userConfig = new UserConfig(Scope.cluster(id));
      _stats = new PersistentStats(PersistentStats.nodeName);
      _alerts = new Alerts(Alerts.nodeName);
    }
View Full Code Here

Examples of org.apache.helix.model.PersistentStats

    // DataAccessor accessor = manager.getDataAccessor();
    HelixDataAccessor accessor = manager.getHelixDataAccessor();
    // boolean retVal = accessor.setProperty(PropertyType.PERSISTENTSTATS, record);
    Builder keyBuilder = accessor.keyBuilder();
    boolean retVal = accessor.setProperty(keyBuilder.persistantStat(), new PersistentStats(record));
    if (retVal == false) {
      logger.error("attempt to persist derived stats failed");
    }
  }
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.