|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataProcessorChain
This class holds an chain of data processors and tunnels the data through all registered processors in the given order.
| Method Summary | |
|---|---|
void |
addDataProcessor(DataProcessor pDataProcessor)
Adds an data processor at the end of the chain. |
void |
addDataProcessor(java.util.List<DataProcessor> pProcessorsForJob)
Adds an list of data processors at the end of the chain. |
boolean |
canResume()
Checks if all processors in the chain are supporting resuming. |
boolean |
containsConsumer()
Returns if the chain contains at least one consumer. |
void |
finish()
Finalizes the chain and all processors in it. |
java.util.List<DataProcessor> |
getDataProcessors()
Returns a list with all data processors in the chain. |
java.io.InputStream |
getInputStream()
|
Job |
getJob()
Gets the job which the chain is assigned to. |
JobManager |
getJobManager()
Gets the job manager. |
long |
getProcessedBytes()
Gets the already processed bytes in the chain. |
void |
init()
Initializes all the chain and all processors in it. |
void |
replaceDataProcessor(DataProcessor pOldDataProcessor,
DataProcessor pNewDataProcessor)
Replaces an data processor in the chain. |
void |
resumeAt(long pResumeOffset)
Advises all processors to resume at the given position. |
void |
run()
Starts the data retriever and processes the data in the processor chain. |
void |
setInputStream(java.io.InputStream pInputStream)
|
void |
setJob(Job pJob)
Sets the job which the chain is assigned to. |
void |
setJobManager(JobManager pJobManager)
Sets the job manager. |
int |
size()
Returns the count of registerd processors. |
| Method Detail |
|---|
void addDataProcessor(java.util.List<DataProcessor> pProcessorsForJob)
pProcessorsForJob - void addDataProcessor(DataProcessor pDataProcessor)
pDataProcessor -
void replaceDataProcessor(DataProcessor pOldDataProcessor,
DataProcessor pNewDataProcessor)
pOldDataProcessor - pNewDataProcessor - java.util.List<DataProcessor> getDataProcessors()
void init()
throws ProcessingException
ProcessingException
void run()
throws java.io.IOException,
ProcessingException
java.io.IOException
ProcessingExceptionvoid finish()
boolean canResume()
void resumeAt(long pResumeOffset)
pResumeOffset - void setInputStream(java.io.InputStream pInputStream)
java.io.InputStream getInputStream()
void setJobManager(JobManager pJobManager)
pJobManager - JobManager getJobManager()
void setJob(Job pJob)
pJob - Job getJob()
int size()
long getProcessedBytes()
boolean containsConsumer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||