Running Multiple Chunker Processes in a Single Instance

Given that the batchStreamHelper.runChunkMain method returns once the chunker has finished it is possible to write a batch process which kicks off several chunkers in turn. The equilivent for the stream is to do the same after the batchStreamHelper.runStream method returns, allowing multiple streams to be started one after the other.

However, extreme care is required to ensure when doing this that each chunker/stream process does not pickup any traces of the previous process(es). To this end it's recommend that the batch program instance be created as a separate class with a distinct class for each chunker/stream instance allowing them to kept totally separate.