Class OnmsJestClient

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

    public class OnmsJestClient
    extends java.lang.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
      void close()  
      <T extends io.searchbox.client.JestResult>
      T
      execute​(io.searchbox.action.Action<T> clientRequest)  
      <T extends io.searchbox.client.JestResult>
      void
      executeAsync​(io.searchbox.action.Action<T> clientRequest, io.searchbox.client.JestResultHandler<? super T> jestResultHandler)  
      void setServers​(java.util.Set<java.lang.String> servers)  
      void shutdownClient()
      Deprecated.
      Use close() instead.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.io.IOException
        Specified by:
        execute in interface io.searchbox.client.JestClient
        Throws:
        java.io.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​(java.util.Set<java.lang.String> servers)
        Specified by:
        setServers in interface io.searchbox.client.JestClient
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException