Package com.polarion.platform.jobs
Interface ICleanupJobUnit
- All Superinterfaces:
IJobUnit
This job will remove work dirs of other jobs which were last modified before given time.
Work dirs will be removed regardless of whether there are still jobs attached to them.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
FieldsFields inherited from interface com.polarion.platform.jobs.IJobUnit
UNKNOWN_WORK_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setPreserveAgeHours
(int preserveAgeHours) Job parameter: how old job work dirs will be preserved (in hours).void
setPreserveFailedAgeHours
(int preserveFailedAgeHours) Job parameter: How long the failed job directories are preserved in hours.Methods inherited from interface com.polarion.platform.jobs.IJobUnit
activate, getCreator, getJob, getLogger, getName, getPriority, getScope, getWorkLength, run, setJob, setLogger, setScope, setWorkDir
-
Field Details
-
JOB_NAME
- See Also:
-
-
Method Details
-
setPreserveAgeHours
void setPreserveAgeHours(int preserveAgeHours) Job parameter: how old job work dirs will be preserved (in hours).- Parameters:
preserveAgeHours
- preserve age in hours
-
setPreserveFailedAgeHours
void setPreserveFailedAgeHours(int preserveFailedAgeHours) Job parameter: How long the failed job directories are preserved in hours.- Parameters:
preserveFailedAgeHours
- preserve age in hours- Since:
- 3.23.4
-