@Override
 public BulkNodeClient stopBulk(String index) throws IOException {
   if (metric == null) {
     return this;
   }
   if (metric.isBulk(index)) {
     ClientHelper.updateIndexSetting(
         client, index, "refresh_interval", metric.getStopBulkRefreshIntervals().get(index));
     metric.removeBulk(index);
   }
   return this;
 }
 @Override
 public BulkNodeClient startBulk(String index, long startRefreshInterval, long stopRefreshIterval)
     throws IOException {
   if (metric == null) {
     return this;
   }
   if (!metric.isBulk(index)) {
     metric.setupBulk(index, startRefreshInterval, stopRefreshIterval);
     ClientHelper.updateIndexSetting(client, index, "refresh_interval", startRefreshInterval);
   }
   return this;
 }