dxlconsole.modules.topology.module module¶
-
class
dxlconsole.modules.topology.module.BrokerRegistryQueryHandler(application, request, module)¶ Bases:
dxlconsole.handlers.BaseRequestHandlerHandles requests to get broker registry output
-
data_received(chunk)¶ Implement this method to handle streamed request data.
Requires the .stream_request_body decorator.
-
get(*args, **kwargs)¶
-
-
class
dxlconsole.modules.topology.module.TopologyModule(app)¶ Bases:
dxlconsole.module.ModuleModule used to display the topology of the DXL fabric
Constructor parameters:
Parameters: app -- The application that the module is a part of -
BROKER_REGISTRY_QUERY_TOPIC= '/mcafee/service/dxl/brokerregistry/query'¶
-
BROKER_UPDATE_INTERVAL= 60¶
-
FABRIC_CHANGE_EVENT_TOPIC= '/mcafee/event/dxl/fabricchange'¶
-
content¶ The content of the module (JS code)
Returns: The content of the module (JS code)
-
get_broker_registry(client_id=None)¶ Queries the broker for the broker registry and replaces the currently stored one with the new results. Notifies all connected web sockets that new broker information is available.
-
handlers¶ Web (Tornado) handlers for the module
Returns: The web (Tornado) handlers for the module
-
update_broker_registry()¶ Updates the broker registry and notifies all clients
-