| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectProcessor
An object processor is a runnable command which performs a specific task.
 Object processors are usually executed in a chain, with objects flowing from
 the first one to the last, each one performing a transformation on the object
 or emitting new objects based on information from the one received.
 
| Nested Class Summary | |
|---|---|
| static class | ObjectProcessor.StatusDescribes the status of the processor | 
| Method Summary | |
|---|---|
|  boolean | canStart()Indicates whether the processor is ready to start (is correctly initialized). | 
|  Class | getInType()Returns the input type of this processor. | 
|  Class | getOutType()Returns the output type of this processor. | 
|  ObjectProcessor.Status | getStatus()Returns current status of this processor. | 
|  ObjectProcessor | initialize(Map<String,String> params)Initializes the processor. | 
|  void | requestStop()Requests the processor to stop and sets its status to STOPPING. | 
|  void | run()Starts the processing, putting the processor into running state. | 
| Methods inherited from interface xsmeral.pipe.context.ContextAware | 
|---|
| getContext, initContext, setContext | 
| Method Detail | 
|---|
ObjectProcessor initialize(Map<String,String> params)
canStart).
 
params - Initialization parameters, substitute for constructor arguments
this, so that the processor can be instantiated
 and initialized in one command:new SomeProcessor().initialize(params);
Class getInType()
Class getOutType()
ObjectProcessor.Status getStatus()
void run()
running state.
run in interface Runnablevoid requestStop()
STOPPING.
 There is no limit to the time it takes the processor to stop, it should
 however stop as soon as possible. 
boolean canStart()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||