Previous topic

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

Next topic

The cinder.openstack.common.setup Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

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.