|
|
@ -55,9 +55,6 @@ public class MetricsManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a {@link Timer} whose name is based on a class name and a |
|
|
|
* Creates a {@link Timer} whose name is based on a class name and a |
|
|
|
* qualified name. |
|
|
|
* qualified name. |
|
|
|
* @param clazz |
|
|
|
|
|
|
|
* @param name |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Timer timer(Class clazz, String name) { |
|
|
|
public Timer timer(Class clazz, String name) { |
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
@ -70,9 +67,6 @@ public class MetricsManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Creates a {@link Timer} whose name is based on an object's class name and a |
|
|
|
* Creates a {@link Timer} whose name is based on an object's class name and a |
|
|
|
* qualified name. |
|
|
|
* qualified name. |
|
|
|
* @param ref |
|
|
|
|
|
|
|
* @param name |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Timer timer(Object ref, String name) { |
|
|
|
public Timer timer(Object ref, String name) { |
|
|
|
return timer(ref.getClass(),name); |
|
|
|
return timer(ref.getClass(),name); |
|
|
@ -82,9 +76,6 @@ public class MetricsManager { |
|
|
|
* Initiate a {@link TimerBuilder} using a condition. |
|
|
|
* Initiate a {@link TimerBuilder} using a condition. |
|
|
|
* If the condition is false, a void {@link Timer} will finally be built thus |
|
|
|
* If the condition is false, a void {@link Timer} will finally be built thus |
|
|
|
* no timer will be registered in the Metrics registry. |
|
|
|
* no timer will be registered in the Metrics registry. |
|
|
|
* |
|
|
|
|
|
|
|
* @param ifTrue |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public TimerBuilder condition(boolean ifTrue) { |
|
|
|
public TimerBuilder condition(boolean ifTrue) { |
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
|
if (metricsActivatedByConfiguration()) { |
|
|
|