Search in sources :

Example 1 with NodeSelector

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());
    }
}
Also used : NodeSelector(org.elasticsearch.client.NodeSelector) WarningsHandler(org.elasticsearch.client.WarningsHandler)

Example 2 with NodeSelector

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);
    }
}
Also used : NodeSelector(org.elasticsearch.client.NodeSelector) WarningsHandler(org.elasticsearch.client.WarningsHandler)

Aggregations

NodeSelector (org.elasticsearch.client.NodeSelector)2 WarningsHandler (org.elasticsearch.client.WarningsHandler)2