def _register_config_req_handlers(self): # Read handlers get_auth_rule_handler = GetAuthRuleHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) # Write handlers auth_rule_handler = AuthRuleHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) auth_rule_handler_1_9_1 = AuthRuleHandler191(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) auth_rules_handler = AuthRulesHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) pool_config_handler = PoolConfigHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator, pool_config=self.node.poolCfg) pool_upgrade_handler = PoolUpgradeHandler(database_manager=self.node.db_manager, upgrader=self.node.upgrader, write_req_validator=self.node.write_req_validator, pool_manager=self.node.poolManager) taa_aml_handler = TxnAuthorAgreementAmlHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) taa_handler = TxnAuthorAgreementHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) taa_handler_v1 = TxnAuthorAgreementHandlerV1(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) taa_disable_handler = TxnAuthorAgreementDisableHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) get_taa_aml_handler = GetTxnAuthorAgreementAmlHandler(database_manager=self.node.db_manager) get_taa_handler = GetTxnAuthorAgreementHandler(database_manager=self.node.db_manager) node_upgrade_handler = NodeUpgradeHandler(database_manager=self.node.db_manager) ledgers_freeze_handler = LedgersFreezeHandler(database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) get_frozen_ledgers_handler = GetFrozenLedgersHandler(database_manager=self.node.db_manager) # Register write handlers self.node.write_manager.register_req_handler(auth_rule_handler) self.node.write_manager.register_req_handler(auth_rules_handler) self.node.write_manager.register_req_handler(pool_config_handler) self.node.write_manager.register_req_handler(pool_upgrade_handler) self.node.write_manager.register_req_handler(taa_aml_handler) self.node.write_manager.register_req_handler(taa_handler) self.node.write_manager.register_req_handler(taa_disable_handler) self.node.write_manager.register_req_handler(node_upgrade_handler) self.node.write_manager.register_req_handler(ledgers_freeze_handler) # Register read handlers self.node.read_manager.register_req_handler(get_auth_rule_handler) self.node.read_manager.register_req_handler(get_taa_aml_handler) self.node.read_manager.register_req_handler(get_taa_handler) self.node.read_manager.register_req_handler(get_frozen_ledgers_handler) # Register write handlers for a version self.node.write_manager.register_req_handler_with_version(auth_rule_handler_1_9_1, version="1.9.1") self.node.write_manager.register_req_handler_with_version(taa_handler_v1, version="1")
def register_config_req_handlers(self): # Read handlers get_auth_rule_handler = GetAuthRuleHandler( database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) # Write handlers auth_rule_handler = AuthRuleHandler( database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) auth_rules_handler = AuthRulesHandler( database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator) pool_config_handler = PoolConfigHandler( database_manager=self.node.db_manager, write_req_validator=self.node.write_req_validator, pool_config=self.node.poolCfg) pool_upgrade_handler = PoolUpgradeHandler( database_manager=self.node.db_manager, upgrader=self.node.upgrader, write_req_validator=self.node.write_req_validator, pool_manager=self.node.poolManager) taa_aml_handler = TxnAuthorAgreementAmlHandler( database_manager=self.node.db_manager, bls_crypto_verifier=self.node.bls_bft.bls_crypto_verifier, write_req_validator=self.node.write_req_validator) taa_handler = TxnAuthorAgreementHandler( database_manager=self.node.db_manager, bls_crypto_verifier=self.node.bls_bft.bls_crypto_verifier, write_req_validator=self.node.write_req_validator) get_taa_aml_handler = GetTxnAuthorAgreementAmlHandler( database_manager=self.node.db_manager) get_taa_handler = GetTxnAuthorAgreementHandler( database_manager=self.node.db_manager) node_upgrade_handler = NodeUpgradeHandler( database_manager=self.node.db_manager) # Register write handlers self.node.write_manager.register_req_handler(auth_rule_handler) self.node.write_manager.register_req_handler(auth_rules_handler) self.node.write_manager.register_req_handler(pool_config_handler) self.node.write_manager.register_req_handler(pool_upgrade_handler) self.node.write_manager.register_req_handler(taa_aml_handler) self.node.write_manager.register_req_handler(taa_handler) self.node.write_manager.register_req_handler(node_upgrade_handler) # Register read handlers self.node.read_manager.register_req_handler(get_auth_rule_handler) self.node.read_manager.register_req_handler(get_taa_aml_handler) self.node.read_manager.register_req_handler(get_taa_handler)
def register_config_req_handlers(self): # Read handlers get_auth_rule_handler = GetAuthRuleHandler(database_manager=self.db_manager, write_req_validator=self.write_req_validator) # Write handlers auth_rule_handler = AuthRuleHandler(database_manager=self.db_manager, write_req_validator=self.write_req_validator) auth_rules_handler = AuthRulesHandler(database_manager=self.db_manager, write_req_validator=self.write_req_validator) pool_config_handler = PoolConfigHandler(database_manager=self.db_manager, write_req_validator=self.write_req_validator, pool_config=self.poolCfg) pool_upgrade_handler = PoolUpgradeHandler(database_manager=self.db_manager, upgrader=self.upgrader, write_req_validator=self.write_req_validator, pool_manager=self.poolManager) # Register write handlers self.write_manager.register_req_handler(auth_rule_handler) self.write_manager.register_req_handler(auth_rules_handler) self.write_manager.register_req_handler(pool_config_handler) self.write_manager.register_req_handler(pool_upgrade_handler) # Register read handlers self.read_manager.register_req_handler(get_auth_rule_handler)