Examples of Metric


Examples of eu.planets_project.pp.plato.model.measurement.Metric

   
    private void resolveMetrics() {
        // resolve references to metrics:
        for(MeasurableProperty p : propertyInfo.values()) {
            for (Metric m : p.getPossibleMetrics()) {
                Metric metric = metricInfo.get(m.getMetricId());
                if (metric != null) {
                    m.assign(metric);
                }
            }
        }
View Full Code Here

Examples of javaff.data.Metric

      }
     
    }

   
    Metric m = problem.metric;
    if (m != null && m.func instanceof NamedFunction && !(m.func instanceof TotalTimeFunction))
    {
      PrecedenceResourceGraph prg = (PrecedenceResourceGraph) graphs.get((NamedFunction) m.func);
      if (m.type == Metric.MAXIMIZE) prg.maximize();
      else if (m.type == Metric.MINIMIZE) prg.minimize();
View Full Code Here

Examples of javax.batch.runtime.Metric

    new SimpleMetric(null, 0);
  }

  @Test
  public void test() {
    Metric metric = new SimpleMetric(MetricType.FILTER_COUNT, 3);

    assertEquals(3, metric.getValue());
    assertEquals(MetricType.FILTER_COUNT, metric.getType());
  }
View Full Code Here

Examples of net.sourceforge.stat4j.Metric

        generateReading(statistic, statistic.getSecond(), log);
      if (reading == null)
        continue;

      if (calculator.isApplyImmediate()) {
        Metric metric = new Metric(statistic.getName(), null, reading);
        calculateStatistic(calculator, metric);

      } else {
        matchReading(statistic, calculator, reading);
      }
View Full Code Here

Examples of org.apache.ambari.server.state.stack.Metric

   */
  private  Map<String, PropertyInfo> getPropertyInfo(MetricDefinition def) {
    Map<String, PropertyInfo> defs = new HashMap<String, PropertyInfo>();
   
    for (Entry<String,Metric> entry : def.getMetrics().entrySet()) {
      Metric metric = entry.getValue();
      defs.put(entry.getKey(), new PropertyInfo(
          metric.getName(), metric.isTemporal(), metric.isPointInTime()));
    }
   
    return defs;
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.stats.ResourceCounter.Metric

        storeProvider.getQuotaStore()
            .saveQuota("b", IResourceAggregate.build(new ResourceAggregate(2, 3, 4)));
      }
    });

    assertEquals(new Metric(3, 4, 5), resourceCounter.computeQuotaAllocationTotals());
  }
View Full Code Here

Examples of org.apache.blur.thrift.generated.Metric

      if (metrics == null) {
        return metricsMap;
      } else {
        Map<String, Metric> result = new HashMap<String, Metric>();
        for (String n : metrics) {
          Metric metric = metricsMap.get(n);
          if (metric != null) {
            result.put(n, metric);
          }
        }
        return result;
View Full Code Here

Examples of org.apache.blur.thrift.generated.Metric

            cols[c++] = shardServer;
            StringBuilder sb = new StringBuilder("%" + longestServerName + "s");

            for (int i = 1; i < labels.length; i++) {
              String mn = metricNames.get(labels[i]);
              Metric metric = metrics.get(mn);
              Map<String, Double> doubleMap = metric.getDoubleMap();
              Double value = doubleMap.get("oneMinuteRate");
              if (value == null) {
                value = doubleMap.get("value");
              }
              cols[c++] = humanize(value, sizes.contains(mn));
View Full Code Here

Examples of org.apache.hadoop.metrics2.Metric

  public void testPutMetrics() throws Exception {
    SubsetConfiguration configuration = createNiceMock(SubsetConfiguration.class);
    Connection connection = createNiceMock(Connection.class);
    CallableStatement cstmt = createNiceMock(CallableStatement.class);
    MetricsRecord record = createNiceMock(MetricsRecord.class);
    Metric metric = createNiceMock(Metric.class);

    // set expectations
    expect(configuration.getParent()).andReturn(null);
    expect(configuration.getPrefix()).andReturn("prefix");
    expect(configuration.getString("databaseUrl")).andReturn("url");

    expect(record.context()).andReturn("context");
    expect(record.name()).andReturn("typeName");
    expect(record.tags()).andReturn(new HashSet<MetricsTag>());
    expect(record.timestamp()).andReturn(9999L);

    expect(record.metrics()).andReturn(Collections.singleton(metric));

    expect(metric.name()).andReturn("name").anyTimes();
    expect(metric.value()).andReturn(1234);

    expect(connection.prepareCall("{call dbo.uspGetMetricRecord(?, ?, ?, ?, ?, ?, ?, ?, ?)}")).andReturn(cstmt);
    cstmt.setNString(1, "context");
    cstmt.setNString(2, "typeName");
    cstmt.setNString(eq(3), (String) anyObject());
View Full Code Here

Examples of org.apache.hama.monitor.Metric

 

  private void memory(final MetricsRecord record){
    final MemoryUsage memNonHeap = memoryMXBean.getNonHeapMemoryUsage();
    final MemoryUsage memHeap = memoryMXBean.getHeapMemoryUsage();
    record.add(new Metric(MemNonHeapUsedM, memNonHeap.getUsed() / M));
    record.add(new Metric(MemNonHeapCommittedM,
                           memNonHeap.getCommitted() / M));
    record.add(new Metric(MemHeapUsedM, memHeap.getUsed() / M));
    record.add(new Metric(MemHeapCommittedM, memHeap.getCommitted() / M));

    if(LOG.isDebugEnabled()) {
      LOG.debug(MemNonHeapUsedM.description()+": "+memNonHeap.getUsed() / M);
      LOG.debug(MemNonHeapCommittedM.description()+": "+memNonHeap.getCommitted() / M);
      LOG.debug(MemHeapUsedM.description()+": "+memHeap.getUsed() / M);
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.