Class SourceSelection.ParallelCheckTask
java.lang.Object
org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelTaskBase<BindingSet>
org.eclipse.rdf4j.federated.optimizer.SourceSelection.ParallelCheckTask
- All Implemented Interfaces:
ParallelTask<BindingSet>
- Enclosing class:
SourceSelection
Task for sending an ASK request to the endpoints (for source selection)
- Author:
- Andreas Schwarte
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SourceSelection.SourceSelectionExecutorWithLatch
protected final Endpoint
protected final QueryInfo
protected final StatementPattern
Fields inherited from class org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelTaskBase
scheduledFuture
-
Constructor Summary
ConstructorDescriptionParallelCheckTask
(Endpoint endpoint, StatementPattern stmt, QueryInfo queryInfo, SourceSelection.SourceSelectionExecutorWithLatch control) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Optional implementation to cancel this task on a best effort basisreturn the controlling instance, e.g.protected CloseableIteration
<BindingSet, QueryEvaluationException> Methods inherited from class org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelTaskBase
close, performTask, setScheduledFuture, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.federated.evaluation.concurrent.ParallelTask
getQueryInfo
-
Field Details
-
endpoint
-
stmt
-
control
-
queryInfo
-
-
Constructor Details
-
ParallelCheckTask
public ParallelCheckTask(Endpoint endpoint, StatementPattern stmt, QueryInfo queryInfo, SourceSelection.SourceSelectionExecutorWithLatch control)
-
-
Method Details
-
performTaskInternal
protected CloseableIteration<BindingSet,QueryEvaluationException> performTaskInternal() throws Exception- Specified by:
performTaskInternal
in classParallelTaskBase<BindingSet>
- Throws:
Exception
-
getControl
Description copied from interface:ParallelTask
return the controlling instance, e.g. in most cases the instance of a thread. Shared variables are used to inform the thread about new events.- Returns:
- the control executor
-
cancel
public void cancel()Description copied from interface:ParallelTask
Optional implementation to cancel this task on a best effort basis- Specified by:
cancel
in interfaceParallelTask<BindingSet>
- Overrides:
cancel
in classParallelTaskBase<BindingSet>
-