Repository: cassandra
Updated Branches:
refs/heads/trunk a29778a4b -> f1e45028d
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/trunk
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();
|