Package elisa :: Package core :: Package components :: Module service_provider :: Class ServiceProvider

Class ServiceProvider

source code


Service providers run during all the lifetime of the application.

They are started first in the components initialization sequence, so they should listen to the message bus for the 'components_initialized' message before communication with other components.

Instance Methods
 
start(self)
Start the service.
source code
 
stop(self)
Stop the service.
source code

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from component.Component
twisted.internet.defer.Deferred
clean(self)
Clean the component.
source code
twisted.internet.defer.Deferred
initialize(self, **kwargs)
Initialize the component.
source code
 
name__get(self) source code
 
name__set(self, value) source code
    Inherited from log.Loggable
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
Class Methods
    Inherited from component.Component
elisa.core.component.Component or a subclass
create(cls, config_section=None, **kwargs)
Create and initialize the component.
source code
Class Variables

Inherited from extern.log.log.Loggable: logCategory

    Inherited from component.Component
  config_doc = {}
  default_config = {}
  name = property(fget= name__get, fset= name__set)
  path = PathDescriptor()
Properties

Inherited from object: __class__

Method Details

start(self)

source code 

Start the service.

return: a deferred fired when the service is started rtype: elisa.core.utils.defer.Deferred

stop(self)

source code 

Stop the service.

return: a deferred fired when the service is started rtype: elisa.core.utils.defer.Deferred