Package org.apache.ambari.server.controller.internal

Examples of org.apache.ambari.server.controller.internal.PropertyInfo


    for (String id : ids) {
      Map<String, PropertyInfo> propertyInfoMap = getPropertyInfoMap(componentName, id);

      for (Map.Entry<String, PropertyInfo> entry: propertyInfoMap.entrySet()) {
        String       propertyKey  = entry.getKey();
        PropertyInfo propertyInfo = entry.getValue();
        String       propertyId   = propertyInfo.getPropertyId();
        TemporalInfo temporalInfo = request.getTemporalInfo(id);

        if ((propertyInfo.isPointInTime() && temporalInfo == null) ||
            (propertyInfo.isTemporal()    && temporalInfo != null)) {

          long startTime;
          long endTime;

          if (temporalInfo != null) {
View Full Code Here


    Map<String, Map<String, PropertyInfo>> metrics = PropertyHelper.getJMXPropertyIds(Resource.Type.HostComponent);
    Map<String, PropertyInfo> componentMetrics = metrics.get("HISTORYSERVER");
    Assert.assertNull(componentMetrics);
    componentMetrics = metrics.get("NAMENODE");
    Assert.assertNotNull(componentMetrics);
    PropertyInfo info = componentMetrics.get("metrics/jvm/memHeapUsedM");
    Assert.assertNotNull(info);
    Assert.assertEquals("Hadoop:service=NameNode,name=jvm.memHeapUsedM", info.getPropertyId());

  }
View Full Code Here

            Map<String, PropertyInfo> jMetrics = jids.get(gComponent);

            if (jMetrics != null) {
              String gMetric = gMetricEntry.getKey();
              PropertyInfo jProperty = jMetrics.get(gMetric);

              if (jProperty != null) {
                PropertyInfo gProperty = gMetricEntry.getValue();
                if (gProperty.isPointInTime()) {
                  String s = type + " : " + gComponent + " : " + gMetric + " : " + gProperty.getPropertyId();
                  set.add(s);
                }
              }
            }
          }
View Full Code Here

            Map<String, PropertyInfo> jMetrics = jids.get(gComponent);

            if (jMetrics != null) {

              String gMetric = gMetricEntry.getKey();
              PropertyInfo gProperty = gMetricEntry.getValue();

              if (!gProperty.isPointInTime()) {

                PropertyInfo jProperty = jMetrics.get(gMetric);

                if (jProperty == null || !jProperty.isPointInTime()) {

                  String s = type + " : " + gComponent + " : " + gMetric + " : " + gProperty.getPropertyId();

                  set.add(s);
                }
View Full Code Here

          Set<Map.Entry<String, PropertyInfo>> jComponentEntries = jComponentEntry.getValue().entrySet();
          for (Map.Entry<String, PropertyInfo> jMetricEntry : jComponentEntries) {

            String jMetric = jMetricEntry.getKey();

            PropertyInfo jProperty = jMetricEntry.getValue();

            if (jProperty.isTemporal()) {
              String s = type + " : " + jComponent + " : " + jMetric + " : " + jProperty.getPropertyId();

              set.add(s);
            }
          }
        }
View Full Code Here

      Set<Map.Entry<String, PropertyInfo>> gComponentEntries = gComponentEntry.getValue().entrySet();

      for (Map.Entry<String, PropertyInfo> gMetricEntry : gComponentEntries) {

        String gMetric = gMetricEntry.getKey();
        PropertyInfo propertyInfo = gMetricEntry.getValue();

        newMap.put(gMetric.replaceAll("\\$\\d+(\\.\\S+\\(\\S+\\))*", "*"), propertyInfo);
      }
      returnMap.put(gComponent, newMap);
    }
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.internal.PropertyInfo

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.