/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { ChangeSource source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class); // Cast the input feed to the correct type. // Connect the tasks. source.setChangeSink(task); // Register the task as an output. A source only has one output, this // corresponds to pipe index 0. setOutputTask(pipeTasks, task, 0); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { return new ChangeSinkSourceManager( taskConfig.getId(), new ChangeToFullHistoryConvertor(), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { return new ChangeSinkSourceManager( taskConfig.getId(), new ChangeToFullHistoryConvertor(), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { ChangeSource source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (ChangeSource) getInputTask(pipeTasks, 0, ChangeSource.class); // Cast the input feed to the correct type. // Connect the tasks. source.setChangeSink(task); // Register the task as an output. A source only has one output, this // corresponds to pipe index 0. setOutputTask(pipeTasks, task, 0); } }