dxleposervice.app module¶
-
class
dxleposervice.app.
EpoService
(config_dir)¶ Bases:
dxlbootstrap.app.Application
A DXL service that exposes the remote commands of one or more ePO servers to the DXL fabric. When a DXL request message is received, the remote command is invoked on the appropriate ePO server and its response is packaged and returned to the invoking client via a DXL response message.
Constructor parameters:
Parameters: config_dir -- The location of the configuration files for the application -
DEFAULT_EPO_PORT
= 8443¶
-
DEFAULT_VERIFY_CERTIFICATE
= True¶
-
DXL_REQUEST_FORMAT
= '/mcafee/service/epo/remote/{0}'¶
-
DXL_SERVICE_REGISTRATION_TIMEOUT
= 60¶
-
DXL_SERVICE_TYPE
= '/mcafee/service/epo/remote'¶
-
EPO_HOST_CONFIG_PROP
= 'host'¶
-
EPO_PASSWORD_CONFIG_PROP
= 'password'¶
-
EPO_PORT_CONFIG_PROP
= 'port'¶
-
EPO_UNIQUE_ID_CONFIG_PROP
= 'uniqueId'¶
-
EPO_USER_CONFIG_PROP
= 'user'¶
-
EPO_VERIFY_CERTIFICATE
= 'verifyCertificate'¶
-
EPO_VERIFY_CERT_BUNDLE
= 'verifyCertBundle'¶
-
GENERAL_CONFIG_SECTION
= 'General'¶
-
GENERAL_EPO_NAMES_CONFIG_PROP
= 'epoNames'¶
-
client
¶ The DXL client used by the application to communicate with the DXL fabric
-
config
¶ The application configuration (as read from the "dxleposervice.config" file)
-
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 -- The application configuration
-
on_register_services
()¶ Invoked when services should be registered with the application
-
on_run
()¶ Invoked when the application has started running.
-