test_class.declarator: primaryReplicaDataSourceRule = new PrimaryReplicaReplicationDataSourceRule(
              new PrimaryReplicaReplicationDataSourceRuleConfiguration("test_pr", "primary_ds", Arrays.asList("replica_ds_0", "replica_ds_1"), "random"), new RandomReplicaLoadBalanceAlgorithm())
test_class.modifier: private final
test_class.original_string: private final PrimaryReplicaReplicationDataSourceRule primaryReplicaDataSourceRule = new PrimaryReplicaReplicationDataSourceRule(
              new PrimaryReplicaReplicationDataSourceRuleConfiguration("test_pr", "primary_ds", Arrays.asList("replica_ds_0", "replica_ds_1"), "random"), new RandomReplicaLoadBalanceAlgorithm());
test_class.type: PrimaryReplicaReplicationDataSourceRule
test_class.var_name: primaryReplicaDataSourceRule
test_class.file: shardingsphere-features/shardingsphere-primary-replica-replication/shardingsphere-primary-replica-replication-common/src/test/java/org/apache/shardingsphere/replication/primaryreplica/rule/PrimaryReplicaReplicationDataSourceRuleTest.java
test_class.identifier: PrimaryReplicaReplicationDataSourceRuleTest
test_case.body: @Test
      public void assertGetDataSourceMapper() {
          Map<String, Collection<String>> actual = primaryReplicaDataSourceRule.getDataSourceMapper();
          Map<String, Collection<String>> expected = ImmutableMap.of("test_pr", Arrays.asList("primary_ds", "replica_ds_0", "replica_ds_1"));
          assertThat(actual, is(expected));
      }
test_case.class_method_signature: PrimaryReplicaReplicationDataSourceRuleTest.assertGetDataSourceMapper()
test_case.full_signature: @Test public void assertGetDataSourceMapper()
test_case.identifier: assertGetDataSourceMapper
test_case.invocations: getDataSourceMapper of asList assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetDataSourceMapper()
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: primaryDataSourceName
focal_class.modifier: private final
focal_class.original_string: private final String primaryDataSourceName;
focal_class.type: String
focal_class.var_name: primaryDataSourceName
focal_class.declarator: replicaDataSourceNames
focal_class.modifier: private final
focal_class.original_string: private final List<String> replicaDataSourceNames;
focal_class.type: List<String>
focal_class.var_name: replicaDataSourceNames
focal_class.declarator: loadBalancer
focal_class.modifier: private final
focal_class.original_string: private final ReplicaLoadBalanceAlgorithm loadBalancer;
focal_class.type: ReplicaLoadBalanceAlgorithm
focal_class.var_name: loadBalancer
focal_class.declarator: disabledDataSourceNames = new HashSet<>()
focal_class.modifier: @Getter(AccessLevel.NONE)
      private final
focal_class.original_string: @Getter(AccessLevel.NONE)
      private final Collection<String> disabledDataSourceNames = new HashSet<>();
focal_class.type: Collection<String>
focal_class.var_name: disabledDataSourceNames
focal_class.file: shardingsphere-features/shardingsphere-primary-replica-replication/shardingsphere-primary-replica-replication-common/src/main/java/org/apache/shardingsphere/replication/primaryreplica/rule/PrimaryReplicaReplicationDataSourceRule.java
focal_class.identifier: PrimaryReplicaReplicationDataSourceRule
focal_class.class_method_signature: PrimaryReplicaReplicationDataSourceRule.PrimaryReplicaReplicationDataSourceRule(final PrimaryReplicaReplicationDataSourceRuleConfiguration config, final ReplicaLoadBalanceAlgorithm loadBalancer)
focal_class.full_signature: public  PrimaryReplicaReplicationDataSourceRule(final PrimaryReplicaReplicationDataSourceRuleConfiguration config, final ReplicaLoadBalanceAlgorithm loadBalancer)
focal_class.identifier: PrimaryReplicaReplicationDataSourceRule
focal_class.modifiers: public
focal_class.parameters: (final PrimaryReplicaReplicationDataSourceRuleConfiguration config, final ReplicaLoadBalanceAlgorithm loadBalancer)
focal_class.signature:  PrimaryReplicaReplicationDataSourceRule(final PrimaryReplicaReplicationDataSourceRuleConfiguration config, final ReplicaLoadBalanceAlgorithm loadBalancer)
focal_class.class_method_signature: PrimaryReplicaReplicationDataSourceRule.checkConfiguration(final PrimaryReplicaReplicationDataSourceRuleConfiguration config)
focal_class.full_signature: private void checkConfiguration(final PrimaryReplicaReplicationDataSourceRuleConfiguration config)
focal_class.identifier: checkConfiguration
focal_class.modifiers: private
focal_class.parameters: (final PrimaryReplicaReplicationDataSourceRuleConfiguration config)
focal_class.return: void
focal_class.signature: void checkConfiguration(final PrimaryReplicaReplicationDataSourceRuleConfiguration config)
focal_class.class_method_signature: PrimaryReplicaReplicationDataSourceRule.getReplicaDataSourceNames()
focal_class.full_signature: public List<String> getReplicaDataSourceNames()
focal_class.identifier: getReplicaDataSourceNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getReplicaDataSourceNames()
focal_class.class_method_signature: PrimaryReplicaReplicationDataSourceRule.updateDisabledDataSourceNames(final String dataSourceName, final boolean isDisabled)
focal_class.full_signature: public void updateDisabledDataSourceNames(final String dataSourceName, final boolean isDisabled)
focal_class.identifier: updateDisabledDataSourceNames
focal_class.modifiers: public
focal_class.parameters: (final String dataSourceName, final boolean isDisabled)
focal_class.return: void
focal_class.signature: void updateDisabledDataSourceNames(final String dataSourceName, final boolean isDisabled)
focal_class.class_method_signature: PrimaryReplicaReplicationDataSourceRule.getDataSourceMapper()
focal_class.full_signature: public Map<String, Collection<String>> getDataSourceMapper()
focal_class.identifier: getDataSourceMapper
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Collection<String>>
focal_class.signature: Map<String, Collection<String>> getDataSourceMapper()
focal_method.body: public Map<String, Collection<String>> getDataSourceMapper() {
          Map<String, Collection<String>> result = new HashMap<>(1, 1);
          Collection<String> actualDataSourceNames = new LinkedList<>();
          actualDataSourceNames.add(primaryDataSourceName);
          actualDataSourceNames.addAll(replicaDataSourceNames);
          result.put(name, actualDataSourceNames);
          return result;
      }
focal_method.class_method_signature: PrimaryReplicaReplicationDataSourceRule.getDataSourceMapper()
focal_method.full_signature: public Map<String, Collection<String>> getDataSourceMapper()
focal_method.identifier: getDataSourceMapper
focal_method.invocations: add addAll put
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Map<String, Collection<String>>
focal_method.signature: Map<String, Collection<String>> getDataSourceMapper()