cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [1/2] cassandra git commit: Keep StorageServiceMBean interface stable
Date Thu, 01 Oct 2015 13:10:55 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.2 8123b3b07 -> 74bc1cc7d


Keep StorageServiceMBean interface stable

Patch by Carl Yeksigian, reviewed by Stefania for CASSANDRA-10382


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

Branch: refs/heads/cassandra-2.2
Commit: 92c57879f7148e86574aedd259cbdce2ec988a31
Parents: 31fc6d2
Author: Carl Yeksigian <carl@apache.org>
Authored: Wed Sep 30 12:33:42 2015 -0400
Committer: T Jake Luciani <jake@apache.org>
Committed: Thu Oct 1 09:05:08 2015 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java      | 5 +++++
 src/java/org/apache/cassandra/service/StorageServiceMBean.java | 4 ++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/92c57879/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index 8a2e71e..d5730d5 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1416,6 +1416,11 @@ public class StorageService extends NotificationBroadcasterSupport
implements IE
         return getTokenMetadata().getHostId(FBUtilities.getBroadcastAddress()).toString();
     }
 
+    public Map<String, String> getHostIdMap()
+    {
+        return getEndpointToHostId();
+    }
+
     public Map<String, String> getEndpointToHostId()
     {
         Map<String, String> mapOut = new HashMap<>();

http://git-wip-us.apache.org/repos/asf/cassandra/blob/92c57879/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 7e74947..b8582a3 100644
--- a/src/java/org/apache/cassandra/service/StorageServiceMBean.java
+++ b/src/java/org/apache/cassandra/service/StorageServiceMBean.java
@@ -158,6 +158,10 @@ public interface StorageServiceMBean extends NotificationEmitter
     /** Retrieve this hosts unique ID */
     public String getLocalHostId();
 
+    /** {@link StorageServiceMBean#getEndpointToHostId} */
+    @Deprecated
+    public Map<String, String> getHostIdMap();
+
     /** Retrieve the mapping of endpoint to host ID */
     public Map<String, String> getEndpointToHostId();
 


Mime
View raw message