|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataProcessor
A data processor is a single component in a processing chain which processes the data which is lead through.
| Method Summary | |
|---|---|
void |
abort()
Will be called when the chain is aborted. |
void |
finish()
Shutdown the data processor. |
DataProcessorInfo |
getInfo()
Returns informations about the processor and its features. |
void |
init()
Initializes the data processor. |
DataChunk |
process(DataChunk pDataChunk)
Processes the given data chunk. |
void |
resumeAt(long pByteOffset)
Resumes the processing at the given position. |
void |
rollback()
Will be called when the chain is unexpectly aborted. |
void |
setProcessorChain(DataProcessorChain pChain)
Sets the processor chain the processor is a part of. |
boolean |
supports(Job pJob)
Returns true if this processor supports the given type of job. |
| Method Detail |
|---|
boolean supports(Job pJob)
pJob -
void init()
throws ProcessingException
ProcessingExceptionvoid finish()
java.lang.Exceptionvoid abort()
finish is also called.
void rollback()
finish is also called.
void resumeAt(long pByteOffset)
pByteOffset - The offset position in bytes.
DataChunk process(DataChunk pDataChunk)
throws ProcessingException
pDataChunk -
ProcessingExceptionDataProcessorInfo getInfo()
void setProcessorChain(DataProcessorChain pChain)
pChain -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||