@Service public class CreatePackageServiceImpl extends Object implements CreatePackageService
Constructor and Description |
---|
CreatePackageServiceImpl(PackageCreateDAO packageCreateDAO,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String basePackagePath,
String baseCsvPath,
String baseScenarioJsonPath,
String errorsCsvPath,
String applicationMetadataJsonPath)
Service creating log packages
|
Modifier and Type | Method and Description |
---|---|
File |
createLogsPackageForApplication(String application)
Creates a zip file containing csv dump from the database, that has all logs stored for a given application.
|
File |
createLogsPackageForConnection(String workflowExecutionId,
String scenarioExecutionId,
String connectionId)
Create package for a given connection that was used during a scenario execution
The package has the following structure:
{connection_name}_logs.csv
{connection_name}_errors.csv
{connection_name}_metadata.json
|
@Autowired public CreatePackageServiceImpl(PackageCreateDAO packageCreateDAO, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Value(value="${packaging.base.zip.path}") String basePackagePath, @Value(value="${packaging.base.csv.path}") String baseCsvPath, @Value(value="${packaging.base.json.scenario.path}") String baseScenarioJsonPath, @Value(value="${packaging.errors.csv.path}") String errorsCsvPath, @Value(value="${packaging.base.json.application.path}") String applicationMetadataJsonPath)
objectMapper
- jackson mapperbasePackagePath
- base path to the zip packagebaseCsvPath
- base path to the temp csv filebaseScenarioJsonPath
- base path to the temp json fileapplicationMetadataJsonPath
- Path to the application package metadata pointing to 'logs' folder of TomcaterrorsCsvPath
- Path to the error csv dump pointing to 'logs' folder of TomcatpackageCreateDAO
- Package create DAOpublic File createLogsPackageForApplication(String application)
CreatePackageService
createLogsPackageForApplication
in interface CreatePackageService
application
- Application for which the dump should be performedpublic File createLogsPackageForConnection(String workflowExecutionId, String scenarioExecutionId, String connectionId)
CreatePackageService
createLogsPackageForConnection
in interface CreatePackageService
workflowExecutionId
- workflow execution IDscenarioExecutionId
- scenario executino IDconnectionId
- connection IDCopyright © 2020. All rights reserved.