|
|
|
@ -35,17 +35,17 @@ type ConnectionDataOfSSH = {
|
|
|
|
|
sshTimeOut: number; |
|
|
|
|
sshKeepAlive: number; |
|
|
|
|
} & ( |
|
|
|
|
| { |
|
|
|
|
sshType: 'NORMAL'; // 验证方法:密码
|
|
|
|
|
sshPrivateKeyPath: ''; // 没啥意义,该验证方法下为空字符串
|
|
|
|
|
sshSecret: string; // 密码
|
|
|
|
|
} |
|
|
|
|
| { |
|
|
|
|
sshType: 'KEY'; // 验证方法:公钥
|
|
|
|
|
sshPrivateKeyPath: string; // 私钥
|
|
|
|
|
sshSecret: string; // 密码短语
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
| { |
|
|
|
|
sshType: 'NORMAL'; // 验证方法:密码
|
|
|
|
|
sshPrivateKeyPath: ''; // 没啥意义,该验证方法下为空字符串
|
|
|
|
|
sshSecret: string; // 密码
|
|
|
|
|
} |
|
|
|
|
| { |
|
|
|
|
sshType: 'KEY'; // 验证方法:公钥
|
|
|
|
|
sshPrivateKeyPath: string; // 私钥
|
|
|
|
|
sshSecret: string; // 密码短语
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
type ConnectionDataOfSSL = { |
|
|
|
|
usingSsl: boolean; // 使用SSL通道
|
|
|
|
@ -209,28 +209,7 @@ export type ConnectionJDBC = {
|
|
|
|
|
/** |
|
|
|
|
* 并行装载 |
|
|
|
|
*/ |
|
|
|
|
parallelLoad?: { |
|
|
|
|
/** |
|
|
|
|
* 服务器地址 |
|
|
|
|
*/ |
|
|
|
|
serverAddress?: string; |
|
|
|
|
/** |
|
|
|
|
* 服务器地址选项 |
|
|
|
|
*/ |
|
|
|
|
serverAddressItems?: string[]; |
|
|
|
|
/** |
|
|
|
|
* 复用临时表 |
|
|
|
|
*/ |
|
|
|
|
reuseTemporaryTable?: string; |
|
|
|
|
/** |
|
|
|
|
* 临时文件条数限制 |
|
|
|
|
*/ |
|
|
|
|
filePiecesLimit?: string; |
|
|
|
|
/** |
|
|
|
|
* 临时文件大小限制 |
|
|
|
|
*/ |
|
|
|
|
fileSizeLimit?: string |
|
|
|
|
}; |
|
|
|
|
parallelLoad?: IParallelLoad; |
|
|
|
|
/** |
|
|
|
|
* HDFS |
|
|
|
|
*/ |
|
|
|
@ -240,8 +219,33 @@ export type ConnectionJDBC = {
|
|
|
|
|
*/ |
|
|
|
|
hdfsAddress?: string; |
|
|
|
|
}; |
|
|
|
|
} & ConnectionDataOfSSH & |
|
|
|
|
ConnectionDataOfSSL |
|
|
|
|
} & ConnectionDataOfSSH & ConnectionDataOfSSL; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 并行装载 |
|
|
|
|
*/ |
|
|
|
|
export interface IParallelLoad { |
|
|
|
|
/** |
|
|
|
|
* 服务器地址 |
|
|
|
|
*/ |
|
|
|
|
serverAddress?: string; |
|
|
|
|
/** |
|
|
|
|
* 服务器地址选项 |
|
|
|
|
*/ |
|
|
|
|
serverAddressItems?: string[]; |
|
|
|
|
/** |
|
|
|
|
* 复用临时表 |
|
|
|
|
*/ |
|
|
|
|
reuseTemporaryTable?: string; |
|
|
|
|
/** |
|
|
|
|
* 临时文件条数限制 |
|
|
|
|
*/ |
|
|
|
|
filePiecesLimit?: string; |
|
|
|
|
/** |
|
|
|
|
* 临时文件大小限制 |
|
|
|
|
*/ |
|
|
|
|
fileSizeLimit?: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface ContextHashtable { |
|
|
|
|
'java.naming.factory.initial': string; |
|
|
|
|