diff --git a/api/src/main/java/org/commonjava/maven/galley/config/TransportMetricConfig.java b/api/src/main/java/org/commonjava/maven/galley/config/TransportMetricConfig.java deleted file mode 100644 index a5278b91b..000000000 --- a/api/src/main/java/org/commonjava/maven/galley/config/TransportMetricConfig.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (C) 2013 Red Hat, Inc. (https://github.com/Commonjava/galley) - * - * Licensed 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.commonjava.maven.galley.config; - -import org.commonjava.maven.galley.model.Location; - -public interface TransportMetricConfig -{ - boolean isEnabled(); - - /** - * For clustering. Return node prefix. This will be prepended to metric names. - * @return null if not clustered. - */ - String getNodePrefix(); - - /** - * Get metric unique name for the given location. - * @param location from where to download artifacts, - * e.g., maven:remote:test, maven:remote:koji-com.google.guava-guava-parent-14.0.1 - * @return metric unique name for this location. null if not going to measure metric for this location. - */ - String getMetricUniqueName( Location location ); - -} diff --git a/cdi-embedder/src/test/java/org/commonjava/maven/galley/embed/TestCDIProvider.java b/cdi-embedder/src/test/java/org/commonjava/maven/galley/embed/TestCDIProvider.java index e910b43e1..040bd6cb8 100644 --- a/cdi-embedder/src/test/java/org/commonjava/maven/galley/embed/TestCDIProvider.java +++ b/cdi-embedder/src/test/java/org/commonjava/maven/galley/embed/TestCDIProvider.java @@ -18,10 +18,8 @@ import org.commonjava.cdi.util.weft.config.DefaultWeftConfig; import org.commonjava.cdi.util.weft.config.WeftConfig; import org.commonjava.maven.galley.cache.partyline.PartyLineCacheProvider; -import org.commonjava.maven.galley.config.TransportMetricConfig; import org.commonjava.maven.galley.filearc.FileTransportConfig; import org.commonjava.maven.galley.io.TransferDecoratorManager; -import org.commonjava.maven.galley.model.Location; import org.commonjava.maven.galley.spi.event.FileEventManager; import org.commonjava.maven.galley.spi.io.PathGenerator; import org.commonjava.maven.galley.spi.transport.LocationExpander; @@ -66,27 +64,6 @@ public class TestCDIProvider private WeftConfig weftConfig; - //private MetricRegistry metricRegistry; - - private final TransportMetricConfig transportMetricConfig = new TransportMetricConfig() - { - public boolean isEnabled() { - return false; - } - - @Override - public String getNodePrefix() - { - return null; - } - - @Override - public String getMetricUniqueName( Location location ) - { - return null; - } - }; - private final GlobalProxyConfig globalProxyConfig = new GlobalProxyConfig() { @Override @@ -204,13 +181,6 @@ public WeftConfig getWeftConfig() return weftConfig; } - @Produces - @Default - public TransportMetricConfig getTransportMetricConfig() - { - return transportMetricConfig; - } - @Produces @Default public GlobalProxyConfig getGlobalProxyConfig()