Revert "Adding missing method implementation"
This reverts commit 8e5d6490481596dc02d2316e74909dc2747c6d39 in preparation for Cassandra 3.x compatibility changes.
This commit is contained in:
parent
8e5d649048
commit
c08442b158
@ -137,7 +137,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
||||
@Deprecated
|
||||
public long getTotalBytesCompacted() {
|
||||
log(" getTotalBytesCompacted()");
|
||||
return metrics.bytesCompacted.count();
|
||||
return c.getLongValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -187,11 +187,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
||||
*/
|
||||
public int getCoreCompactorThreads() {
|
||||
log(" getCoreCompactorThreads()");
|
||||
/**
|
||||
* Core size pool is meaningless, we still wants to return a valid reponse,
|
||||
* just in case someone will try to call this method.
|
||||
*/
|
||||
return 1;
|
||||
return c.getIntValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -209,11 +205,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
||||
*/
|
||||
public int getMaximumCompactorThreads() {
|
||||
log(" getMaximumCompactorThreads()");
|
||||
/**
|
||||
* Core size pool is meaningless, we still wants to return a valid reponse,
|
||||
* just in case someone will try to call this method.
|
||||
*/
|
||||
return 1;
|
||||
return c.getIntValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -231,11 +223,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
||||
*/
|
||||
public int getCoreValidationThreads() {
|
||||
log(" getCoreValidationThreads()");
|
||||
/**
|
||||
* Core validation size pool is meaningless, we still wants to return a valid reponse,
|
||||
* just in case someone will try to call this method.
|
||||
*/
|
||||
return 1;
|
||||
return c.getIntValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -253,11 +241,7 @@ public class CompactionManager implements CompactionManagerMBean {
|
||||
*/
|
||||
public int getMaximumValidatorThreads() {
|
||||
log(" getMaximumValidatorThreads()");
|
||||
/**
|
||||
* Core validation size pool is meaningless, we still wants to return a valid reponse,
|
||||
* just in case someone will try to call this method.
|
||||
*/
|
||||
return 1;
|
||||
return c.getIntValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,8 +31,6 @@ import javax.json.JsonArray;
|
||||
import javax.json.JsonObject;
|
||||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
import javax.ws.rs.core.MultivaluedHashMap;
|
||||
import javax.ws.rs.core.MultivaluedMap;
|
||||
|
||||
import org.apache.cassandra.metrics.DroppedMessageMetrics;
|
||||
|
||||
@ -242,9 +240,7 @@ public final class MessagingService implements MessagingServiceMBean {
|
||||
|
||||
public int getVersion(String address) throws UnknownHostException {
|
||||
log(" getVersion(String address) throws UnknownHostException");
|
||||
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
|
||||
queryParams.add("addr", address);
|
||||
return c.getIntValue("/messaging_service/version", queryParams);
|
||||
return c.getIntValue("");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1446,7 +1446,8 @@ public class StorageService extends NotificationBroadcasterSupport
|
||||
|
||||
@Override
|
||||
public double getTracingProbability() {
|
||||
// TODO Auto-generated method stub
|
||||
log(" getTracingProbability()");
|
||||
return c.getDoubleValue("/storage_service/trace_probability");
|
||||
return c.getDoubleValue("");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user