mirror of https://github.com/apache/cassandra
Keep StorageServiceMBean interface stable
Patch by Carl Yeksigian, reviewed by Stefania for CASSANDRA-10382
This commit is contained in:
parent
31fc6d25fd
commit
92c57879f7
|
|
@ -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<>();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue