Interface DeploymentResultDeletionService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(long deploymentResultId)
      Delete single Deployment Result and related records.
      int deleteForEnvironment​(long environmentId)
      Delete batch of Deployment Results and related records.
      void removeLogs​(long deploymentResultId, long maxAllowedLogSize)
      Delete Deployment Result logfile if its size exceeds threshold
      int unlinkFromVersion​(long deploymentVersionId)
      Unlink Deployment Results from Deployment Version.
      int unlinkFromVersionForProject​(long deploymentProjectId)
      Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
    • Method Detail

      • delete

        void delete​(long deploymentResultId)
        Delete single Deployment Result and related records.
        Parameters:
        deploymentResultId - id of Deployment Result to delete
      • deleteForEnvironment

        int deleteForEnvironment​(long environmentId)
        Delete batch of Deployment Results and related records.
        Parameters:
        environmentId - id of Environment which DeploymentResults are to be deleted
      • unlinkFromVersion

        int unlinkFromVersion​(long deploymentVersionId)
        Unlink Deployment Results from Deployment Version.
        Parameters:
        deploymentVersionId - id of DeploymentVersion which DeploymentRecords should be unlinked from
      • unlinkFromVersionForProject

        int unlinkFromVersionForProject​(long deploymentProjectId)
        Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
        Parameters:
        deploymentProjectId - id of DeploymentProject
      • removeLogs

        void removeLogs​(long deploymentResultId,
                        long maxAllowedLogSize)
        Delete Deployment Result logfile if its size exceeds threshold
        Parameters:
        deploymentResultId - id of Deployment Result
        maxAllowedLogSize - delete only files longer than allowed size, when -1 then delete all files