public abstract class AbstractProcess extends Object implements Process
| Modifier and Type | Field and Description |
|---|---|
private String |
id |
(package private) static org.slf4j.Logger |
log |
protected String |
onError |
protected Context |
parentContext |
protected Priority |
priority |
protected ProcessContext |
processContext |
protected List<Processor> |
processors |
protected Map<String,String> |
properties |
protected Sink |
sink |
protected Source |
source |
| Constructor and Description |
|---|
AbstractProcess() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Processor p) |
void |
execute() |
void |
finish() |
ProcessContext |
getContext() |
String |
getId() |
Source |
getInput() |
String |
getOnError() |
Sink |
getOutput() |
Priority |
getPriority() |
List<Processor> |
getProcessors() |
Map<String,String> |
getProperties() |
void |
init(ApplicationContext context) |
Data |
process(Data data) |
void |
remove(Processor p) |
void |
setId(String id) |
void |
setInput(Source ds) |
void |
setOnError(String onError) |
void |
setOutput(Sink sink) |
void |
setPriority(Priority priority) |
String |
toString() |
static org.slf4j.Logger log
private String id
protected Context parentContext
protected ProcessContext processContext
protected Source source
protected Sink sink
protected Priority priority
protected String onError
public void setInput(Source ds)
setInput in interface ProcessProcess.setInput(stream.io.Source)public Source getInput()
getInput in interface ProcessProcess.getInput()public void setOutput(Sink sink)
setOutput in interface ProcessProcess.setOutput(stream.io.Sink)public Sink getOutput()
getOutput in interface ProcessProcess.getOutput()public String getId()
public void setId(String id)
id - the id to setpublic Data process(Data data)
Processor.process(stream.Data)public void init(ApplicationContext context) throws Exception
init in interface ProcessExceptionProcess.init(ApplicationContext)public void finish()
throws Exception
finish in interface ProcessExceptionProcess.finish()public void execute()
throws Exception
execute in interface ProcessExceptionProcess.execute()public ProcessContext getContext()
public List<Processor> getProcessors()
getProcessors in interface Processpublic Map<String,String> getProperties()
getProperties in interface Processpublic Priority getPriority()
public void setPriority(Priority priority)
priority - the priority to setpublic String getOnError()
public void setOnError(String onError)
onError - the onError to setCopyright © 2018. All rights reserved.