org.apache.james.postage.execution
Class SampleController

java.lang.Object
  extended by java.util.TimerTask
      extended by org.apache.james.postage.execution.SampleController
All Implemented Interfaces:
java.lang.Runnable

public class SampleController
extends java.util.TimerTask

initiate one shot of sample data generation


Constructor Summary
SampleController(Sampler sampler, int samplesPerMinute)
           
SampleController(Sampler sampler, int samplesPerMinute, int secondsDelayOnStop)
           
 
Method Summary
 void run()
           
 void runThreaded()
           
 void stop()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleController

public SampleController(Sampler sampler,
                        int samplesPerMinute)

SampleController

public SampleController(Sampler sampler,
                        int samplesPerMinute,
                        int secondsDelayOnStop)
Method Detail

runThreaded

public void runThreaded()

stop

public void stop()

run

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


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.