@SuppressWarnings("unchecked") @Override public void prepare( FlowProcess flowProcess, cascading.operation.OperationCall<NullContext> operationCall) { _executor = new ThreadedExecutor(_fetcher.getMaxThreads(), COMMAND_TIMEOUT); // FUTURE KKr - use Cascading process vs creating our own, once it // supports logging in local mode, and a setStatus() call. _flowProcess = new LoggingFlowProcess(flowProcess); _flowProcess.addReporter(new LoggingFlowReporter()); }
@SuppressWarnings({"unchecked"}) @Override public void prepare(FlowProcess flowProcess, OperationCall<NullContext> operationCall) { super.prepare(flowProcess, operationCall); _flowProcess = new LoggingFlowProcess(flowProcess); _flowProcess.addReporter(new LoggingFlowReporter()); _executor = new ThreadedExecutor( _fetcher.getMaxThreads(), _fetcher.getFetcherPolicy().getRequestTimeout()); _refLock = new Object(); _pendingRefs = new ConcurrentHashMap<String, Long>(); _activeRefs = new ConcurrentHashMap<String, Long>(); _keepCollecting = new AtomicBoolean(true); }