l.b.i.b.IBuilderSet(Interface) : interface documentation

Part of lp.buildmaster.interfaces.builder View In Hierarchy

Known implementations: lp.buildmaster.model.builder.BuilderSet

Collections of builders.

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.
title =
Title
def __iter__():
Iterate over builders.
def __getitem__(name):
Retrieve a builder by name
def new(processor, url, name, title, description, owner, active=True, virtualized=False, vm_host=None):
Create a new Builder entry.

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.

def count():
Return the number of builders in the system.
def get(builder_id):
Return the IBuilder with the given builderid.
def getBuilders():
Return all active configured builders.
def getBuildersByArch(arch):
Return all configured builders for a given DistroArchSeries.
def getBuildQueueSizes():
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.
def getBuildersForQueue(processor, virtualized):
Return all builders for given processor/virtualization setting.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.