use of org.elasticsearch.client.NodeSelector in project LinkAgent by shulieTech.
the class RestClient68Definition method doAssembleBuilder.
@Override
protected void doAssembleBuilder(RestClient target, RestClientBuilder builder) {
NodeSelector nodeSelector = reflectSilence(target, "nodeSelector");
if (nodeSelector != null) {
builder.setNodeSelector(nodeSelector);
}
WarningsHandler warningsHandler = reflectSilence(target, "warningsHandler");
if (warningsHandler != null) {
builder.setStrictDeprecationMode(warningsHandler == WarningsHandler.STRICT);
}
Long maxRetryTimeoutMillis = reflectSilence(target, "maxRetryTimeoutMillis");
if (maxRetryTimeoutMillis != null) {
builder.setMaxRetryTimeoutMillis(maxRetryTimeoutMillis.intValue());
}
}
use of org.elasticsearch.client.NodeSelector in project LinkAgent by shulieTech.
the class RestClient70Definition method doAssembleBuilder.
@Override
protected void doAssembleBuilder(RestClient target, RestClientBuilder builder) {
NodeSelector nodeSelector = reflectSilence(target, "nodeSelector");
if (nodeSelector != null) {
builder.setNodeSelector(nodeSelector);
}
WarningsHandler warningsHandler = reflectSilence(target, "warningsHandler");
if (warningsHandler != null) {
builder.setStrictDeprecationMode(warningsHandler == WarningsHandler.STRICT);
}
}
Aggregations