NAME
xDash::Spool::Dummy - Base class for Spool
SYNOPSIS
package Spool;
# Test settings:
use base xDash::Spool::Dummy;
sub SetParameters { shift->SUPER::SetParameters(
event_limit => 10, mean_interoccurence_time => 1 )
DESCRIPTION
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
Any suggestions for improvement are welcomed!
If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.
COPYRIGHT
Copyright 2005 Jerzy Wachowiak <jwach@cpan.org>
This library is free software; you can redistribute it and/or modify it under the terms of the Apache 2.0 license attached to the module.