parent
208fc51e85
commit
6991e21ad3
@ -0,0 +1,74 @@
|
||||
package com.bsmlab.dfx.agent.config;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AgentConfigDto {
|
||||
private String hostId;
|
||||
private int listenPort;
|
||||
private List<KnownAgent> knownAgent;
|
||||
private List<DataSource> datasource;
|
||||
private List<String> sqlMapperLocations;
|
||||
private DropBoxConfig dropBox;
|
||||
private List<Postman> postman;
|
||||
|
||||
// ============================ INNER CLASSES ============================
|
||||
@Data
|
||||
public static class KnownAgent {
|
||||
private String hostId;
|
||||
private int listenPort;
|
||||
private List<String> dropBoxIdList;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class DataSource {
|
||||
private String dataSourceId;
|
||||
private String driverClassName;
|
||||
private String url;
|
||||
private String username;
|
||||
private String password;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class DropBoxConfig {
|
||||
private String messageStorageRoot;
|
||||
private List<DropBox> dropBoxList;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class DropBox {
|
||||
private String dropBoxId;
|
||||
private String taskType;
|
||||
private String dataSourceId;
|
||||
private String sqlId;
|
||||
private String saveDirectoryRoot;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Postman {
|
||||
private String postmanId;
|
||||
private String taskType;
|
||||
private PostmanAction action;
|
||||
private PostmanMessage message;
|
||||
private String recipientHostId;
|
||||
private String recipientDropBoxId;
|
||||
private List<String> routingHostIdList;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class PostmanAction {
|
||||
private String type;
|
||||
private String command;
|
||||
private List<String> parametersKeyList;
|
||||
private String cron;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class PostmanMessage {
|
||||
private String messageType;
|
||||
private String dataSourceId;
|
||||
private String sqlId;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.bsmlab.dfx.agent.config;
|
||||
|
||||
public class AgentConfigReader {
|
||||
}
|
||||
Loading…
Reference in new issue