From f8f41d0e0d48cc094a6648f7c80048408f7261d4 Mon Sep 17 00:00:00 2001 From: Max Kalika Date: Mon, 11 May 2015 11:39:18 -0700 Subject: [PATCH] Issue #58: Update java package names to com.github.mk23 base. --- debian/jmxproxy.yml.example | 2 +- pom.xml | 4 ++-- scripts/server/jmxproxy.yml | 2 +- .../mk23}/jmxproxy/JMXProxyApplication.java | 4 ++-- .../mk23}/jmxproxy/JMXProxyConfiguration.java | 2 +- .../mk23}/jmxproxy/JMXProxyHealthCheck.java | 4 ++-- .../mk23}/jmxproxy/JMXProxyResource.java | 10 +++++----- .../mk23}/jmxproxy/core/Attribute.java | 2 +- .../{topsy => github/mk23}/jmxproxy/core/History.java | 2 +- .../com/{topsy => github/mk23}/jmxproxy/core/Host.java | 2 +- .../{topsy => github/mk23}/jmxproxy/core/MBean.java | 2 +- .../mk23}/jmxproxy/jmx/ConnectionCredentials.java | 2 +- .../mk23}/jmxproxy/jmx/ConnectionManager.java | 6 +++--- .../mk23}/jmxproxy/jmx/ConnectionWorker.java | 8 ++++---- .../mk23}/jmxproxy/core/tests/AttributeTest.java | 8 ++++---- .../mk23}/jmxproxy/core/tests/HistoryTest.java | 6 +++--- .../jmxproxy/jmx/tests/ConnectionCredentialsTest.java | 5 +++-- .../jmxproxy/jmx/tests/ConnectionManagerTest.java | 6 +++--- 18 files changed, 39 insertions(+), 38 deletions(-) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/JMXProxyApplication.java (94%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/JMXProxyConfiguration.java (98%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/JMXProxyHealthCheck.java (84%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/JMXProxyResource.java (97%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/core/Attribute.java (99%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/core/History.java (96%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/core/Host.java (98%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/core/MBean.java (98%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/jmx/ConnectionCredentials.java (96%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/jmx/ConnectionManager.java (95%) rename src/main/java/com/{topsy => github/mk23}/jmxproxy/jmx/ConnectionWorker.java (97%) rename src/test/java/com/{topsy => github/mk23}/jmxproxy/core/tests/AttributeTest.java (98%) rename src/test/java/com/{topsy => github/mk23}/jmxproxy/core/tests/HistoryTest.java (98%) rename src/test/java/com/{topsy => github/mk23}/jmxproxy/jmx/tests/ConnectionCredentialsTest.java (90%) rename src/test/java/com/{topsy => github/mk23}/jmxproxy/jmx/tests/ConnectionManagerTest.java (95%) diff --git a/debian/jmxproxy.yml.example b/debian/jmxproxy.yml.example index cae1e22..d553d50 100644 --- a/debian/jmxproxy.yml.example +++ b/debian/jmxproxy.yml.example @@ -48,7 +48,7 @@ # # # set jmxproxy classes to log at DEBUG level # loggers: -# "com.topsy.jmxproxy": DEBUG +# "com.github.mk23.jmxproxy": DEBUG # # # configure syslog host and facility # # the local syslog server will need listen on an inet socket diff --git a/pom.xml b/pom.xml index c0e4ced..081acf3 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - com.topsy.jmxproxy + com.github.mk23.jmxproxy jmxproxy 3.1.2 @@ -179,7 +179,7 @@ - com.topsy.jmxproxy.JMXProxyApplication + com.github.mk23.jmxproxy.JMXProxyApplication diff --git a/scripts/server/jmxproxy.yml b/scripts/server/jmxproxy.yml index 159d81d..477ef3e 100644 --- a/scripts/server/jmxproxy.yml +++ b/scripts/server/jmxproxy.yml @@ -7,4 +7,4 @@ logging: level: INFO loggers: - "com.topsy.jmxproxy": DEBUG + "com.github.mk23.jmxproxy": DEBUG diff --git a/src/main/java/com/topsy/jmxproxy/JMXProxyApplication.java b/src/main/java/com/github/mk23/jmxproxy/JMXProxyApplication.java similarity index 94% rename from src/main/java/com/topsy/jmxproxy/JMXProxyApplication.java rename to src/main/java/com/github/mk23/jmxproxy/JMXProxyApplication.java index f82bacf..6e999d1 100644 --- a/src/main/java/com/topsy/jmxproxy/JMXProxyApplication.java +++ b/src/main/java/com/github/mk23/jmxproxy/JMXProxyApplication.java @@ -1,6 +1,6 @@ -package com.topsy.jmxproxy; +package com.github.mk23.jmxproxy; -import com.topsy.jmxproxy.jmx.ConnectionManager; +import com.github.mk23.jmxproxy.jmx.ConnectionManager; import io.dropwizard.Application; import io.dropwizard.assets.AssetsBundle; diff --git a/src/main/java/com/topsy/jmxproxy/JMXProxyConfiguration.java b/src/main/java/com/github/mk23/jmxproxy/JMXProxyConfiguration.java similarity index 98% rename from src/main/java/com/topsy/jmxproxy/JMXProxyConfiguration.java rename to src/main/java/com/github/mk23/jmxproxy/JMXProxyConfiguration.java index 6b1d6c1..4c5e9fb 100644 --- a/src/main/java/com/topsy/jmxproxy/JMXProxyConfiguration.java +++ b/src/main/java/com/github/mk23/jmxproxy/JMXProxyConfiguration.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy; +package com.github.mk23.jmxproxy; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/topsy/jmxproxy/JMXProxyHealthCheck.java b/src/main/java/com/github/mk23/jmxproxy/JMXProxyHealthCheck.java similarity index 84% rename from src/main/java/com/topsy/jmxproxy/JMXProxyHealthCheck.java rename to src/main/java/com/github/mk23/jmxproxy/JMXProxyHealthCheck.java index 2e1d6ca..3e26c72 100644 --- a/src/main/java/com/topsy/jmxproxy/JMXProxyHealthCheck.java +++ b/src/main/java/com/github/mk23/jmxproxy/JMXProxyHealthCheck.java @@ -1,6 +1,6 @@ -package com.topsy.jmxproxy; +package com.github.mk23.jmxproxy; -import com.topsy.jmxproxy.jmx.ConnectionManager; +import com.github.mk23.jmxproxy.jmx.ConnectionManager; import com.codahale.metrics.health.HealthCheck; diff --git a/src/main/java/com/topsy/jmxproxy/JMXProxyResource.java b/src/main/java/com/github/mk23/jmxproxy/JMXProxyResource.java similarity index 97% rename from src/main/java/com/topsy/jmxproxy/JMXProxyResource.java rename to src/main/java/com/github/mk23/jmxproxy/JMXProxyResource.java index daafe52..27a19f3 100644 --- a/src/main/java/com/topsy/jmxproxy/JMXProxyResource.java +++ b/src/main/java/com/github/mk23/jmxproxy/JMXProxyResource.java @@ -1,9 +1,9 @@ -package com.topsy.jmxproxy; +package com.github.mk23.jmxproxy; -import com.topsy.jmxproxy.core.Host; -import com.topsy.jmxproxy.core.MBean; -import com.topsy.jmxproxy.jmx.ConnectionCredentials; -import com.topsy.jmxproxy.jmx.ConnectionManager; +import com.github.mk23.jmxproxy.core.Host; +import com.github.mk23.jmxproxy.core.MBean; +import com.github.mk23.jmxproxy.jmx.ConnectionCredentials; +import com.github.mk23.jmxproxy.jmx.ConnectionManager; import io.dropwizard.jersey.params.BooleanParam; diff --git a/src/main/java/com/topsy/jmxproxy/core/Attribute.java b/src/main/java/com/github/mk23/jmxproxy/core/Attribute.java similarity index 99% rename from src/main/java/com/topsy/jmxproxy/core/Attribute.java rename to src/main/java/com/github/mk23/jmxproxy/core/Attribute.java index 9d53168..0cbf246 100644 --- a/src/main/java/com/topsy/jmxproxy/core/Attribute.java +++ b/src/main/java/com/github/mk23/jmxproxy/core/Attribute.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy.core; +package com.github.mk23.jmxproxy.core; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; diff --git a/src/main/java/com/topsy/jmxproxy/core/History.java b/src/main/java/com/github/mk23/jmxproxy/core/History.java similarity index 96% rename from src/main/java/com/topsy/jmxproxy/core/History.java rename to src/main/java/com/github/mk23/jmxproxy/core/History.java index 6c1c4a1..1183482 100644 --- a/src/main/java/com/topsy/jmxproxy/core/History.java +++ b/src/main/java/com/github/mk23/jmxproxy/core/History.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy.core; +package com.github.mk23.jmxproxy.core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/topsy/jmxproxy/core/Host.java b/src/main/java/com/github/mk23/jmxproxy/core/Host.java similarity index 98% rename from src/main/java/com/topsy/jmxproxy/core/Host.java rename to src/main/java/com/github/mk23/jmxproxy/core/Host.java index 3ca1a3e..614fb72 100644 --- a/src/main/java/com/topsy/jmxproxy/core/Host.java +++ b/src/main/java/com/github/mk23/jmxproxy/core/Host.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy.core; +package com.github.mk23.jmxproxy.core; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/src/main/java/com/topsy/jmxproxy/core/MBean.java b/src/main/java/com/github/mk23/jmxproxy/core/MBean.java similarity index 98% rename from src/main/java/com/topsy/jmxproxy/core/MBean.java rename to src/main/java/com/github/mk23/jmxproxy/core/MBean.java index 2f010ec..a972da2 100644 --- a/src/main/java/com/topsy/jmxproxy/core/MBean.java +++ b/src/main/java/com/github/mk23/jmxproxy/core/MBean.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy.core; +package com.github.mk23.jmxproxy.core; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionCredentials.java b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionCredentials.java similarity index 96% rename from src/main/java/com/topsy/jmxproxy/jmx/ConnectionCredentials.java rename to src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionCredentials.java index 9b3d2ab..846414e 100644 --- a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionCredentials.java +++ b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionCredentials.java @@ -1,4 +1,4 @@ -package com.topsy.jmxproxy.jmx; +package com.github.mk23.jmxproxy.jmx; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionManager.java b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionManager.java similarity index 95% rename from src/main/java/com/topsy/jmxproxy/jmx/ConnectionManager.java rename to src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionManager.java index 695206f..5402581 100644 --- a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionManager.java +++ b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionManager.java @@ -1,7 +1,7 @@ -package com.topsy.jmxproxy.jmx; +package com.github.mk23.jmxproxy.jmx; -import com.topsy.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; -import com.topsy.jmxproxy.core.Host; +import com.github.mk23.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; +import com.github.mk23.jmxproxy.core.Host; import io.dropwizard.lifecycle.Managed; diff --git a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionWorker.java b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionWorker.java similarity index 97% rename from src/main/java/com/topsy/jmxproxy/jmx/ConnectionWorker.java rename to src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionWorker.java index 03818fa..87f02a3 100644 --- a/src/main/java/com/topsy/jmxproxy/jmx/ConnectionWorker.java +++ b/src/main/java/com/github/mk23/jmxproxy/jmx/ConnectionWorker.java @@ -1,8 +1,8 @@ -package com.topsy.jmxproxy.jmx; +package com.github.mk23.jmxproxy.jmx; -import com.topsy.jmxproxy.core.History; -import com.topsy.jmxproxy.core.Host; -import com.topsy.jmxproxy.core.MBean; +import com.github.mk23.jmxproxy.core.History; +import com.github.mk23.jmxproxy.core.Host; +import com.github.mk23.jmxproxy.core.MBean; import java.io.IOException; diff --git a/src/test/java/com/topsy/jmxproxy/core/tests/AttributeTest.java b/src/test/java/com/github/mk23/jmxproxy/core/tests/AttributeTest.java similarity index 98% rename from src/test/java/com/topsy/jmxproxy/core/tests/AttributeTest.java rename to src/test/java/com/github/mk23/jmxproxy/core/tests/AttributeTest.java index 67ffd6c..cad9f24 100644 --- a/src/test/java/com/topsy/jmxproxy/core/tests/AttributeTest.java +++ b/src/test/java/com/github/mk23/jmxproxy/core/tests/AttributeTest.java @@ -1,12 +1,12 @@ -package com.topsy.jmxproxy.core.tests; +package com.github.mk23.jmxproxy.core.tests; + +import com.github.mk23.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; +import com.github.mk23.jmxproxy.jmx.ConnectionManager; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.topsy.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; -import com.topsy.jmxproxy.jmx.ConnectionManager; - import java.io.IOException; import java.util.Arrays; diff --git a/src/test/java/com/topsy/jmxproxy/core/tests/HistoryTest.java b/src/test/java/com/github/mk23/jmxproxy/core/tests/HistoryTest.java similarity index 98% rename from src/test/java/com/topsy/jmxproxy/core/tests/HistoryTest.java rename to src/test/java/com/github/mk23/jmxproxy/core/tests/HistoryTest.java index 2d8a472..e01018f 100644 --- a/src/test/java/com/topsy/jmxproxy/core/tests/HistoryTest.java +++ b/src/test/java/com/github/mk23/jmxproxy/core/tests/HistoryTest.java @@ -1,7 +1,7 @@ -package com.topsy.jmxproxy.core.tests; +package com.github.mk23.jmxproxy.core.tests; -import com.topsy.jmxproxy.core.Attribute; -import com.topsy.jmxproxy.core.History; +import com.github.mk23.jmxproxy.core.Attribute; +import com.github.mk23.jmxproxy.core.History; import java.util.ArrayList; diff --git a/src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionCredentialsTest.java b/src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionCredentialsTest.java similarity index 90% rename from src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionCredentialsTest.java rename to src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionCredentialsTest.java index 6bb8a3d..eeceb74 100644 --- a/src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionCredentialsTest.java +++ b/src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionCredentialsTest.java @@ -1,6 +1,7 @@ -package com.topsy.jmxproxy.jmx.tests; +package com.github.mk23.jmxproxy.jmx.tests; + +import com.github.mk23.jmxproxy.jmx.ConnectionCredentials; -import com.topsy.jmxproxy.jmx.ConnectionCredentials; import org.junit.Test; import static org.junit.Assert.assertTrue; diff --git a/src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionManagerTest.java b/src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionManagerTest.java similarity index 95% rename from src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionManagerTest.java rename to src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionManagerTest.java index 6657f36..7996591 100644 --- a/src/test/java/com/topsy/jmxproxy/jmx/tests/ConnectionManagerTest.java +++ b/src/test/java/com/github/mk23/jmxproxy/jmx/tests/ConnectionManagerTest.java @@ -1,7 +1,7 @@ -package com.topsy.jmxproxy.jmx.tests; +package com.github.mk23.jmxproxy.jmx.tests; -import com.topsy.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; -import com.topsy.jmxproxy.jmx.ConnectionManager; +import com.github.mk23.jmxproxy.JMXProxyConfiguration.JMXProxyApplicationConfiguration; +import com.github.mk23.jmxproxy.jmx.ConnectionManager; import java.util.Arrays;