pingpong
Class PingPongWorkUnit

java.lang.Object
  extended by edu.cuny.brooklyn.swc2.Unit
      extended by edu.cuny.brooklyn.swc2.WorkUnit
          extended by pingpong.PingPongWorkUnit
All Implemented Interfaces:
java.io.Serializable

public class PingPongWorkUnit
extends WorkUnit

See Also:
Serialized Form

Field Summary
 int RetFillerSize
          Indicates the filler-size in bytes that should returned with the {link PingPongResultUnit}.
 byte[] SpaceFiller
          An array used as a filler, in order to increase the size of this object.
 long WorkerDelay
          Indicates how long {link PingPongWorker} should wait before completing the job.
 
Fields inherited from class edu.cuny.brooklyn.swc2.WorkUnit
TaskName, WorkerClassName
 
Fields inherited from class edu.cuny.brooklyn.swc2.Unit
PassID, TaskID, WorkUnitID
 
Constructor Summary
PingPongWorkUnit(int size, int ret_size, long delay)
           
 
Method Summary
 
Methods inherited from class edu.cuny.brooklyn.swc2.Unit
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RetFillerSize

public int RetFillerSize
Indicates the filler-size in bytes that should returned with the {link PingPongResultUnit}.

See Also:
PingPongResultUnit.SpaceFiller

WorkerDelay

public long WorkerDelay
Indicates how long {link PingPongWorker} should wait before completing the job. Units are are in milliseconds.

See Also:
PingPongWorker.run()

SpaceFiller

public byte[] SpaceFiller
An array used as a filler, in order to increase the size of this object.

Constructor Detail

PingPongWorkUnit

public PingPongWorkUnit(int size,
                        int ret_size,
                        long delay)
Parameters:
size - the filler size of this work unit
ret_size - the filler size of the corresponding result unit
delay - the delay before a corresponding result unit is generated