You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2023/03/14 07:24:54 UTC
[james-project] branch master updated: [FIX] Remove james-server-guice-es-resporter from dependencies (#1481)
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 17f82c39e0 [FIX] Remove james-server-guice-es-resporter from dependencies (#1481)
17f82c39e0 is described below
commit 17f82c39e08167b2d1316277f5be76d4252e9649
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Tue Mar 14 14:24:45 2023 +0700
[FIX] Remove james-server-guice-es-resporter from dependencies (#1481)
---
.../modules/TestDockerESMetricReporterModule.java | 54 ----------------------
server/apps/scaling-pulsar-smtp/pom.xml | 4 --
.../modules/TestDockerESMetricReporterModule.java | 54 ----------------------
3 files changed, 112 deletions(-)
diff --git a/server/apps/cassandra-app/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java b/server/apps/cassandra-app/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java
deleted file mode 100644
index def9e5dc8b..0000000000
--- a/server/apps/cassandra-app/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one *
- * or more contributor license agreements. See the NOTICE file *
- * distributed with this work for additional information *
- * regarding copyright ownership. The ASF licenses this file *
- * to you under the Apache License, Version 2.0 (the *
- * "License"); you may not use this file except in compliance *
- * with the License. You may obtain a copy of the License at *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, *
- * software distributed under the License is distributed on an *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
- * KIND, either express or implied. See the License for the *
- * specific language governing permissions and limitations *
- * under the License. *
- ****************************************************************/
-
-package org.apache.james.modules;
-
-import javax.inject.Singleton;
-
-import org.apache.james.metrics.es.v7.ESReporterConfiguration;
-import org.apache.james.util.Host;
-
-import com.google.inject.AbstractModule;
-import com.google.inject.Provides;
-
-public class TestDockerESMetricReporterModule extends AbstractModule {
-
- public static final String METRICS_INDEX = "metrics";
-
- private final Host esHttpHost;
-
- public TestDockerESMetricReporterModule(Host esHttpHost) {
- this.esHttpHost = esHttpHost;
- }
-
- @Override
- protected void configure() {
- }
-
- @Provides
- @Singleton
- public ESReporterConfiguration provideConfiguration() {
- return ESReporterConfiguration.builder()
- .enabled()
- .onHost(esHttpHost.getHostName(), esHttpHost.getPort())
- .onIndex(METRICS_INDEX)
- .periodInSecond(1L)
- .build();
- }
-}
diff --git a/server/apps/scaling-pulsar-smtp/pom.xml b/server/apps/scaling-pulsar-smtp/pom.xml
index 27d409a555..5ded149de0 100644
--- a/server/apps/scaling-pulsar-smtp/pom.xml
+++ b/server/apps/scaling-pulsar-smtp/pom.xml
@@ -118,10 +118,6 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>${james.groupId}</groupId>
- <artifactId>james-server-guice-es-resporter</artifactId>
- </dependency>
<dependency>
<groupId>${james.groupId}</groupId>
<artifactId>james-server-guice-smtp</artifactId>
diff --git a/server/apps/scaling-pulsar-smtp/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java b/server/apps/scaling-pulsar-smtp/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java
deleted file mode 100644
index def9e5dc8b..0000000000
--- a/server/apps/scaling-pulsar-smtp/src/test/java/org/apache/james/modules/TestDockerESMetricReporterModule.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one *
- * or more contributor license agreements. See the NOTICE file *
- * distributed with this work for additional information *
- * regarding copyright ownership. The ASF licenses this file *
- * to you under the Apache License, Version 2.0 (the *
- * "License"); you may not use this file except in compliance *
- * with the License. You may obtain a copy of the License at *
- * *
- * http://www.apache.org/licenses/LICENSE-2.0 *
- * *
- * Unless required by applicable law or agreed to in writing, *
- * software distributed under the License is distributed on an *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
- * KIND, either express or implied. See the License for the *
- * specific language governing permissions and limitations *
- * under the License. *
- ****************************************************************/
-
-package org.apache.james.modules;
-
-import javax.inject.Singleton;
-
-import org.apache.james.metrics.es.v7.ESReporterConfiguration;
-import org.apache.james.util.Host;
-
-import com.google.inject.AbstractModule;
-import com.google.inject.Provides;
-
-public class TestDockerESMetricReporterModule extends AbstractModule {
-
- public static final String METRICS_INDEX = "metrics";
-
- private final Host esHttpHost;
-
- public TestDockerESMetricReporterModule(Host esHttpHost) {
- this.esHttpHost = esHttpHost;
- }
-
- @Override
- protected void configure() {
- }
-
- @Provides
- @Singleton
- public ESReporterConfiguration provideConfiguration() {
- return ESReporterConfiguration.builder()
- .enabled()
- .onHost(esHttpHost.getHostName(), esHttpHost.getPort())
- .onIndex(METRICS_INDEX)
- .periodInSecond(1L)
- .build();
- }
-}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org