public class PooledBatchManager extends java.lang.Object implements BatchManager
| Constructor and Description |
|---|
PooledBatchManager(java.lang.String filename,
int skip)
Creates a pooled batch manager
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilename()
Returns the name of the file
|
BatchItem |
getNextItem()
Gets the next available batch item or null if no more are available
|
void |
start()
Starts processing the batch
|
void |
stop()
Stops processing the batch
|
public PooledBatchManager(java.lang.String filename,
int skip)
filename - the name of the batch fileskip - items to skip between runspublic void start()
throws java.io.IOException
start in interface BatchManagerjava.io.IOException - if an error occurs while processing the batch filepublic BatchItem getNextItem() throws java.io.IOException
getNextItem in interface BatchManagerjava.io.IOException - if an I/O error occurs while reading the next item from the batch file.public void stop()
throws java.io.IOException
stop in interface BatchManagerjava.io.IOException - if an error occurs while processing the batch filepublic java.lang.String getFilename()
getFilename in interface BatchManager