Part of lp.buildmaster.interfaces.builder View In Hierarchy
Known implementations: lp.buildmaster.model.builder.BuilderSet
IBuilderSet provides access to all Builders in the system, and also acts as a Factory to allow the creation of new Builders. Methods on this interface should deal with the set of Builders: methods that affect a single Builder should be on IBuilder.
Attribute | title | Title |
Method | __iter__ | Iterate over builders. |
Method | __getitem__ | Retrieve a builder by name |
Method | new | Create a new Builder entry. |
Method | count | Return the number of builders in the system. |
Method | get | Return the IBuilder with the given builderid. |
Method | getBuilders | Return all active configured builders. |
Method | getBuildersByArch | Return all configured builders for a given DistroArchSeries. |
Method | getBuildQueueSizes | Return the number of pending builds for each processor. |
Method | getBuildersForQueue | Return all builders for given processor/virtualization setting. |
Additionally to the given arguments, builder are created with 'builderok' and 'manual' set to True.
It means that, once created, they will be presented as 'functional' in the UI but will not receive any job until an administrator move it to the automatic mode.
Return the number of pending builds for each processor. :return: a dict of tuples with the queue size and duration for each processor and virtualisation. For example: { 'virt': { '386': (1, datetime.timedelta(0, 60)), 'amd64': (2, datetime.timedelta(0, 30)), }, 'nonvirt':... } The tuple contains the size of the queue, as an integer, and the sum of the jobs 'estimated_duration' in queue, as a timedelta or None for empty queues.