Class QueryExecutionTimeoutExogeneous

java.lang.Object
org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
org.aksw.jena_sparql_api.timeout.QueryExecutionTimeoutExogeneous
All Implemented Interfaces:
AutoCloseable, org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper, org.apache.jena.query.QueryExecution

public class QueryExecutionTimeoutExogeneous extends org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
Query execution that applies a timeout "from the outside" (= exogeneous). Upon query execution, a new thread is created that calls .abort() on the underlying query execution once the timeout is reached.
Author:
Claus Stadler, Oct 9, 2018
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Duration
     
    protected Duration
     
    protected boolean
     
    protected Thread
     

    Fields inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase

    decoratee
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueryExecutionTimeoutExogeneous(org.apache.jena.query.QueryExecution decoratee)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     

    Methods inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase

    execAsk, execConstruct, execConstruct, execConstructDataset, execConstructDataset, execConstructQuads, execConstructTriples, execDescribe, execDescribe, execDescribeTriples, execJson, execJsonItems, execSelect, getDelegate, getQueryString, onException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper

    abort, close, getContext, getDataset, getQuery, getTimeout1, getTimeout2, isClosed, tryGetDelegate, unwrap
  • Field Details

    • duration1

      protected Duration duration1
    • duration2

      protected Duration duration2
    • thread

      protected Thread thread
    • reachedTimeout

      protected boolean reachedTimeout
  • Constructor Details

    • QueryExecutionTimeoutExogeneous

      public QueryExecutionTimeoutExogeneous(org.apache.jena.query.QueryExecution decoratee)
  • Method Details

    • beforeExec

      protected void beforeExec()
      Overrides:
      beforeExec in class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
    • afterExec

      protected void afterExec()
      Overrides:
      afterExec in class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>