deluge.component
-
class deluge.component.Component(name, interval=1, depend=None)
Bases: object
-
get_component_name()
-
get_state()
-
shutdown()
-
start()
-
stop()
-
class deluge.component.ComponentRegistry
-
get(name)
- Returns a reference to the component ‘name’
-
pause()
- Pauses all components. Stops calling update()
-
pause_component(component)
-
register(name, obj, depend)
- Registers a component.. depend must be list or None
-
resume()
- Resumes all components. Starts calling update()
-
resume_component(component)
-
shutdown()
- Shuts down all components. This should be called when the program
exits so that components can do any necessary clean-up.
-
start()
- Starts all components
-
start_component(name)
- Starts a component
-
stop()
- Stops all components
-
stop_component(component)
-
update()
- Updates all components
-
deluge.component.get(component)
- Return a reference to the component
-
deluge.component.pause(component=None)
- Pauses all or specificed components
-
deluge.component.register(name, obj, depend=None)
- Registers a component with the registry
-
deluge.component.resume(component=None)
- Resumes all or specificed components
-
deluge.component.shutdown()
- Shutdowns all components
-
deluge.component.start(component=None)
- Starts all components
-
deluge.component.stop(component=None)
- Stops all or specified components
-
deluge.component.update()
- Updates all components