xDash::Spool::Dummy - Base class for Spool


xDash documentation  | view source Contained in the xDash distribution.

Index


NAME

Top

xDash::Spool::Dummy - Base class for Spool

SYNOPSIS

Top

 package Spool;
 # Test settings:
 use base xDash::Spool::Dummy;
 sub SetParameters { shift->SUPER::SetParameters( 
  event_limit => 10, mean_interoccurence_time => 1 )

DESCRIPTION

Top

USAGE

The module is developed in the object orientated way. It can be used as the base class for spool allowing easy testing, which has to implement a fixed set of methods, called by the derived class Spool. Spool is hardcoded in the xDash::Sender (driver pattern). The module auto generates jobs according to the Poisson/exponential time series simulation and places them in a virtual spool. A job is removed from the virtual spool only if a job confirmation comes back from the Archivist. By deriving from the class, as the way of passing arguments, you have to implement explicit methods listed below . The synopsis above is an example of the client script generated by the xdscr after debugging.

For own generating the body of a event, look inside the code of xDash::Spool::Dummy and overwrite the method Fetch() in your derived class used as the base class for Spool.

METHODS

SetParameters( event_limit => $number, mean_interoccurence_time => $time )

event_limit => $number, sets the upper limit of generated jobs; mean_interoccurence_time => $time, sets the mean interoccurence time for exponential time series simulation.

BUGS

Top

Any suggestions for improvement are welcomed!

If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.

COPYRIGHT

Top

SEE ALSO

Top

xDash::Sender

xDash documentation  | view source Contained in the xDash distribution.