neutron_lib.services.base module

class neutron_lib.services.base.ServicePluginBase

Bases: WorkerBase

Define base interface for any Advanced Service plugin.

abstract get_plugin_description()

Return string description of the plugin.

abstract get_plugin_type()

Return one of predefined service types.

supported_extension_aliases = []
class neutron_lib.services.base.WorkerBase

Bases: object

add_worker(worker)

Adds NeutronWorker needed for this service

If a object needs to define workers thread/processes outside of API/RPC workers then it will call this method to register worker. Should be called on initialization stage before running services

add_workers(workers)

Adds NeutronWorker list needed for this service

The same as add_worker but adds a list of workers

get_workers()

Returns a collection NeutronWorker instances needed by this service.