/** * This variant handles both local indices on a {@link TemporaryStore} or {@link Journal} WITHOUT * concurrency controls (fast). */ protected final Object runLocalProgram(final ActionEnum action, final IStep step) throws Exception { if (log.isInfoEnabled()) log.info("Running local program: action=" + action + ", program=" + step.getName()); final IProgramTask innerTask = new ProgramTask(action, step, getJoinNexusFactory(), getIndexManager()); return innerTask.call(); }
/** * Runs a distributed {@link IProgram} (key-range partitioned indices, RMI, and multi-machine). */ protected final Object runDistributedProgram( final IBigdataFederation<?> fed, final ActionEnum action, final IStep step) throws Exception { if (log.isInfoEnabled()) { log.info("Running distributed program: action=" + action + ", program=" + step.getName()); } final IProgramTask innerTask = new ProgramTask(action, step, getJoinNexusFactory(), getIndexManager()); return innerTask.call(); }