Tirex::Manager::Bucket(3pm) | User Contributed Perl Documentation | Tirex::Manager::Bucket(3pm) |
Tirex::Manager::Bucket - Rendering buckets for different priorities
use Tirex::Manager::Bucket; my $bucket = Tirex::Manager::Bucket->new( name => 'test', minprio => 1, maxproc => 8, maxload => 20 );
To simplify the configuration of rendering parameters for different zoom levels, they are configured through Buckets. One Bucket contains the configuration for a range of zoom levels.
Create new rendering bucket.
Add a Tirex::Job to bucket.
Remove a Tirex::Job from bucket.
Get name of bucket.
Returns the number of rendering processes currently working on jobs in this bucket.
Get minimum priority for this bucket.
Get maximum priority for this bucket. The maximum priority has to be set with set_maxprio() before this works.
Set maximum priority for this bucket.
Get active flag for this bucket.
Set active flag for this bucket.
Check whether this bucket is the right one for the given priority, ie. whether the priority is between min- and maxprio.
Finds out if a job in this rendering bucket can be rendered.
Returns
1 if it can be rendered 0 if there are already maxproc or more rendering processes or if bucket is not active undef if the load is higher or equal than maxload
Return status of bucket.
2023-04-11 | perl v5.36.0 |