/** * {@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); } }
/** * {@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); } }
/** * {@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); // 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 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 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 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); // 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 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 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 public void connect(PipeTasks pipeTasks) { // A multi sink receives multiple streams of data, so we must connect // them up one by one. for (int i = 0; i < task.getChangeSinkCount(); i++) { ChangeSink sink; ChangeSource source; // Retrieve the next sink. sink = task.getChangeSink(i); // Retrieve the appropriate source. source = (ChangeSource) getInputTask(pipeTasks, i, ChangeSource.class); // Connect the tasks. source.setChangeSink(sink); } // Register the source as an output task. setOutputTask(pipeTasks, task, 0); }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { ChangeSource source; int taskSourceCount; // 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 all the sources provided by this task as outputs. taskSourceCount = task.getChangeSourceCount(); for (int i = 0; i < taskSourceCount; i++) { setOutputTask(pipeTasks, task.getChangeSource(i), i); } } }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { ChangeSource source; int taskSourceCount; // 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 all the sources provided by this task as outputs. taskSourceCount = task.getChangeSourceCount(); for (int i = 0; i < taskSourceCount; i++) { setOutputTask(pipeTasks, task.getChangeSource(i), i); } } }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { // A multi sink receives multiple streams of data, so we must connect // them up one by one. for (int i = 0; i < task.getChangeSinkCount(); i++) { ChangeSink sink; ChangeSource source; // Retrieve the next sink. sink = task.getChangeSink(i); // Retrieve the appropriate source. source = (ChangeSource) getInputTask(pipeTasks, i, ChangeSource.class); // Connect the tasks. source.setChangeSink(sink); } // Register the source as an output task. setOutputTask(pipeTasks, task, 0); }
changeSource.setChangeSink(changeSink);
changeSource.setChangeSink(changeSink);