Project

General

Profile

« Previous | Next » 

Revision 36408

Added by Marek Horst about 9 years ago

#1135 integrating changes in IIS-CDH-5.3.0 branch

View differences:

Process.java
2 2

  
3 3
import java.util.Map;
4 4

  
5
import org.apache.hadoop.conf.Configuration;
6

  
7
import eu.dnetlib.iis.core.java.porttype.PortType;
8

  
5 9
/** Workflow node written in Java.
6 10
 * 
7
 * The class has to define a constructor with no parameters 
11
 * The implementing class has to define a constructor with no parameters 
8 12
 * (possibly the default one) or a constructor with String[] as a single
9 13
 * parameter.
10 14
 * @author Mateusz Kobos
11 15
 */
12
public interface Process extends DataStoreConsumer, DataStoreProducer {
16
public interface Process {
13 17
	/**
14 18
	 * Run the process.
15 19
	 * 
......
22 26
	 * @throws Exception if thrown, it means that the process finished
23 27
	 * with an error status
24 28
	 */
25
	void run(PortBindings portBindings, HadoopContext context, 
29
	void run(PortBindings portBindings, Configuration conf, 
26 30
			Map<String, String> parameters) throws Exception;
31
	
32
	/**
33
	 * @return map containing as the key: name of the port, as the value: type
34
	 * of the port 
35
	 */
36
	Map<String, PortType> getInputPorts();
37
	
38
	/**
39
	 * @return map containing as the key: name of the port, as the value: type
40
	 * of the port 
41
	 */
42
	Map<String, PortType> getOutputPorts();
27 43
}

Also available in: Unified diff