mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed test example
This commit is contained in:
@@ -46,7 +46,7 @@ public class CanalLauncher {
|
||||
properties.load(new FileInputStream(conf));
|
||||
}
|
||||
|
||||
final CanalStater canalStater = new CanalStater(properties);
|
||||
final CanalStarter canalStater = new CanalStarter(properties);
|
||||
String managerAddress = CanalController.getProperty(properties, CanalConstants.CANAL_ADMIN_MANAGER);
|
||||
if (StringUtils.isNotEmpty(managerAddress)) {
|
||||
String user = CanalController.getProperty(properties, CanalConstants.CANAL_ADMIN_USER);
|
||||
|
||||
@@ -20,9 +20,9 @@ import com.alibaba.otter.canal.spi.CanalMQProducer;
|
||||
* @author rewerma 2018-12-30 下午05:12:16
|
||||
* @version 1.0.1
|
||||
*/
|
||||
public class CanalStater {
|
||||
public class CanalStarter {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(CanalStater.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(CanalStarter.class);
|
||||
|
||||
private CanalController controller = null;
|
||||
private CanalMQProducer canalMQProducer = null;
|
||||
@@ -33,7 +33,7 @@ public class CanalStater {
|
||||
|
||||
private CanalAdminWithNetty canalAdmin;
|
||||
|
||||
public CanalStater(Properties properties){
|
||||
public CanalStarter(Properties properties){
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.alibaba.otter.canal.admin.CanalAdmin;
|
||||
import com.alibaba.otter.canal.common.utils.FileUtils;
|
||||
import com.alibaba.otter.canal.deployer.CanalStater;
|
||||
import com.alibaba.otter.canal.deployer.CanalStarter;
|
||||
import com.alibaba.otter.canal.deployer.InstanceConfig;
|
||||
import com.alibaba.otter.canal.deployer.monitor.InstanceAction;
|
||||
import com.alibaba.otter.canal.deployer.monitor.InstanceConfigMonitor;
|
||||
@@ -37,9 +37,9 @@ public class CanalAdminController implements CanalAdmin {
|
||||
private static final Logger logger = LoggerFactory.getLogger(CanalAdminController.class);
|
||||
private String user;
|
||||
private String passwd;
|
||||
private CanalStater canalStater;
|
||||
private CanalStarter canalStater;
|
||||
|
||||
public CanalAdminController(CanalStater canalStater){
|
||||
public CanalAdminController(CanalStarter canalStater){
|
||||
this.canalStater = canalStater;
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ public class CanalAdminController implements CanalAdmin {
|
||||
this.passwd = passwd;
|
||||
}
|
||||
|
||||
public void setCanalStater(CanalStater canalStater) {
|
||||
public void setCanalStater(CanalStarter canalStater) {
|
||||
this.canalStater = canalStater;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user