Interface ProjectCleanupTask
- All Superinterfaces:
ScheduleTask
Task for archiving project repository files.
- Since:
- 5.2.903
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumVersion history archiving mode. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the minimum number of days of version history to keep onpartial cleanup.booleanReturns whether or not content and media stores are to be archived.booleanReturns whether or not the template store is to be ignored for this cleanup task.booleanReturns whether or not the maximum run-time of this task is to be limited.intReturns the maximum allowed run-time of this task.@NotNull ProjectCleanupTask.ModegetMode()Returns the cleanup mode.booleanReturns whether or not deleted elements are to be archived.booleanReturns whether or not system data is to be archived.booleanReturns whether or not no longer required version history is to be archived.longReturns the delay between archiving steps.booleanReturns whether or not archiving is to be throttled.voidsetCleanupAge(int age) Sets the number of days of version history to keep onpartial cleanup.voidsetIgnoreContentAndMedia(boolean ignore) Defines whether or not content and media stores are to be archived.voidsetIgnoreTemplateStore(boolean ignore) Defines whether or not the template store is to be ignored for this cleanup task.voidsetLimitDuration(boolean limitDuration) Defines whether or not the maximum run-time of this task is to be limited.voidsetMaxDuration(int minutes) Defines the maximum allowed run-time of this task.voidsetMode(@NotNull ProjectCleanupTask.Mode mode) Defines the cleanup mode.voidsetRemoveDeletedElements(boolean removeDeletedElements) Defines whether or not deleted elements are to be archived.voidsetRemoveInternalFiles(boolean remove) Defines whether or not system data is to be archived.voidsetRemoveOldElements(boolean removeOldElements) Defines whether or not no longer required version history is to be archived.voidsetThrottleTime(long throttleTime) Defines the delay between archiving steps.voidsetUseThrottling(boolean throttling) Defines whether or not archiving is to be throttled.Methods inherited from interface de.espirit.firstspirit.access.schedule.ScheduleTask
checkParams, getClusterNodeName, getDescription, getExecuteInFault, getExecuteParallel, getName, getRemoteTaskType, getScheduleEntry, getTemplate, hasTemplate, isActive, isExecuteOnClusterNode, isProjectTask, setActive, setClusterNodeName, setDescription, setExecuteInFault, setExecuteOnClusterNode, setExecuteParallel, setName, setTemplate, test
-
Method Details
-
getCleanupAge
int getCleanupAge()Returns the minimum number of days of version history to keep onpartial cleanup.- Returns:
- The minimum number of days of version history to keep.
- Since:
- 5.2.903
- See Also:
-
setCleanupAge
void setCleanupAge(int age) Sets the number of days of version history to keep onpartial cleanup.- Parameters:
age- The minimum number of days of version history to keep.- Since:
- 5.2.903
- See Also:
-
getRemoveDeletedElements
boolean getRemoveDeletedElements()Returns whether or not deleted elements are to be archived.- Returns:
- Whether or not deleted elements are to be archived.
- Since:
- 5.2.903
-
setRemoveDeletedElements
void setRemoveDeletedElements(boolean removeDeletedElements) Defines whether or not deleted elements are to be archived.- Parameters:
removeDeletedElements-trueif deleted elements are to be archived,falseotherwise.- Since:
- 5.2.903
-
getRemoveOldElements
boolean getRemoveOldElements()Returns whether or not no longer required version history is to be archived.- Returns:
trueif no longer required version history are to be archived,falseotherwise.- Since:
- 5.2.903
-
setRemoveOldElements
void setRemoveOldElements(boolean removeOldElements) Defines whether or not no longer required version history is to be archived.- Parameters:
removeOldElements-trueif no longer required version history are to be archived,falseotherwise.- Since:
- 5.2.903
-
getIgnoreTemplateStore
boolean getIgnoreTemplateStore()Returns whether or not the template store is to be ignored for this cleanup task.- Returns:
trueif template store elements are to be ignored,falseotherwise- Since:
- 5.2.903
- See Also:
-
setIgnoreTemplateStore
void setIgnoreTemplateStore(boolean ignore) Defines whether or not the template store is to be ignored for this cleanup task.- Parameters:
ignore-trueif template store elements are to be ignored,falseotherwise- Since:
- 5.2.903
- See Also:
-
getRemoveInternalFiles
boolean getRemoveInternalFiles()Returns whether or not system data is to be archived.- Returns:
trueif system data is to be archived,falseotherwise.- Since:
- 5.2.903
-
setRemoveInternalFiles
void setRemoveInternalFiles(boolean remove) Defines whether or not system data is to be archived.- Parameters:
remove-trueif system data is to be archived,falseotherwise.- Since:
- 5.2.903
-
getMode
Returns the cleanup mode.- Returns:
- The cleanup mode.
- Since:
- 5.2.903
-
setMode
Defines the cleanup mode.- Parameters:
mode- The cleanup mode.- Since:
- 5.2.903
-
getIgnoreContentAndMedia
boolean getIgnoreContentAndMedia()Returns whether or not content and media stores are to be archived.- Returns:
trueif content and media stores are not to be archived,falseotherwise.- Since:
- 5.2.903
-
setIgnoreContentAndMedia
void setIgnoreContentAndMedia(boolean ignore) Defines whether or not content and media stores are to be archived.- Parameters:
ignore-trueif content and media stores are not to be archived,falseotherwise.- Since:
- 5.2.903
-
getLimitDuration
boolean getLimitDuration()Returns whether or not the maximum run-time of this task is to be limited.- Returns:
trueif the maximum run-time of this task is to be limited,falseotherwise.- Since:
- 5.2.903
- See Also:
-
setLimitDuration
void setLimitDuration(boolean limitDuration) Defines whether or not the maximum run-time of this task is to be limited.- Parameters:
limitDuration-trueif the maximum run-time of this task is to be limited,falseotherwise.- Since:
- 5.2.903
- See Also:
-
getMaxDuration
int getMaxDuration()Returns the maximum allowed run-time of this task.- Returns:
- The maximum allowed run-time of this task in minutes.
-1means unlimited. - Since:
- 5.2.903
- See Also:
-
setMaxDuration
void setMaxDuration(int minutes) Defines the maximum allowed run-time of this task.- Parameters:
minutes- The maximum allowed run-time of this task in minutes. Pass-1for unlimited.- Since:
- 5.2.903
- See Also:
-
getUseThrottling
boolean getUseThrottling()Returns whether or not archiving is to be throttled.- Returns:
trueif the archiving is to be throttled,falseotherwise.- Since:
- 5.2.903
- See Also:
-
setUseThrottling
void setUseThrottling(boolean throttling) Defines whether or not archiving is to be throttled.- Parameters:
throttling-trueif the archiving is to be throttled,falseotherwise.- Since:
- 5.2.903
- See Also:
-
getThrottleTime
long getThrottleTime()Returns the delay between archiving steps.- Returns:
- The delay between archiving steps in milliseconds.
- Since:
- 5.2.903
- See Also:
-
setThrottleTime
void setThrottleTime(long throttleTime) Defines the delay between archiving steps.- Parameters:
throttleTime- The delay between archiving steps in milliseconds.- Since:
- 5.2.903
- See Also:
-