Previous topic

The cinder.openstack.common.rpc.service Module

Next topic

The cinder.openstack.common.scheduler.filters.availability_zone_filter 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.filter Module

Filter support

class BaseFilter

Bases: object

Base class for all filter classes.

filter_all(filter_obj_list, filter_properties)

Yield objects that pass the filter.

Can be overriden in a subclass, if you need to base filtering decisions on all objects. Otherwise, one can just override _filter_one() to filter a single object.

class BaseFilterHandler(filter_class_type, filter_namespace)

Bases: object

Base class to handle loading filter classes.

This class should be subclassed where one needs to use filters.

get_all_classes()
get_filtered_objects(filter_classes, objs, filter_properties)