Rename "com.cloudius.urchin" package to "com.scylladb.jmx"
Move the Scylla JMX code under "com.scylladb.jmx" package. Signed-off-by: Pekka Enberg <penberg@scylladb.com>
This commit is contained in:
parent
4dfa0737ac
commit
0f044e2f47
4
pom.xml
4
pom.xml
@ -2,7 +2,7 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.cloudius.urchin</groupId>
|
||||
<groupId>com.scylladb.jmx</groupId>
|
||||
<artifactId>scylla-jmx</artifactId>
|
||||
<version>1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
@ -84,7 +84,7 @@
|
||||
<transformers>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<manifestEntries>
|
||||
<Main-Class>com.cloudius.urchin.main.Main</Main-Class>
|
||||
<Main-Class>com.scylladb.jmx.main.Main</Main-Class>
|
||||
</manifestEntries>
|
||||
</transformer>
|
||||
</transformers>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright 2015 Cloudius Systems
|
||||
*/
|
||||
package com.cloudius.urchin.api;
|
||||
package com.scylladb.jmx.api;
|
||||
|
||||
import java.io.StringReader;
|
||||
import java.net.InetAddress;
|
||||
@ -31,9 +31,11 @@ import javax.ws.rs.client.WebTarget;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
import org.glassfish.jersey.client.ClientConfig;
|
||||
import com.cloudius.urchin.utils.EstimatedHistogram;
|
||||
import com.cloudius.urchin.utils.SnapshotDetailsTabularData;
|
||||
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
import com.scylladb.jmx.utils.SnapshotDetailsTabularData;
|
||||
import com.yammer.metrics.core.HistogramValues;
|
||||
|
||||
public class APIClient {
|
@ -1,4 +1,4 @@
|
||||
package com.cloudius.urchin.api;
|
||||
package com.scylladb.jmx.api;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
@ -19,9 +19,9 @@
|
||||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.cloudius.urchin.api;
|
||||
package com.scylladb.jmx.api;
|
||||
|
||||
import com.cloudius.urchin.utils.EstimatedHistogram;
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
|
||||
public class CacheEntry {
|
||||
long time;
|
@ -1,9 +1,9 @@
|
||||
/*
|
||||
* Copyright 2015 Cloudius Systems
|
||||
*/
|
||||
package com.cloudius.urchin.main;
|
||||
package com.scylladb.jmx.main;
|
||||
|
||||
import com.cloudius.urchin.api.APIConfig;
|
||||
import com.scylladb.jmx.api.APIConfig;
|
||||
|
||||
import org.apache.cassandra.db.ColumnFamilyStore;
|
||||
import org.apache.cassandra.db.commitlog.CommitLog;
|
@ -1,4 +1,4 @@
|
||||
package com.cloudius.urchin.metrics;
|
||||
package com.scylladb.jmx.metrics;
|
||||
|
||||
/*
|
||||
* Copyright 2015 Cloudius Systems
|
@ -21,7 +21,7 @@
|
||||
*
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
package com.cloudius.urchin.metrics;
|
||||
package com.scylladb.jmx.metrics;
|
||||
|
||||
import com.yammer.metrics.core.MetricName;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
|
||||
package com.cloudius.urchin.metrics;
|
||||
package com.scylladb.jmx.metrics;
|
||||
|
||||
import com.yammer.metrics.core.MetricName;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
|
||||
package com.cloudius.urchin.utils;
|
||||
package com.scylladb.jmx.utils;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.atomic.AtomicLongArray;
|
@ -22,7 +22,7 @@
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
|
||||
package com.cloudius.urchin.utils;
|
||||
package com.scylladb.jmx.utils;
|
||||
|
||||
import java.io.*;
|
||||
import java.text.DecimalFormat;
|
@ -22,7 +22,7 @@
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
|
||||
package com.cloudius.urchin.utils;
|
||||
package com.scylladb.jmx.utils;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.cloudius.urchin.utils;
|
||||
package com.scylladb.jmx.utils;
|
||||
/*
|
||||
* Copyright (C) 2015 ScyllaDB
|
||||
*/
|
@ -20,7 +20,7 @@
|
||||
*
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
package com.cloudius.urchin.utils;
|
||||
package com.scylladb.jmx.utils;
|
||||
|
||||
import java.util.Map;
|
||||
import javax.management.openmbean.*;
|
@ -5,7 +5,7 @@ package com.yammer.metrics.core;
|
||||
* Modified by Cloudius Systems
|
||||
*/
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.yammer.metrics.core.Counter;
|
||||
|
||||
public class APICounter extends Counter {
|
||||
|
@ -10,7 +10,7 @@ import java.lang.reflect.Field;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.yammer.metrics.stats.Sample;
|
||||
import com.yammer.metrics.stats.Snapshot;
|
||||
|
||||
|
@ -8,7 +8,7 @@ package com.yammer.metrics.core;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
public class APIMeter extends APISettableMeter {
|
||||
String url;
|
||||
|
@ -39,8 +39,8 @@ import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import org.apache.cassandra.metrics.ColumnFamilyMetrics;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.google.common.base.Throwables;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
public class ColumnFamilyStore implements ColumnFamilyStoreMBean {
|
||||
private static final java.util.logging.Logger logger = java.util.logging.Logger
|
||||
|
@ -31,7 +31,7 @@ import javax.management.ObjectName;
|
||||
|
||||
import org.apache.cassandra.metrics.CommitLogMetrics;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
/*
|
||||
* Commit Log tracks every write operation into the system. The aim of the commit log is to be able to
|
||||
|
@ -29,7 +29,7 @@ import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import org.apache.cassandra.metrics.CompactionMetrics;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
/**
|
||||
* A singleton which manages a private executor of ongoing compactions.
|
||||
|
@ -33,7 +33,7 @@ import javax.json.JsonObject;
|
||||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
public class FailureDetector implements FailureDetectorMBean {
|
||||
public static final String MBEAN_NAME = "org.apache.cassandra.net:type=FailureDetector";
|
||||
|
@ -31,7 +31,7 @@ import javax.management.ObjectName;
|
||||
import javax.ws.rs.core.MultivaluedHashMap;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
/**
|
||||
* This module is responsible for Gossiping information for the local endpoint.
|
||||
|
@ -26,7 +26,7 @@ import javax.management.ObjectName;
|
||||
import javax.ws.rs.core.MultivaluedHashMap;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
public class EndpointSnitchInfo implements EndpointSnitchInfoMBean {
|
||||
private static final java.util.logging.Logger logger = java.util.logging.Logger
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
package org.apache.cassandra.metrics;
|
||||
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.yammer.metrics.core.*;
|
||||
|
||||
public class CASClientRequestMetrics extends ClientRequestMetrics {
|
||||
|
@ -26,10 +26,10 @@ package org.apache.cassandra.metrics;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.yammer.metrics.core.Gauge;
|
||||
import com.yammer.metrics.core.Meter;
|
||||
|
||||
|
@ -29,8 +29,8 @@ package org.apache.cassandra.metrics;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.yammer.metrics.Metrics;
|
||||
import com.yammer.metrics.core.Counter;
|
||||
import com.yammer.metrics.core.Meter;
|
||||
|
@ -30,13 +30,13 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.cassandra.db.ColumnFamilyStore;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.cloudius.urchin.utils.EstimatedHistogram;
|
||||
import com.cloudius.urchin.utils.RecentEstimatedHistogram;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Sets;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
import com.scylladb.jmx.utils.RecentEstimatedHistogram;
|
||||
import com.yammer.metrics.Metrics;
|
||||
import com.yammer.metrics.core.*;
|
||||
|
||||
|
@ -23,10 +23,10 @@
|
||||
*/
|
||||
package org.apache.cassandra.metrics;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.yammer.metrics.core.Gauge;
|
||||
import com.yammer.metrics.core.Timer;
|
||||
|
||||
|
@ -25,10 +25,10 @@ package org.apache.cassandra.metrics;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.yammer.metrics.core.Counter;
|
||||
import com.yammer.metrics.core.Gauge;
|
||||
import com.yammer.metrics.core.Meter;
|
||||
|
@ -28,9 +28,9 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.cassandra.net.MessagingService;
|
||||
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.yammer.metrics.core.APISettableMeter;
|
||||
|
||||
/**
|
||||
|
@ -22,8 +22,8 @@ package org.apache.cassandra.metrics;
|
||||
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.utils.EstimatedHistogram;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
|
||||
public class EstimatedHistogramWrapper {
|
||||
private APIClient c = new APIClient();
|
||||
|
@ -26,13 +26,13 @@ package org.apache.cassandra.metrics;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.cloudius.urchin.utils.EstimatedHistogram;
|
||||
import com.cloudius.urchin.utils.RecentEstimatedHistogram;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.utils.EstimatedHistogram;
|
||||
import com.scylladb.jmx.utils.RecentEstimatedHistogram;
|
||||
import com.yammer.metrics.core.Counter;
|
||||
import com.yammer.metrics.core.Timer;
|
||||
|
||||
|
@ -23,9 +23,9 @@
|
||||
*/
|
||||
package org.apache.cassandra.metrics;
|
||||
|
||||
import com.cloudius.urchin.metrics.APIMetrics;
|
||||
import com.cloudius.urchin.metrics.DefaultNameFactory;
|
||||
import com.cloudius.urchin.metrics.MetricNameFactory;
|
||||
import com.scylladb.jmx.metrics.APIMetrics;
|
||||
import com.scylladb.jmx.metrics.DefaultNameFactory;
|
||||
import com.scylladb.jmx.metrics.MetricNameFactory;
|
||||
import com.yammer.metrics.core.Counter;
|
||||
|
||||
/**
|
||||
|
@ -31,8 +31,10 @@ import javax.json.JsonArray;
|
||||
import javax.json.JsonObject;
|
||||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
import org.apache.cassandra.metrics.DroppedMessageMetrics;
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.yammer.metrics.core.APISettableMeter;
|
||||
|
||||
public final class MessagingService implements MessagingServiceMBean {
|
||||
|
@ -34,7 +34,7 @@ import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import org.apache.cassandra.metrics.CacheMetrics;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
public class CacheService implements CacheServiceMBean {
|
||||
private static final java.util.logging.Logger logger = java.util.logging.Logger
|
||||
|
@ -31,7 +31,7 @@ import javax.management.ObjectName;
|
||||
import javax.ws.rs.core.MultivaluedHashMap;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
import org.apache.cassandra.metrics.*;
|
||||
|
||||
|
@ -44,8 +44,8 @@ import org.apache.cassandra.metrics.StorageMetrics;
|
||||
import org.apache.cassandra.repair.RepairParallelism;
|
||||
import org.apache.cassandra.streaming.StreamManager;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.cloudius.urchin.utils.FileUtils;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
import com.scylladb.jmx.utils.FileUtils;
|
||||
|
||||
/**
|
||||
* This abstraction contains the token/identifier of this node on the identifier
|
||||
|
@ -37,10 +37,10 @@ import javax.management.openmbean.CompositeData;
|
||||
|
||||
import org.apache.cassandra.streaming.management.StreamStateCompositeData;
|
||||
|
||||
import com.cloudius.urchin.api.APIClient;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Sets;
|
||||
import com.scylladb.jmx.api.APIClient;
|
||||
|
||||
/**
|
||||
* StreamManager manages currently running {@link StreamResultFuture}s and
|
||||
|
Loading…
Reference in New Issue
Block a user