Class OnmsJestClient

  • All Implemented Interfaces:
    io.searchbox.client.JestClient, Closeable, AutoCloseable

    public class OnmsJestClient
    extends Object
    implements io.searchbox.client.JestClient
    • 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:
        execute in interface io.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:
        executeAsync in interface io.searchbox.client.JestClient
      • shutdownClient

        @Deprecated
        public void shutdownClient()
        Deprecated.
        Use close() instead.
        Specified by:
        shutdownClient in interface io.searchbox.client.JestClient
      • setServers

        public void setServers​(Set<String> servers)
        Specified by:
        setServers in interface io.searchbox.client.JestClient