/** * Fill link config based on currently active provider. * * @param link MLink object to fill */ protected void fillRdbmsLinkConfig(MLink link) { MConfigList configs = link.getConnectorLinkConfig(); configs.getStringInput("linkConfig.jdbcDriver").setValue(provider.getJdbcDriver()); configs.getStringInput("linkConfig.connectionString").setValue(provider.getConnectionUrl()); configs.getStringInput("linkConfig.username").setValue(provider.getConnectionUsername()); configs.getStringInput("linkConfig.password").setValue(provider.getConnectionPassword()); }
protected void fillKafkaLinkConfig(MLink link) { MConfigList configs = link.getConnectorLinkConfig(); configs.getStringInput("linkConfig.brokerList").setValue(testUtil.getKafkaServerUrl()); configs.getStringInput("linkConfig.zookeeperConnect").setValue(testUtil.getZkUrl()); }
protected void fillHdfsLink(MLink link) { MConfigList configs = link.getConnectorLinkConfig(); configs.getStringInput("linkConfig.confDir").setValue(getCluster().getConfigurationPath()); }