The openstack_dashboard.openstack.common.loopingcall ModuleΒΆ

class openstack_dashboard.openstack.common.loopingcall.DynamicLoopingCall(f=None, *args, **kw)[source]

Bases: openstack_dashboard.openstack.common.loopingcall.LoopingCallBase

A looping call which sleeps until the next known event.

The function called should return how long to sleep for before being called again.

DynamicLoopingCall.start(initial_delay=None, periodic_interval_max=None)[source]
class openstack_dashboard.openstack.common.loopingcall.FixedIntervalLoopingCall(f=None, *args, **kw)[source]

Bases: openstack_dashboard.openstack.common.loopingcall.LoopingCallBase

A fixed interval looping call.

FixedIntervalLoopingCall.start(interval, initial_delay=None)[source]
openstack_dashboard.openstack.common.loopingcall.LoopingCall

alias of FixedIntervalLoopingCall

class openstack_dashboard.openstack.common.loopingcall.LoopingCallBase(f=None, *args, **kw)[source]

Bases: object

LoopingCallBase.stop()[source]
LoopingCallBase.wait()[source]
exception openstack_dashboard.openstack.common.loopingcall.LoopingCallDone(retvalue=True)[source]

Bases: exceptions.Exception

Exception to break out and stop a LoopingCall.

The poll-function passed to LoopingCall can raise this exception to break out of the loop normally. This is somewhat analogous to StopIteration.

An optional return-value can be included as the argument to the exception; this return-value will be returned by LoopingCall.wait()

Previous topic

The openstack_dashboard.openstack.common.local Module

Next topic

The openstack_dashboard.openstack.common.context Module

This Page