The cinder.openstack.common.scheduler.base_weight 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(modifier_class_type, modifier_namespace)

Bases: cinder.openstack.common.scheduler.base_handler.BaseHandler

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 cinder.openstack.common.scheduler.base_handler Module

Next topic

The cinder.openstack.common.scheduler.filters.availability_zone_filter Module

This Page