@Override public ExecutorService getExecutorService() { return getLocalIndexManager().getExecutorService(); }
@Override public ExecutorService getExecutorService() { return delegate.getExecutorService(); }
@Override public ExecutorService getExecutorService() { return getLocalIndexManager().getExecutorService(); }
@Override public ExecutorService getExecutorService() { return delegate.getExecutorService(); }
final public ExecutorService getExecutorService() { return indexManager.getExecutorService(); }
final public ExecutorService getExecutorService() { return indexManager.getExecutorService(); }
/** * Core constructor. * * @param fed * The federation iff running in scale-out. * @param localIndexManager * The <strong>local</strong> index manager. */ public BOpContextBase(final IBigdataFederation<?> fed, final IIndexManager localIndexManager) { /* * @todo null is permitted here for the unit tests, but we should really * mock the IIndexManager and pass in a non-null object here and then * verify that the reference is non-null. */ // if (localIndexManager == null) // throw new IllegalArgumentException(); this.fed = fed; this.indexManager = localIndexManager; this.executor = localIndexManager == null ? null : localIndexManager .getExecutorService(); }
/** * Core constructor. * * @param fed * The federation iff running in scale-out. * @param localIndexManager * The <strong>local</strong> index manager. */ public BOpContextBase(final IBigdataFederation<?> fed, final IIndexManager localIndexManager) { /* * @todo null is permitted here for the unit tests, but we should really * mock the IIndexManager and pass in a non-null object here and then * verify that the reference is non-null. */ // if (localIndexManager == null) // throw new IllegalArgumentException(); this.fed = fed; this.indexManager = localIndexManager; this.executor = localIndexManager == null ? null : localIndexManager .getExecutorService(); }
/** * Executes the {@link Runnable} on the local {@link IIndexManager}'s * {@link ExecutorService}. * * @param r * The {@link Runnable}. */ final protected void execute(final Runnable r) { localIndexManager.getExecutorService().execute(r); }
/** * Executes the {@link Runnable} on the local {@link IIndexManager}'s * {@link ExecutorService}. * * @param r * The {@link Runnable}. */ final protected void execute(final Runnable r) { localIndexManager.getExecutorService().execute(r); }
/** * @param accessPath * The original access path. */ public DefaultGraphParallelEvaluationAccessPath( final SPOAccessPath accessPath) { this.sourceAccessPath = accessPath; this.executor = new LatchedExecutor(accessPath.getIndexManager() .getExecutorService(), maxParallel); }
/** * @param accessPath * The original access path. */ public DefaultGraphParallelEvaluationAccessPath( final SPOAccessPath accessPath) { this.sourceAccessPath = accessPath; this.executor = new LatchedExecutor(accessPath.getIndexManager() .getExecutorService(), maxParallel); }
/** * Run <i>this</i> task. * <p> * If we are executing on a {@link DataService} then {@link #getDataService()} * will have been set automatically and the task will be submitted to the * {@link ConcurrencyManager} for that {@link DataService}. * <p> * This condition occurs when this {@link Callable} is sent to the * {@link DataService} using {@link DataService#submit(Callable)}. In order * to gain access to the named indices for the relation, we have to wrap up * this {@link Callable} as an {@link AbstractTask} that declares the * appropriate timestamp and resources. The {@link AbstractTask} is then * submitted to the {@link ConcurrencyManager} for execution. Once the * {@link AbstractTask} is actually running, the inner task * <em>overrides</em> the {@link #indexManager} to be * {@link AbstractTask#getJournal()}. This provides access to the indices, * relations, etc. appropriate for the isolation level granted to the task * by the {@link ConcurrencyManager} - without this step the * {@link AbstractTask} will wind up using an {@link IClientIndex} view and * lose the benefits of access to unisolated indices. */ public Future<RuleStats> submit() { if (!isDataService()) { return indexManager.getExecutorService().submit(this); } return submitToConcurrencyManager(); }
/** * Run <i>this</i> task. * <p> * If we are executing on a {@link DataService} then {@link #getDataService()} * will have been set automatically and the task will be submitted to the * {@link ConcurrencyManager} for that {@link DataService}. * <p> * This condition occurs when this {@link Callable} is sent to the * {@link DataService} using {@link DataService#submit(Callable)}. In order * to gain access to the named indices for the relation, we have to wrap up * this {@link Callable} as an {@link AbstractTask} that declares the * appropriate timestamp and resources. The {@link AbstractTask} is then * submitted to the {@link ConcurrencyManager} for execution. Once the * {@link AbstractTask} is actually running, the inner task * <em>overrides</em> the {@link #indexManager} to be * {@link AbstractTask#getJournal()}. This provides access to the indices, * relations, etc. appropriate for the isolation level granted to the task * by the {@link ConcurrencyManager} - without this step the * {@link AbstractTask} will wind up using an {@link IClientIndex} view and * lose the benefits of access to unisolated indices. */ public Future<RuleStats> submit() { if (!isDataService()) { return indexManager.getExecutorService().submit(this); } return submitToConcurrencyManager(); }
public ControllerTask(final AbstractSubqueryOp controllerOp, final BOpContext<IBindingSet> context) { if (controllerOp == null) throw new IllegalArgumentException(); if (context == null) throw new IllegalArgumentException(); this.controllerOp = controllerOp; this.context = context; this.subqueries = (BOp[]) controllerOp .getRequiredProperty(Annotations.SUBQUERIES); this.nparallel = controllerOp.getProperty(Annotations.MAX_PARALLEL_SUBQUERIES, Annotations.DEFAULT_MAX_PARALLEL_SUBQUERIES); this.executor = new LatchedExecutor(context.getIndexManager() .getExecutorService(), nparallel); }
public ControllerTask(final AbstractSubqueryOp controllerOp, final BOpContext<IBindingSet> context) { if (controllerOp == null) throw new IllegalArgumentException(); if (context == null) throw new IllegalArgumentException(); this.controllerOp = controllerOp; this.context = context; this.subqueries = (BOp[]) controllerOp .getRequiredProperty(Annotations.SUBQUERIES); this.nparallel = controllerOp.getProperty(Annotations.MAX_PARALLEL_SUBQUERIES, Annotations.DEFAULT_MAX_PARALLEL_SUBQUERIES); this.executor = new LatchedExecutor(context.getIndexManager() .getExecutorService(), nparallel); }
getSail().getIndexManager().getExecutorService());
getSail().getIndexManager().getExecutorService());
kb.getIndexManager().getExecutorService().submit(ft);
kb.getIndexManager().getExecutorService().submit(ft);