• 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;
    }

    }
  • 相关阅读:
    Chapter 1. 数据库(介绍、主键、外键)
    练习、悬浮标签、导航菜单
    Chapter 3. document对象
    Chapter 3. JavaScript
    Chapter 2. HTML---CSS样式表(格式与布局)
    Chapter 2. HTML---CSS样式表
    12月26 一维数组
    12月23 语句
    12月23 运算符
    12月21 vs2012 数据类型
  • 原文地址:https://www.cnblogs.com/heguoxiu/p/10135322.html
Copyright © 2020-2023  润新知