Examples of Gauge


Examples of org.apache.sirona.gauges.Gauge

        assertEquals(0, gauges.size());
    }

    @Test
    public void ehCacheTransactionCommittedCountManagerGauge() {
        final Gauge gauge = new EhCacheTransactionCommittedCountManagerGauge(mgr);
        assertEquals(0., gauge.value(), 0.);
        mgr.getTransactionController().begin();
        mgr.getTransactionController().commit();
        assertEquals(1., gauge.value(), 0.);
    }
View Full Code Here

Examples of org.apache.sirona.gauges.Gauge

        assertEquals(1., gauge.value(), 0.);
    }

    @Test
    public void ehCacheTransactionRollbackedCountManagerGauge() {
        final Gauge gauge = new EhCacheTransactionRollbackedCountManagerGauge(mgr);
        assertEquals(0., gauge.value(), 0.);
        mgr.getTransactionController().begin();
        mgr.getTransactionController().rollback();
        assertEquals(1., gauge.value(), 0.);
    }
View Full Code Here

Examples of org.graylog2.restclient.lib.metrics.Gauge

                    return new Timer(timing, Timer.Unit.valueOf(timerTimeUnit.toUpperCase()));
                case METER:
                    Map<String, Object> rate = (Map<String, Object>) metric.get("rate");
                    return new Meter(rate);
                case GAUGE:
                    return new Gauge(metric.get("value"));
                case HISTOGRAM:
                    Map<String, Object> histoTiming = (Map<String, Object>) metric.get("time");
                    double count = ((Number) metric.get("count")).doubleValue();
                    return new Histogram(histoTiming, count);
            }
View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.Gauge

    super(connectionFactory, gaugePrefix);
  }

  @Override
  Gauge create(String name, Long value) {
    return new Gauge(name, value);
  }
View Full Code Here

Examples of qat.components.Gauge

    parserLabel = new JLabel("",SwingConstants.CENTER);
    parserLabel.setForeground(Color.black);
    parserLabel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    statusBar.add(parserLabel);
    JPanel p2 = new JPanel(new GridLayout(1,1));
    statusGauge = new Gauge();
    statusGauge.setForeground(Color.green, Color.red, Color.blue, new Color(99,99,156), Color.orange);
    p2.add(statusGauge);
    p2.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    statusBar.add(p2);
    runtimeComponent.setStatus(Resources.getString("ready"),0,0,0,0,0,0);
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.