@Override
public List<String> getBucketsInPool(String pool) {
if("default".equals(pool)) {
List<String> bucketNameList = new ArrayList<String>();
ClusterStateRequestBuilder stateBuilder = client.admin().cluster().prepareState();
ClusterStateResponse response = stateBuilder.execute().actionGet();
ImmutableOpenMap<String, IndexMetaData> indices = response.getState().getMetaData().getIndices();
for (ObjectCursor<String> index : indices.keys()) {
bucketNameList.add(index.value);
IndexMetaData indexMetaData = indices.get(index.value);
ImmutableOpenMap<String, AliasMetaData> aliases = indexMetaData.aliases();