The cinder.openstack.common.scheduler.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(weighed_object_type, weight_namespace)

Bases: object

get_all_classes()
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.filters.json_filter Module

Next topic

The cinder.openstack.common.service Module

This Page