public class OnmsJestClient extends Object implements io.searchbox.client.JestClient
Constructor and Description |
---|
OnmsJestClient(io.searchbox.client.JestClient delegate,
RequestExecutor requestExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T extends io.searchbox.client.JestResult> |
execute(io.searchbox.action.Action<T> clientRequest) |
<T extends io.searchbox.client.JestResult> |
executeAsync(io.searchbox.action.Action<T> clientRequest,
io.searchbox.client.JestResultHandler<? super T> jestResultHandler) |
void |
setServers(Set<String> servers) |
void |
shutdownClient()
Deprecated.
Use
close() instead. |
public OnmsJestClient(io.searchbox.client.JestClient delegate, RequestExecutor requestExecutor)
public <T extends io.searchbox.client.JestResult> T execute(io.searchbox.action.Action<T> clientRequest) throws IOException
execute
in interface io.searchbox.client.JestClient
IOException
public <T extends io.searchbox.client.JestResult> void executeAsync(io.searchbox.action.Action<T> clientRequest, io.searchbox.client.JestResultHandler<? super T> jestResultHandler)
executeAsync
in interface io.searchbox.client.JestClient
@Deprecated public void shutdownClient()
close()
instead.shutdownClient
in interface io.searchbox.client.JestClient
public void setServers(Set<String> servers)
setServers
in interface io.searchbox.client.JestClient
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2021. All rights reserved.