private void checkConfig()

in adb3client/src/main/java/com/alibaba/cloud/analyticdb/adb3client/AdbClient.java [86:103]


	private void checkConfig(AdbConfig config) throws AdbClientException {
		if (config.getJdbcUrl() == null || config.getJdbcUrl().isEmpty()) {
			throw new AdbClientException(ExceptionCode.INVALID_Config, "jdbcUrl cannot be null");
		}
		if (config.getPassword() == null || config.getPassword().isEmpty()) {
			throw new AdbClientException(ExceptionCode.INVALID_Config, "password cannot be null");
		}

		if (config.getUsername() == null || config.getUsername().isEmpty()) {
			throw new AdbClientException(ExceptionCode.INVALID_Config, "username cannot be null");
		}
		if (config.getWriteBatchSize() < 1) {
			throw new AdbClientException(ExceptionCode.INVALID_Config, "batchSize must > 0");
		}
		if (config.getWriteBatchByteSize() < 1) {
			throw new AdbClientException(ExceptionCode.INVALID_Config, "batchByteSize must > 0");
		}
	}