edu.cmu.sphinx.util
Interface BatchManager

All Known Implementing Classes:
PooledBatchManager, SimpleBatchManager

public interface BatchManager

Provides a standard interface to a batching mechanism


Method Summary
 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
 

Method Detail

start

public void start()
           throws java.io.IOException
Starts processing the batch

Throws:
java.io.IOException - if an error occurs while processing the batch file

getNextItem

public BatchItem getNextItem()
                      throws java.io.IOException
Gets the next available batch item or null if no more are available

Returns:
the next available batch item
Throws:
java.io.IOException - if an error occurs while processing the batch file

stop

public void stop()
          throws java.io.IOException
Stops processing the batch

Throws:
java.io.IOException - if an error occurs while processing the batch file

getFilename

public java.lang.String getFilename()
Returns the name of the file

Returns:
the filename