package com.njcn.gather.systemops.database.config;

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

/**
 * 数据库运维配置。
 */
@Data
@Component
@ConfigurationProperties(prefix = "dbms")
public class DbmsProperties {

    private Backup backup = new Backup();
    private Tools tools = new Tools();

    @Data
    public static class Backup {
        private String storagePath = "D:/dbms-backup";
        private Integer defaultMaxFileSizeMb = 512;
        private Integer mysqlFetchSize = 1000;
    }

    @Data
    public static class Tools {
        private String expdpPath;
        private String impdpPath;
    }
}
