Package org.kairosdb.client.builder

Examples of org.kairosdb.client.builder.MetricBuilder


  {
    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


    HttpClient client = new HttpClient("http://bogus");
    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

    HttpClient client = new HttpClient("http://bogus");
    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

Related Classes of org.kairosdb.client.builder.MetricBuilder

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.