Fix line too long
Original commit: elastic/x-pack-elasticsearch@084095a944
This commit is contained in:
parent
d6881e25c9
commit
6a1806a3eb
|
@ -29,8 +29,7 @@ import static org.elasticsearch.common.unit.TimeValue.timeValueMinutes;
|
|||
|
||||
public abstract class ProtoHandler implements HttpHandler, AutoCloseable {
|
||||
private static PlanExecutor planExecutor(EmbeddedModeFilterClient client) {
|
||||
Supplier<ClusterState> clusterStateSupplier =
|
||||
() -> client.admin().cluster().prepareState().get(timeValueMinutes(1)).getState();
|
||||
Supplier<ClusterState> clusterStateSupplier = () -> client.admin().cluster().prepareState().get(timeValueMinutes(1)).getState();
|
||||
return new PlanExecutor(client, clusterStateSupplier, EsCatalog::new);
|
||||
}
|
||||
|
||||
|
@ -43,7 +42,8 @@ public abstract class ProtoHandler implements HttpHandler, AutoCloseable {
|
|||
|
||||
protected ProtoHandler(Client client) {
|
||||
NodesInfoResponse niResponse = client.admin().cluster().prepareNodesInfo("_local").clear().get(TV);
|
||||
this.client = !(client instanceof EmbeddedModeFilterClient) ? new EmbeddedModeFilterClient(client) : (EmbeddedModeFilterClient) client;
|
||||
this.client = !(client instanceof EmbeddedModeFilterClient) ? new EmbeddedModeFilterClient(
|
||||
client) : (EmbeddedModeFilterClient) client;
|
||||
this.client.setPlanExecutor(planExecutor(this.client));
|
||||
info = niResponse.getNodes().get(0);
|
||||
clusterName = niResponse.getClusterName().value();
|
||||
|
|
Loading…
Reference in New Issue