sam.io
Class ParallelIO.IOProcessor

java.lang.Object
  |
  +--sam.io.ParallelIO.IOProcessor
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ParallelIO

protected abstract class ParallelIO.IOProcessor
extends java.lang.Object
implements java.lang.Runnable

Abstraction for processors which actually do the job


Constructor Summary
protected ParallelIO.IOProcessor()
           
 
Method Summary
 void grantToken()
          Grants this processor's token having been processed
protected abstract  void process()
          Here the real job
 void requestToken()
          Requests this processor's token be allowed to be processed
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelIO.IOProcessor

protected ParallelIO.IOProcessor()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

process

protected abstract void process()
                         throws java.lang.Throwable
Here the real job

java.lang.Throwable

requestToken

public void requestToken()
                  throws ParallelIO.Exception
Requests this processor's token be allowed to be processed

ParallelIO.Exception

grantToken

public void grantToken()
                throws ParallelIO.Exception
Grants this processor's token having been processed

ParallelIO.Exception