Class SPARQLProtocolWorker

java.lang.Object
org.aksw.iguana.cc.worker.HttpWorker
org.aksw.iguana.cc.worker.impl.SPARQLProtocolWorker

public class SPARQLProtocolWorker extends HttpWorker
  • Constructor Details

  • Method Details

    • config

      public SPARQLProtocolWorker.Config config()
      Overrides:
      config in class HttpWorker
    • initHttpClient

      public static void initHttpClient(int threadCount)
      Initializes the http client with the given thread count. All workers will use the same http client instance.
      Parameters:
      threadCount - the number of threads to be used by the http client
    • closeHttpClient

      public static void closeHttpClient()
      Closes the http client and the connection manager.
    • start

      Starts the worker and returns a CompletableFuture, which will be completed, when the worker has finished the completion target. The CompletableFuture will contain a Result object, which contains the execution stats of the worker. The execution stats contain the execution time, the http status code, the content length and the hash of the response body. If the worker failed to execute a query, the execution stats will contain an exception. If the worker failed to execute a query, because of a set time limit in the worker configuration, the result of that execution will be discarded.
      Specified by:
      start in class HttpWorker
      Returns:
      the CompletableFuture the contains the results of the worker.
    • toString

      public String toString()
      Overrides:
      toString in class Object