dxlconsole.modules.broker.module module¶
-
class
dxlconsole.modules.broker.module.
BrokerInfoHandler
(application, request, module)¶ Bases:
dxlconsole.handlers.BaseRequestHandler
Handles post requests to get broker information
Constructor parameters:
Parameters: - application -- The application associated with the request handler
- request -- The request
- module -- The module this request handler is associated with
-
data_received
(chunk)¶ Implement this method to handle streamed request data.
Requires the .stream_request_body decorator.
-
get
(*args, **kwargs)¶ Sends requests to get broker information (health and the broker registry topic)
-
class
dxlconsole.modules.broker.module.
BrokerModule
(app)¶ Bases:
dxlconsole.module.Module
Module that provides information about the OpenDXL broker that is being managed
Constructor parameters:
Parameters: app -- The application that the module is a part of -
BROKER_HEALTH_TOPIC
= '/mcafee/service/dxl/broker/health'¶
-
BROKER_REGISTRY_QUERY_TOPIC
= '/mcafee/service/dxl/brokerregistry/query'¶
-
content
¶ The content of the module (JS code)
Returns: The content of the module (JS code)
-
enabled
¶ Returns whether the module is enabled
Returns: Whether the module is enabled
-
handlers
¶ Web (Tornado) handlers for the module
Returns: The web (Tornado) handlers for the module
-