|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.PipelineProcess
The PipelineProcess is a process instance that runs a pipeline (InputAdapter <-> Pipeline <-> OutputAdapter). It may run within a set of processes or by itself.
Field Summary |
Fields inherited from interface com.rhi.architecture.parc.Process |
NAME, SEPARATOR, TYPE |
Constructor Summary | |
PipelineProcess()
Constructor |
Method Summary | |
void |
cleanup()
Perform any cleanup required. |
AuditAgent |
getAuditAgent()
Returns the auditAgent. |
ExecutionStrategy |
getExecutionStrategy()
The interface application defers execution to a strategy interface. |
InputAdapter |
getInputAdapter()
Return the Input Adapter that selects the work set to process. |
java.lang.String |
getName()
getName returns the configured name for this process. |
OutputAdapter |
getOutputAdapter()
Return the Output Adapter that persists the work set after processing is completed. |
Pipeline |
getPipeline()
This method should construct a Pipeline, a set of Filters, attach those Filters to the Pipeline, and return the fully configured Pipeline to the framework for execution. |
java.util.Properties |
getProperties()
get the configuration properties |
void |
init(java.util.Properties props)
Init method will be called prior to run to allow the strategy to initialize itself & acquire any necessary resources. |
static Logger |
log()
Returns the logger instance |
void |
run()
Run the Process. |
void |
setAuditAgent(AuditAgent auditAgent)
Sets the auditAgent. |
void |
setExecutionStrategy(ExecutionStrategy strategy)
Set the strategy |
void |
setInputAdapter(InputAdapter inputAdapter)
Set the input adapter |
void |
setName(java.lang.String name)
setName is called by either the ProcessSet if this Process is contained w/in a ProcessSet to provide it w/ a unique name for property lookups. |
void |
setOutputAdapter(OutputAdapter outputAdapter)
Set the output adapter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PipelineProcess()
Method Detail |
public void init(java.util.Properties props) throws InitializationException
init
in interface Process
props
-
InitializationException
public Pipeline getPipeline() throws InitializationException
A default implementation has been provided here for the simplest case. It is driven from property file settings and assumes default constructors exist for both the Pipeline and all the Filters. It is anticipated that this will be to restrictive for many non-trivial applications. In those cases, this method should be overridden and implemented appropriately.
InitializationException
public void run() throws ProcessingException
run
in interface Process
ProcessingException
public void cleanup()
cleanup
in interface Process
public java.lang.String getName()
getName
in interface Process
public void setName(java.lang.String name)
setName
in interface Process
name
- public ExecutionStrategy getExecutionStrategy()
public void setExecutionStrategy(ExecutionStrategy strategy)
strategy
- public OutputAdapter getOutputAdapter()
public void setOutputAdapter(OutputAdapter outputAdapter)
outputAdapter
- public InputAdapter getInputAdapter()
public void setInputAdapter(InputAdapter inputAdapter)
inputAdapter
- public AuditAgent getAuditAgent()
public void setAuditAgent(AuditAgent auditAgent)
auditAgent
- The auditAgent to setpublic java.util.Properties getProperties()
public static Logger log()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |