Package org.opennms.features.jest.client
Class OnmsJestClient
- java.lang.Object
-
- org.opennms.features.jest.client.OnmsJestClient
-
- All Implemented Interfaces:
io.searchbox.client.JestClient,Closeable,AutoCloseable
public class OnmsJestClient extends Object implements io.searchbox.client.JestClient
-
-
Constructor Summary
Constructors Constructor Description OnmsJestClient(io.searchbox.client.JestClient delegate, RequestExecutor requestExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()<T extends io.searchbox.client.JestResult>
Texecute(io.searchbox.action.Action<T> clientRequest)<T extends io.searchbox.client.JestResult>
voidexecuteAsync(io.searchbox.action.Action<T> clientRequest, io.searchbox.client.JestResultHandler<? super T> jestResultHandler)voidsetServers(Set<String> servers)voidshutdownClient()Deprecated.Useclose()instead.
-
-
-
Constructor Detail
-
OnmsJestClient
public OnmsJestClient(io.searchbox.client.JestClient delegate, RequestExecutor requestExecutor)
-
-
Method Detail
-
execute
public <T extends io.searchbox.client.JestResult> T execute(io.searchbox.action.Action<T> clientRequest) throws IOException- Specified by:
executein interfaceio.searchbox.client.JestClient- Throws:
IOException
-
executeAsync
public <T extends io.searchbox.client.JestResult> void executeAsync(io.searchbox.action.Action<T> clientRequest, io.searchbox.client.JestResultHandler<? super T> jestResultHandler)- Specified by:
executeAsyncin interfaceio.searchbox.client.JestClient
-
shutdownClient
@Deprecated public void shutdownClient()
Deprecated.Useclose()instead.- Specified by:
shutdownClientin interfaceio.searchbox.client.JestClient
-
setServers
public void setServers(Set<String> servers)
- Specified by:
setServersin interfaceio.searchbox.client.JestClient
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-