/** * Get the list of pre-fork {@link RecordStreamProcessor}s. * * @return list (possibly empty) of {@link RecordStreamProcessor}s */ public List<RecordStreamProcessor<?, ?, ?, ?>> getRecordStreamProcessors() { return getRecordStreamProcessors(-1, this.taskState); }
closer.register(new InstrumentedExtractorDecorator<>(this.taskState, this.taskContext.getExtractor())); this.recordStreamProcessors = this.taskContext.getRecordStreamProcessors();
when(mockTaskContext.getTaskState()).thenReturn(taskState); when(mockTaskContext.getConverters()).thenReturn(converters); when(mockTaskContext.getRecordStreamProcessors()).thenReturn(recordStreamProcessors); when(mockTaskContext.getTaskLevelPolicyChecker(any(TaskState.class), anyInt())) .thenReturn(mock(TaskLevelPolicyChecker.class));
/** * Get the list of pre-fork {@link RecordStreamProcessor}s. * * @return list (possibly empty) of {@link RecordStreamProcessor}s */ public List<RecordStreamProcessor<?, ?, ?, ?>> getRecordStreamProcessors() { return getRecordStreamProcessors(-1, this.taskState); }
closer.register(new InstrumentedExtractorDecorator<>(this.taskState, this.taskContext.getExtractor())); this.recordStreamProcessors = this.taskContext.getRecordStreamProcessors();