@Controller public final class PruningController extends LogViewerBaseController
Constructor and Description |
---|
PruningController(ForcePruneService forcePruneService)
Ctr for pruning controller
|
Modifier and Type | Method and Description |
---|---|
void |
deleteApplicationLogs(@NotEmpty String application)
Request to delete logs from a given application.
|
void |
deleteConnectionFromScenarioExecution(@NotEmpty String workflowExecutionId,
@NotEmpty String scenarioExecutionId,
@NotEmpty String connectionId)
Request to delete logs from a given workflow execution
|
void |
deletePackageLogs(@NotEmpty String packageName)
Request to delete logs from a given package.
|
void |
deleteScenarioExecution(@NotEmpty String workflowExecutionId,
@NotEmpty String scenarioExecutionId)
Request to delete logs from a given workflow execution
|
void |
deleteWorkflowLogs(@NotEmpty String workflowExecutionId)
Request to delete logs from a given workflow execution
|
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public PruningController(ForcePruneService forcePruneService)
forcePruneService
- Service providing log deletion by request@DeleteMapping(value="/workflow-executions/{workflowExecutionId}") @ResponseStatus(value=OK) public void deleteWorkflowLogs(@PathVariable @NotEmpty @NotEmpty String workflowExecutionId)
workflowExecutionId
- ID of the workflow execution@DeleteMapping(value="/applications/{application}") @ResponseStatus(value=OK) public void deleteApplicationLogs(@PathVariable @NotEmpty @NotEmpty String application)
application
- Name of the application@DeleteMapping(value="/packages/{packageName}") @ResponseStatus(value=OK) public void deletePackageLogs(@PathVariable @NotEmpty @NotEmpty String packageName)
packageName
- Name of the uploaded package.@DeleteMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}") @ResponseStatus(value=OK) public void deleteScenarioExecution(@PathVariable @NotEmpty @NotEmpty String workflowExecutionId, @PathVariable @NotEmpty @NotEmpty String scenarioExecutionId)
workflowExecutionId
- ID of the workflow executionscenarioExecutionId
- scenario execution ID@DeleteMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/connections/{connectionId}") @ResponseStatus(value=OK) public void deleteConnectionFromScenarioExecution(@PathVariable @NotEmpty @NotEmpty String workflowExecutionId, @PathVariable @NotEmpty @NotEmpty String scenarioExecutionId, @PathVariable @NotEmpty @NotEmpty String connectionId)
workflowExecutionId
- ID of the workflow executionscenarioExecutionId
- scenario execution IDconnectionId
- connection IDCopyright © 2020. All rights reserved.