The ceilometer.openstack.common.loopingcall Module

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

Bases: object

start(interval, initial_delay=None)[source]
stop()[source]
wait()[source]
exception ceilometer.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 ceilometer.openstack.common.log Module

Next topic

The ceilometer.openstack.common.network_utils Module

This Page