cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [03/10] cassandra git commit: Add deprecation messages to StorageServiceMBean.forceRepair* methods
Date Mon, 30 Nov 2015 16:32:13 GMT
Add deprecation messages to StorageServiceMBean.forceRepair* methods


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a013f3e0
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a013f3e0
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a013f3e0

Branch: refs/heads/cassandra-3.1
Commit: a013f3e05aebb3e4b6c4d2a19bbd6f2a95df6208
Parents: 0ee8895
Author: Paulo Motta <pauloricardomg@gmail.com>
Authored: Mon Nov 30 07:51:41 2015 -0800
Committer: Yuki Morishita <yukim@apache.org>
Committed: Mon Nov 30 10:30:27 2015 -0600

----------------------------------------------------------------------
 .../cassandra/service/StorageServiceMBean.java  | 22 +++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a013f3e0/src/java/org/apache/cassandra/service/StorageServiceMBean.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageServiceMBean.java b/src/java/org/apache/cassandra/service/StorageServiceMBean.java
index 00060ae..b7784d6 100644
--- a/src/java/org/apache/cassandra/service/StorageServiceMBean.java
+++ b/src/java/org/apache/cassandra/service/StorageServiceMBean.java
@@ -299,8 +299,11 @@ public interface StorageServiceMBean extends NotificationEmitter
      */
     public int repairAsync(String keyspace, Map<String, String> options);
 
+    /**
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     */
     @Deprecated
-    public int forceRepairAsync(String keyspace, boolean isSequential, Collection<String>
dataCenters, Collection<String> hosts,  boolean primaryRange, boolean repairedAt, String...
columnFamilies) throws IOException;
+    public int forceRepairAsync(String keyspace, boolean isSequential, Collection<String>
dataCenters, Collection<String> hosts,  boolean primaryRange, boolean fullRepair, String...
columnFamilies) throws IOException;
 
     /**
      * Invoke repair asynchronously.
@@ -309,28 +312,41 @@ public interface StorageServiceMBean extends NotificationEmitter
      *   type: "repair"
      *   userObject: int array of length 2, [0]=command number, [1]=ordinal of ActiveRepairService.Status
      *
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     *
      * @param parallelismDegree 0: sequential, 1: parallel, 2: DC parallel
      * @return Repair command number, or 0 if nothing to repair
      */
     @Deprecated
     public int forceRepairAsync(String keyspace, int parallelismDegree, Collection<String>
dataCenters, Collection<String> hosts, boolean primaryRange, boolean fullRepair, String...
columnFamilies);
 
+    /**
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     */
     @Deprecated
-    public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName,
boolean isSequential, Collection<String> dataCenters, Collection<String> hosts,
boolean repairedAt, String... columnFamilies) throws IOException;
+    public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName,
boolean isSequential, Collection<String> dataCenters, Collection<String> hosts,
boolean fullRepair, String... columnFamilies) throws IOException;
 
     /**
      * Same as forceRepairAsync, but handles a specified range
      *
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     *
      * @param parallelismDegree 0: sequential, 1: parallel, 2: DC parallel
      */
     @Deprecated
     public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName,
int parallelismDegree, Collection<String> dataCenters, Collection<String> hosts,
boolean fullRepair, String... columnFamilies);
 
+    /**
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     */
     @Deprecated
     public int forceRepairAsync(String keyspace, boolean isSequential, boolean isLocal, boolean
primaryRange, boolean fullRepair, String... columnFamilies);
 
+    /**
+     * @deprecated use {@link #repairAsync(String keyspace, Map options)} instead.
+     */
     @Deprecated
-    public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName,
boolean isSequential, boolean isLocal, boolean repairedAt, String... columnFamilies);
+    public int forceRepairRangeAsync(String beginToken, String endToken, String keyspaceName,
boolean isSequential, boolean isLocal, boolean fullRepair, String... columnFamilies);
 
     public void forceTerminateAllRepairSessions();
 


Mime
View raw message