StorageService: Allow querying the view build status

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
Message-Id: <20180327002342.11494-1-duarte@scylladb.com>
This commit is contained in:
Duarte Nunes 2018-03-27 02:23:42 +02:00 committed by Avi Kivity
parent 4e4589ba6f
commit 55abaa1bc8
2 changed files with 8 additions and 0 deletions

View File

@ -1095,6 +1095,12 @@ public class StorageService extends MetricsMBean implements StorageServiceMBean,
return client.getListStrValue("/storage_service/keyspaces", queryParams);
}
@Override
public Map<String, String> getViewBuildStatuses(String keyspace, String view) {
log(" getViewBuildStatuses()");
return client.getMapStrValue("storage_service/view_build_statuses/" + keyspace + "/" + view);
}
/**
* Change endpointsnitch class and dynamic-ness (and dynamic attributes) at
* runtime

View File

@ -540,6 +540,8 @@ public interface StorageServiceMBean extends NotificationEmitter {
public List<String> getNonSystemKeyspaces();
public Map<String, String> getViewBuildStatuses(String keyspace, String view);
public List<String> getNonLocalStrategyKeyspaces();
/**