Class ReclaimUnusedSpaceTask
java.lang.Object
org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
org.ametys.plugins.repository.maintenance.ReclaimUnusedSpaceTask
- All Implemented Interfaces:
LogEnabled
Maintenance Task to reclaim unused space from the Derby tables
-
Field Summary
Fields inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_logger, _progress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply()Apply the tasks (within the execute method()).protected voidInitialize the tasks.protected voidSet the tasks logger.Methods inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_getFormattedDuration, close, createRepository, createRepositoryContext, execute, getAllPersistenceManager, getOrCreateRepository, getOrCreateRepositoryContext, getProgressInfo, getRepository, getRepositoryConfig, isFinished, requiresOffline, setLogger
-
Constructor Details
-
ReclaimUnusedSpaceTask
public ReclaimUnusedSpaceTask()
-
-
Method Details
-
initialize
Description copied from class:AbstractMaintenanceTaskInitialize the tasks. This method can also create theProgressionTrackerobject bounded to the task.- Overrides:
initializein classAbstractMaintenanceTask- Throws:
javax.jcr.RepositoryException- If a repository exception
-
apply
Description copied from class:AbstractMaintenanceTaskApply the tasks (within the execute method()).- Specified by:
applyin classAbstractMaintenanceTask- Throws:
javax.jcr.RepositoryException- If a repository exception
-
setLogger
Description copied from class:AbstractMaintenanceTaskSet the tasks logger.- Specified by:
setLoggerin classAbstractMaintenanceTask
-