|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2012-2013 the original author or authors. |
|
|
|
* Copyright 2012-2014 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -127,16 +127,16 @@ public class CodahaleMetricWriterTests { |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
for (int i = 0; i < 10000; i++) { |
|
|
|
for (int i = 0; i < 10000; i++) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Metric<Integer> metric1 = new Metric<Integer>( |
|
|
|
Metric<Integer> metric1 = new Metric<Integer>("timer.test.service", |
|
|
|
"timer.test.service", this.index); |
|
|
|
this.index); |
|
|
|
this.writer.set(metric1); |
|
|
|
this.writer.set(metric1); |
|
|
|
|
|
|
|
|
|
|
|
Metric<Integer> metric2 = new Metric<Integer>( |
|
|
|
Metric<Integer> metric2 = new Metric<Integer>( |
|
|
|
"histogram.test.service", this.index); |
|
|
|
"histogram.test.service", this.index); |
|
|
|
this.writer.set(metric2); |
|
|
|
this.writer.set(metric2); |
|
|
|
|
|
|
|
|
|
|
|
Metric<Integer> metric3 = new Metric<Integer>( |
|
|
|
Metric<Integer> metric3 = new Metric<Integer>("gauge.test.service", |
|
|
|
"gauge.test.service", this.index); |
|
|
|
this.index); |
|
|
|
this.writer.set(metric3); |
|
|
|
this.writer.set(metric3); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (IllegalArgumentException iae) { |
|
|
|
catch (IllegalArgumentException iae) { |
|
|
|
|