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.JestClientIOExceptionpublic <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.JestClientpublic void setServers(Set<String> servers)
setServers in interface io.searchbox.client.JestClientpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022. All rights reserved.