lima.mathematical.factorisation.ecm
Class EcmSink

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--lima.mathematical.factorisation.ecm.EcmSink
All Implemented Interfaces:
java.rmi.Remote, java.io.Serializable, WorkUnitSink

public class EcmSink
extends java.rmi.server.UnicastRemoteObject
implements WorkUnitSink

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
EcmSink(lima.mathematical.factorisation.ecm.DistributedEcm p, java.math.BigInteger n)
           
 
Method Summary
 void allDone()
          Signals that all WorkUnits have been done.
 void flush(lima.distribution.WorkUnit w)
          Flush the WorkUnit w back to the distribution system.
 boolean isAllDone()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EcmSink

public EcmSink(lima.mathematical.factorisation.ecm.DistributedEcm p,
               java.math.BigInteger n)
        throws java.rmi.RemoteException
Method Detail

flush

public void flush(lima.distribution.WorkUnit w)
           throws java.rmi.RemoteException
Description copied from interface: WorkUnitSink
Flush the WorkUnit w back to the distribution system. Note that order is not maintained.

Specified by:
flush in interface WorkUnitSink
Parameters:
w -
java.rmi.RemoteException
See Also:
WorkUnitSink.flush(lima.distribution.WorkUnit)

allDone

public void allDone()
             throws java.rmi.RemoteException
Description copied from interface: WorkUnitSink
Signals that all WorkUnits have been done.

Specified by:
allDone in interface WorkUnitSink
java.rmi.RemoteException
See Also:
WorkUnitSink.allDone()

isAllDone

public boolean isAllDone()