package com.bcxin.signature.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Auther linqinglin
 * @date 2022/3/27 15:51
 */
@Component
@ConfigurationProperties(prefix = "file.write")
public class FileWriteConfig {

    /** 开关 true开 false关 */
    private static Boolean useFtp = false;

    private static String host;

    private static String userName;

    private static String password;

    private static int port;

    private static String filePath;

    public static int defaultTimeoutSecond = 10;

    public static int connectTimeoutSecond = 10;

    public static int dataTimeoutSecond = 10;

    public static int threadPoolSize = 1;

    public static int ftpConnectionSize = 1;

    public static Boolean getUseFtp() {
        return useFtp;
    }

    public void setUseFtp(Boolean useFtp) {
        FileWriteConfig.useFtp = useFtp;
    }

    public static String getHost() {
        return host;
    }

    public void setHost(String host) {
        FileWriteConfig.host = host;
    }

    public static String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        FileWriteConfig.userName = userName;
    }

    public static String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        FileWriteConfig.password = password;
    }

    public static int getPort() {
        return port;
    }

    public void setPort(int port) {
        FileWriteConfig.port = port;
    }

    public static String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        FileWriteConfig.filePath = filePath;
    }

}
