dxlelasticsearchservice.app module¶
-
class
dxlelasticsearchservice.app.ElasticsearchService(config_dir)¶ Bases:
dxlbootstrap.app.ApplicationThe "Elasticsearch DXL Python Service" application class.
Constructor parameters:
Parameters: config_dir -- The location of the configuration files for the application. -
client¶ The DXL client used by the application to communicate with the DXL fabric.
Returns: The DXL client Return type: dxlclient.client.DxlClient
-
config¶ The application configuration (as read from the "dxlelasticsearchservice.config" file).
Returns: The application configuration Return type: configparser.ConfigParser
-
on_dxl_connect()¶ Invoked after the client associated with the application has connected to the DXL fabric.
-
on_load_configuration(config)¶ Invoked after the application-specific configuration has been loaded.
This callback provides the opportunity for the application to parse additional configuration properties.
Parameters: config (configparser.ConfigParser) -- The application configuration
-
on_register_event_handlers()¶ Invoked when event handlers should be registered with the application
-
on_register_services()¶ Invoked when services should be registered with the application
-
on_run()¶ Invoked when the application has started running.
-