import org.elasticsearch.common.unit.TimeValue;
import org.sonar.core.profiling.Profiling;
import org.sonar.core.profiling.StopWatch;
-import org.sonar.server.search.SearchClient;
public class ProxyClusterStatsRequestBuilder extends ClusterStatsRequestBuilder {
} catch (Exception e) {
throw new IllegalStateException(String.format("Fail to execute %s", toString()), e);
} finally {
- if (profiling.isProfilingEnabled(Profiling.Level.BASIC)) {
+ if (profiling.isProfilingEnabled(Profiling.Level.BASIC)) {
fullProfile.stop("%s", toString());
}
}
for (int i = 0; i < lines.size(); i++) {
String line = lines.get(i);
json.beginArray();
- json.value(i + from);
+ json.value(1L * i + from);
json.value(line);
json.endArray();
}