Package org.aksw.jena_sparql_api.timeout
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
FieldsModifier and TypeFieldDescriptionprotected Durationprotected Durationprotected booleanprotected ThreadFields inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase
decoratee -
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutionTimeoutExogeneous(org.apache.jena.query.QueryExecution decoratee) -
Method Summary
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, onExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapper
abort, close, getContext, getDataset, getQuery, getTimeout1, getTimeout2, isClosed, tryGetDelegate, unwrap
-
Field Details
-
duration1
-
duration2
-
thread
-
reachedTimeout
protected boolean reachedTimeout
-
-
Constructor Details
-
QueryExecutionTimeoutExogeneous
public QueryExecutionTimeoutExogeneous(org.apache.jena.query.QueryExecution decoratee)
-
-
Method Details
-
beforeExec
protected void beforeExec()- Overrides:
beforeExecin classorg.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-
afterExec
protected void afterExec()- Overrides:
afterExecin classorg.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<org.apache.jena.query.QueryExecution>
-