// Interface implementation
public Object call() throws Exception
{
Thread.sleep(mInitialSleepDuration);
TupleFactory tf = new SimpleTupleFactory();
for (int i=0; i<mBlocks; ++i)
{
if(i%1000 == 0){
//Just to see if it's going anywhere
System.out.println("Writer at iteration " + i + " size of the pipe is " + mPipe.getNumBlocksReadable());
//Flush every so often to prevent OutOfMemory
mPipe.resetWriter();
}
mPipe.write(tf.createTuple());
Thread.sleep(mIntervalDuration);
}
mPipe.closeForWriting();