james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject james-project git commit: JAMES-2084 Start JMX reporter on Spring
Date Tue, 04 Jul 2017 07:04:37 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 02d86a469 -> 63d7c108c


JAMES-2084 Start JMX reporter on Spring


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/63d7c108
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/63d7c108
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/63d7c108

Branch: refs/heads/master
Commit: 63d7c108c428f7eb061f9fc7eae8df212bde20a4
Parents: 02d86a4
Author: benwa <btellier@linagora.com>
Authored: Mon Jul 3 19:02:21 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Mon Jul 3 19:02:21 2017 +0700

----------------------------------------------------------------------
 .../apache/james/metrics/dropwizard/DropWizardMetricFactory.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/63d7c108/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardMetricFactory.java
----------------------------------------------------------------------
diff --git a/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardMetricFactory.java
b/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardMetricFactory.java
index ad9015f..55da0dc 100644
--- a/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardMetricFactory.java
+++ b/metrics/metrics-dropwizard/src/main/java/org/apache/james/metrics/dropwizard/DropWizardMetricFactory.java
@@ -19,6 +19,7 @@
 
 package org.apache.james.metrics.dropwizard;
 
+import javax.annotation.PostConstruct;
 import javax.annotation.PreDestroy;
 import javax.inject.Inject;
 
@@ -52,6 +53,7 @@ public class DropWizardMetricFactory implements MetricFactory {
         return new DropWizardTimeMetric(name, metricRegistry.timer(name).time());
     }
 
+    @PostConstruct
     public void start() throws ConfigurationException {
         jmxReporter.start();
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message