The congress.harness
Module¶
-
congress.harness.
create2
(node_id=None, bus_id=None, existing_node=None, policy_engine=True, datasources=True, api=True)¶ Get Congress up.
Creates a DseNode if one is not provided and adds policy_engine, datasources, api to that node.
:param node_id is node_id of DseNode to be created :param bus_id is partition_id of DseNode to be created :param existing_node is a DseNode (optional; in lieu of previous 2 params) :param policy_engine controls whether policy_engine is included :param datasources controls whether datasources are included :param api controls whether API is included :returns DseNode
-
congress.harness.
create_api
()¶ Return service that encapsulates api logic for DSE2.
-
congress.harness.
create_api_models
(bus)¶ Create all the API models and return as a dictionary for DSE2.
-
congress.harness.
create_datasources
(bus)¶ Create and register datasource services .
-
congress.harness.
create_policy_engine
()¶ Create policy engine and initialize it using the api models.
-
congress.harness.
create_policy_library_service
()¶ Create policy library service.
-
congress.harness.
initialize_policy_engine
(engine)¶ Initialize the policy engine using the API.