Tirex::Manager::Test3pm
Dummy rendering manager for testing
Usage
use Tirex::Manager::Test;my $queue = Tirex::Queue->new();my $rm = Tirex::Manager::Test->new( queue => $queue );$rm->set_load(1.5);print $rm->get_load();$rm->schedule();
Overview
This is a dummy version of the Tirex::Manager rendering manager class for testing. It is a child class of the normal Tirex::Manager class and behaves just like it except that you can set the "system load" with set_load() and this load is returned by the get_load() method. This way the system load can be simulated in tests.
This class also has a dummy version of the send() method that doesn't actually send the message.
Methods
$rm->get_load()
Get the load that was set with set_load().
$rm->set_load($load)
Set the load.
$rm->send($job)
Simulate sending a job to the rendering daemon.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.