public class PipelineProcessor extends java.lang.Object implements PipelineConstants
COMPSTREAMRESULT, COMPSTREAMSOURCE, DOCFRAG, DOCUMENT, DOMRESULT, DOMSOURCE, ELEMENT, PROCESS_WAITING, SAXRESULT, SAXSOURCE, STREAMRESULT, STREAMSOURCE| Constructor and Description |
|---|
PipelineProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
executePipeline()
Execute the pipeline based on the PipelineDoc set earlier by setPipelineDoc().
|
int |
getExecutionMode()
Get the type of execution mode
|
boolean |
isForceSpecified()
Has force been specified for pipeline execution
|
void |
setErrorHandler(PipelineErrorHandler e)
Set the error handler for the pipeline.
|
void |
setExecutionMode(int m)
Set the type of execution mode, default is parallel.
|
void |
setForce(boolean f)
If force is specified, then the pipeline will always execute, regardless of whether the target is up-to-date with respect to the pipeline inputs.
|
void |
setPipelineDoc(PipelineDoc doc)
Set the PipelineDoc object for the pipeline process to process
|
public void setPipelineDoc(PipelineDoc doc)
doc - - PipelineDoc to be processedpublic void setErrorHandler(PipelineErrorHandler e)
e - - error handler conforming to the PipelineErrorHandler interfacepublic void setExecutionMode(int m)
m - - execution mode can be PIPELINE_SEQUENTIAL, PIPELINE_PARALLELpublic int getExecutionMode()
public void setForce(boolean f)
f - - boolean true or falsepublic boolean isForceSpecified()
public void executePipeline()
throws java.net.MalformedURLException,
PipelineException,
java.lang.InterruptedException
java.net.MalformedURLExceptionPipelineExceptionjava.lang.InterruptedException - thrown by threads in parallel execution