Keep StorageServiceMBean interface stable

Patch by Carl Yeksigian, reviewed by Stefania for CASSANDRA-10382
This commit is contained in:
Carl Yeksigian 2015-09-30 12:33:42 -04:00 committed by T Jake Luciani
parent 31fc6d25fd
commit 92c57879f7
2 changed files with 9 additions and 0 deletions

View File

@ -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<>();

View File

@ -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();