public MasterSlaveRuleConfiguration loadMasterSlaveRuleConfiguration ( final String shardingSchemaName ) { return new MasterSlaveRuleConfigurationYamlSwapper ( ) . swap ( YamlEngine . unmarshal ( regCenter . getDirectly ( configNode . getRulePath ( shardingSchemaName ) ) , YamlMasterSlaveRuleConfiguration . class ) ) ; }
Load master - slave rule configuration .