fun execute(params: Array<String?>?): GetETLDriverInfo? { return try { val commandLine: CommandLine = getCommandLine(params, PARAMS_STRUCTURE) val minBId: String = commandLine.getOptionValue("min-batch-id") LOGGER.debug("minimum-batch-id is $minBId") val maxBId: String = commandLine.getOptionValue("max-batch-id") LOGGER.debug("maximum-batch-id is $maxBId") val getETLDriverInfoList: List<GetETLDriverInfo> = getETLInfoDAO.getETLInfo(minBId.toLong(), maxBId.toLong()) LOGGER.info("list of File is " + getETLDriverInfoList[0].getFileList()) getETLDriverInfoList[0] } catch (e: Exception) { LOGGER.error("Error occurred", e) throw MetadataException(e) } }
This method runs GetETLInfo proc and retrieves information regarding files available for batches mentioned .