예제 #1
0
 /**
  * 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());
 }
예제 #3
0
 protected void fillHdfsLink(MLink link) {
   MConfigList configs = link.getConnectorLinkConfig();
   configs.getStringInput("linkConfig.confDir").setValue(getCluster().getConfigurationPath());
 }