CanalData

package com.hgx.test.common;

/**
* CanalData
*
* @author sasou <admin@php-gene.com> web:http://www.php-gene.com/
* @version 1.0.0
*/
public final class CanalData {
public String ip = "127.0.0.1";
public int port = 11111;
public String[] destination = null;
public String username = "";
public String password = "";
public String filter = "";

/**
* @return the ip
*/
public String getIp() {
return ip;
}

/**
* @param ip
* the ip to set
*/
public void setIp(String ip) {
this.ip = ip;
}

/**
* @return the port
*/
public int getPort() {
return port;
}

/**
* @param port
* the port to set
*/
public void setPort(int port) {
this.port = port;
}

/**
* @return the destination
*/
public String[] getDestination() {
return destination;
}

/**
* @param destination
* the destination to set
*/
public void setDestination(String destination) {
this.destination = destination.split(",");
}

/**
* @return the username
*/
public String getUsername() {
return username;
}

/**
* @param username
* the username to set
*/
public void setUsername(String username) {
this.username = username;
}

/**
* @return the password
*/
public String getPassword() {
return password;
}

/**
* @param password
* the password to set
*/
public void setPassword(String password) {
this.password = password;
}

/**
* @return the filter
*/
public String getFilter() {
return filter;
}

/**
* @param filter
* the filter to set
*/
public void setFilter(String filter) {
this.filter = filter;
}

}
原文地址:https://www.cnblogs.com/heguoxiu/p/10135322.html