lima.distribution
Interface WorkUnitProcessor

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
DServer, LocalProcessor

public interface WorkUnitProcessor
extends java.rmi.Remote

A WorkUnitProcessor is the interface between the distribution system and an application. A handle to this is all the algoithm should need to know about.


Method Summary
 void process(lima.distribution.WorkUnitSink sink, lima.distribution.WorkUnitSource source)
          Take WorkUnits from source, process them and flush them to sink.
 

Method Detail

process

public void process(lima.distribution.WorkUnitSink sink,
                    lima.distribution.WorkUnitSource source)
             throws java.rmi.RemoteException
Take WorkUnits from source, process them and flush them to sink. Note that order is not maintained.

Parameters:
source - - Provides WorkUnits
sink - - Callback to flush finished workunits.
java.rmi.RemoteException