/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { Source source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (Source) getInputTask(pipeTasks, 0, Source.class); // Connect the tasks. source.setSink(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) { int bufferCapacity; // Get the task arguments. bufferCapacity = getIntegerArgument( taskConfig, ARG_BUFFER_CAPACITY, getDefaultIntegerArgument(taskConfig, DEFAULT_BUFFER_CAPACITY) ); return new SinkRunnableSourceManager( taskConfig.getId(), new EntityBuffer(bufferCapacity), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { int bufferCapacity; // Get the task arguments. bufferCapacity = getIntegerArgument( taskConfig, ARG_BUFFER_CAPACITY, getDefaultIntegerArgument(taskConfig, DEFAULT_BUFFER_CAPACITY) ); return new SinkRunnableSourceManager( taskConfig.getId(), new EntityBuffer(bufferCapacity), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { Source source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (Source) getInputTask(pipeTasks, 0, Source.class); // Connect the tasks. source.setSink(task); // Register the task as an output. A source only has one output, this // corresponds to pipe index 0. setOutputTask(pipeTasks, task, 0); }