public class XPipeline extends Pipeline implements IPipelineStep
DEFAULT_ID| Constructor and Description |
|---|
XPipeline(String description,
IPipeline pipeline) |
XPipeline(String description,
IPipelineStep... steps) |
XPipeline(String description,
XBatch batch,
IPipelineStep... steps) |
XPipeline(String description,
XBatch batch,
XPipelineType type,
IPipelineStep... steps) |
XPipeline(String description,
XFilters filters,
String rootDir,
XBatch batch,
IPipelineStep... steps) |
XPipeline(String description,
XFilters filters,
XBatch batch,
IPipelineStep... steps) |
XPipeline(String description,
XPipelineType type,
IPipelineStep... steps) |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(IObserver observer)
Attaches a observer to the Observable.
|
int |
countObservers()
Counts how many Observers were attached to this class.
|
void |
deleteObserver(IObserver observer)
Detaches a previously attached observer to the observable.
|
void |
deleteObservers()
Detaches all previously attached observer to the observable.
|
PipelineReturnValue |
execute() |
XBatch |
getBatch() |
String |
getDescription()
Gets a short localizable description of what this step does.
|
String |
getHelpLocation()
Gets the relative directory location for the help of this step.
|
String |
getName()
Gets the localizable name of this step.
|
List<IObserver> |
getObservers()
Returns list of observers registered with the Observable.
|
IParameters |
getParameters()
Gets the current parameters for this step.
|
Event |
handleEvent(Event event)
Processes each event sent though the pipeline.
|
boolean |
isDone()
Steps that can generate
Events such as IFilters return
false until no more events can be created. |
boolean |
isLastOutputStep()
Is this step the last step with output in the pipeline?
|
void |
notifyObservers()
Notifies all attached observers about changes in the observable.
|
void |
notifyObservers(Object arg)
Notifies all attached observers about changes in the observable.
|
void |
setBatch(XBatch batch) |
void |
setLastOutputStep(boolean isLastStep)
Tell the step if it is the last one on the pipeline with output.
|
void |
setParameters(IParameters params)
Sets new parameters for this step.
|
void |
stop() |
addStep, cancel, clearSteps, destroy, endBatch, getId, getState, getSteps, process, process, setId, startBatch, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, destroy, getSourceLocale, getTargetLocale, setSourceLocale, setTargetLocalepublic XPipeline(String description, IPipelineStep... steps)
public XPipeline(String description, XPipelineType type, IPipelineStep... steps)
public XPipeline(String description, XBatch batch, IPipelineStep... steps)
public XPipeline(String description, XFilters filters, XBatch batch, IPipelineStep... steps)
public XPipeline(String description, XFilters filters, String rootDir, XBatch batch, IPipelineStep... steps)
public XPipeline(String description, XBatch batch, XPipelineType type, IPipelineStep... steps)
public PipelineReturnValue execute()
public void stop()
public String getHelpLocation()
IPipelineStepgetHelpLocation in interface IPipelineSteppublic String getName()
IPipelineStepgetName in interface IPipelineSteppublic IParameters getParameters()
IPipelineStepgetParameters in interface IPipelineSteppublic Event handleEvent(Event event)
IPipelineStephandleEvent in interface IPipelineStepevent - the event to process.public boolean isDone()
IPipelineStepEvents such as IFilters return
false until no more events can be created.
Steps which do not create Events always return true.isDone in interface IPipelineSteppublic boolean isLastOutputStep()
IPipelineStepisLastOutputStep in interface IPipelineSteppublic void setLastOutputStep(boolean isLastStep)
IPipelineStepsetLastOutputStep in interface IPipelineStepisLastStep - true if last step with output, false otherwise.public void setParameters(IParameters params)
IPipelineStepsetParameters in interface IPipelineStepparams - the new parameters to use.public XBatch getBatch()
public void setBatch(XBatch batch)
public String getDescription()
IPipelineStepgetDescription in interface IPipelineSteppublic void addObserver(IObserver observer)
IObservableaddObserver in interface IObservableaddObserver in class Pipelineobserver - The observer to attach to the observablepublic int countObservers()
IObservablecountObservers in interface IObservablecountObservers in class PipelineIObserverpublic void deleteObserver(IObserver observer)
IObservabledeleteObserver in interface IObservabledeleteObserver in class Pipelineobserver - The observer to detach from the observablepublic void notifyObservers()
IObservablenotifyObservers in interface IObservablenotifyObservers in class Pipelinepublic void notifyObservers(Object arg)
IObservablenotifyObservers in interface IObservablenotifyObservers in class Pipelinearg - an arbitrary Object to be passed to the Observerpublic void deleteObservers()
IObservabledeleteObservers in interface IObservabledeleteObservers in class Pipelinepublic List<IObserver> getObservers()
IObservablegetObservers in interface IObservablegetObservers in class PipelineCopyright © 2022. All rights reserved.