this.profiling = profiling;
}
@Override
public IndicesExistsResponse get() {
StopWatch fullProfile = profiling.start("indices exists", Profiling.Level.FULL);
try {
return super.execute().actionGet();
} catch (Exception e) {
throw new IllegalStateException(String.format("Fail to execute %s", toString()), e);
} finally {
if (profiling.isProfilingEnabled(Profiling.Level.BASIC)) {
fullProfile.stop("%s", toString());
}
}
}