The nova.weights Module

Pluggable Weighing support

class BaseWeigher

Bases: object

Base class for pluggable weighers.

weigh_objects(weighed_obj_list, weight_properties)

Weigh multiple objects. Override in a subclass if you need need access to all objects in order to manipulate weights.

class BaseWeightHandler(loadable_cls_type)

Bases: nova.loadables.BaseLoader

get_weighed_objects(weigher_classes, obj_list, weighing_properties)

Return a sorted (highest score first) list of WeighedObjects.

object_class

alias of WeighedObject

class WeighedObject(obj, weight)

Bases: object

Object with weight information.

Previous topic

The nova.volume.cinder Module

Next topic

The nova.wsgi Module

This Page