Examples of addMetric()


Examples of com.thoughtworks.xstream.tools.benchmark.Harness.addMetric()

        });

        Harness harness = new Harness();
        harness.addMetric(new SerializationSpeedMetric(100));
        harness.addMetric(new DeserializationSpeedMetric(100, false));
        harness.addProduct(new CombinedLookupReplacer(0));
        // harness.addProduct(new CombinedLookupReplacer(32));
        harness.addProduct(new CombinedLookupAppender(0));
        // harness.addProduct(new CombinedLookupAppender(32));
        harness.addProduct(new SeparateLookupReplacer(0));
View Full Code Here

Examples of com.thoughtworks.xstream.tools.benchmark.Harness.addMetric()

* @author Jörg Schaible
*/
public class ReflectionBenchmark {
    public static void main(String[] args) {
        Harness harness = new Harness();
        harness.addMetric(new SerializationSpeedMetric(10));
        harness.addMetric(new DeserializationSpeedMetric(10, true));
        harness.addProduct(new XStreamPlain());
        harness.addProduct(new XStreamClassAliases());
        harness.addProduct(new XStreamFieldAliases());
        harness.addProduct(new XStreamLocalAttributeAliases());
View Full Code Here

Examples of com.thoughtworks.xstream.tools.benchmark.Harness.addMetric()

*/
public class ReflectionBenchmark {
    public static void main(String[] args) {
        Harness harness = new Harness();
        harness.addMetric(new SerializationSpeedMetric(10));
        harness.addMetric(new DeserializationSpeedMetric(10, true));
        harness.addProduct(new XStreamPlain());
        harness.addProduct(new XStreamClassAliases());
        harness.addProduct(new XStreamFieldAliases());
        harness.addProduct(new XStreamLocalAttributeAliases());
        harness.addTarget(new FieldReflection());
View Full Code Here

Examples of hudson.plugins.rubyMetrics.railsStats.model.RailsStatsResults.addMetric()

                for (int i = 1; i < header.length; i++) { //columns[0] == rails class type
                    metrics.put(RailsStatsMetrics.toRailsStatsMetrics(header[i].trim()), Integer.valueOf(columns[i].trim()));
                }

                response.addMetric(columns[0].trim(), metrics);
            } else {
                Pattern pattern = Pattern.compile("CodeLOC:([0-9]+)TestLOC:([0-9]+)CodetoTestRatio:([0-9:.]+)");
                Matcher matcher = pattern.matcher(columns[0].replaceAll("[\\s\\r\\n+-]+", ""));
                if (matcher.matches()) {
                    response.setCodeLocSummary(matcher.group(1));
View Full Code Here

Examples of io.druid.query.timeseries.TimeseriesResultBuilder.addMetric()

    TimeseriesResultBuilder builder = new TimeseriesResultBuilder(
        new DateTime("2012-01-01T00:00:00Z")
    );
    CountAggregator rows = new CountAggregator("rows");
    rows.aggregate();
    builder.addMetric(rows);
    final Result<TimeseriesResultValue> value = builder.build();

    final SpecificSegmentQueryRunner queryRunner = new SpecificSegmentQueryRunner(
        new QueryRunner()
        {
View Full Code Here

Examples of org.grouplens.lenskit.eval.traintest.SimpleEvaluator.addMetric()

        configureAlgorithm(algo.getConfig());
        evalCommand.addAlgorithm(algo);

        evalCommand.addDataset(new GenericDataSource("ml-100k", dao, PreferenceDomain.fromString("[1,5]/1")), 5, 0.2);

        evalCommand.addMetric(new CoveragePredictMetric())
                   .addMetric(new RMSEPredictMetric())
                   .addMetric(new MAEPredictMetric());


        Table result = evalCommand.call();
View Full Code Here

Examples of org.jboss.as.controller.ResourceBuilder.addMetric()

            for (Map.Entry<String, Attribute> entry: handler.findProtocolAttributes(protocolClass).entrySet()) {
                String name = entry.getKey();
                Attribute attribute = entry.getValue();
                FieldType type = FieldType.valueOf(attribute.getType());
                resolver.addDescription(name, attribute.getDescription());
                builder.addMetric(new SimpleAttributeDefinitionBuilder(name, type.getModelType()).setStorageRuntime().build(), handler);
            }

            return builder.build();
        } catch (ClassNotFoundException e) {
            throw JGroupsLogger.ROOT_LOGGER.unableToLoadProtocolClass(className);
View Full Code Here

Examples of org.kairosdb.client.builder.MetricBuilder.addMetric()

    HttpClient client = new HttpClient("http://bogus");
    FakeClient fakeClient = new FakeClient();
    client.setClient(fakeClient);

    MetricBuilder builder = MetricBuilder.getInstance();
    builder.addMetric("newMetric").addDataPoint(10, 10).addTag("host", "server1");

    try
    {
      client.pushMetrics(builder);
      fail("IOException should have been thrown");
View Full Code Here

Examples of org.kairosdb.client.builder.MetricBuilder.addMetric()

    FakeClient fakeClient = new FakeClient();
    client.setClient(fakeClient);
    client.setRetryCount(10);

    MetricBuilder builder = MetricBuilder.getInstance();
    builder.addMetric("newMetric").addDataPoint(10, 10).addTag("host", "server1");

    try
    {
      client.pushMetrics(builder);
      fail("IOException should have been thrown");
View Full Code Here

Examples of org.kairosdb.client.builder.MetricBuilder.addMetric()

    FakeClient fakeClient = new FakeClient();
    client.setClient(fakeClient);
    client.setRetryCount(0);

    MetricBuilder builder = MetricBuilder.getInstance();
    builder.addMetric("newMetric").addDataPoint(10, 10).addTag("host", "server1");

    try
    {
      client.pushMetrics(builder);
      fail("IOException should have been thrown");
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.