Package eu.admire.ogsadai.activity.block

Examples of eu.admire.ogsadai.activity.block.TupleFactory


      // 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();
         
View Full Code Here

TOP

Related Classes of eu.admire.ogsadai.activity.block.TupleFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.