Part of lp.buildmaster.interfaces.webservice View In Hierarchy
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 | getByName | Retrieve a builder by name |
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 | getBuildQueueSizes | Return the number of pending builds for each processor. |
Method | getBuildersForQueue | Return all builders for given processor/virtualization setting. |
Inherited from IBuilderSetAdmin:
Method | new | Create a new builder. |
Returns | 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. |