
stream.Process Maven / Gradle / Ivy
The newest version!
/**
*
*/
package stream;
import java.util.List;
import java.util.Map;
import stream.io.Sink;
import stream.io.Source;
import stream.runtime.LifeCycle;
/**
*
* This interface defines an abstract process. A process is an active element
* that will continuously read from a source and emit processed items to a sink
* (if such a sink is attached).
*
*
* @author Christian Bockermann, Hendrik Blom
*
*/
public interface Process extends LifeCycle {
/**
* The data source of this process.
*
* @param The
* data source of this process.
*/
public void setInput(Source ds);
/**
* The data source of this process.
*
* @return The data source of this process.
*/
public Source getInput();
/**
*
* @param sink
*/
public void setOutput(Sink sink);
/**
*
* @return
*/
public Sink getOutput();
public void add(Processor p);
public void remove(Processor p);
public List getProcessors();
public void execute() throws Exception;
public Map getProperties();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy