package com.alibaba.otter.canal.admin.service;

import com.alibaba.otter.canal.admin.model.CanalConfig;
import com.alibaba.otter.canal.admin.model.CanalInstanceConfig;

public interface PollingConfigService {

    public boolean autoRegister(String ip, Integer adminPort, String cluster, String name);

    CanalConfig getChangedConfig(String ip, Integer port, String md5);

    CanalInstanceConfig getInstancesConfig(String ip, Integer port, String md5);

    CanalInstanceConfig getInstanceConfig(String destination, String md5);
}
