Class ReindexingTask
- java.lang.Object
-
- org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
-
- org.ametys.workspaces.repository.maintenance.ReindexingTask
-
- All Implemented Interfaces:
LogEnabled
public class ReindexingTask extends AbstractMaintenanceTask
ReindexingTask
-
-
Field Summary
Fields Modifier and Type Field Description private static String
_INDEX_FOLDER_RELATIVE_PATH
protected RepositoryImpl
_repository
The JackRabbit RepositoryImplprivate String[]
_workspaceFolders
private static String
_WORKSPACES_FOLDER_RELATIVE_PATH
-
Fields inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_logger, _progress, _repositoryConfig, _repositoryProvider
-
-
Constructor Summary
Constructors Constructor Description ReindexingTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply()
Apply the tasks (within the execute method()).protected void
close()
Close the tasksprivate void
deleteIndexFolder(String relativePath)
protected void
initialize()
Initialize the tasks.protected void
setLogger()
Set the tasks logger.private void
setProgressTo(int percentage)
-
Methods inherited from class org.ametys.workspaces.repository.maintenance.AbstractMaintenanceTask
_getFormattedDuration, execute, getProgressInfo, isFinished, setLogger
-
-
-
-
Field Detail
-
_INDEX_FOLDER_RELATIVE_PATH
private static final String _INDEX_FOLDER_RELATIVE_PATH
-
_WORKSPACES_FOLDER_RELATIVE_PATH
private static final String _WORKSPACES_FOLDER_RELATIVE_PATH
- See Also:
- Constant Field Values
-
_repository
protected RepositoryImpl _repository
The JackRabbit RepositoryImpl
-
_workspaceFolders
private String[] _workspaceFolders
-
-
Constructor Detail
-
ReindexingTask
public ReindexingTask()
-
-
Method Detail
-
initialize
protected void initialize() throws RepositoryException
Description copied from class:AbstractMaintenanceTask
Initialize the tasks. This method can also create theTaskProgress
object bounded to the task.- Overrides:
initialize
in classAbstractMaintenanceTask
- Throws:
RepositoryException
- If a repository exception
-
setLogger
protected void setLogger()
Description copied from class:AbstractMaintenanceTask
Set the tasks logger.- Specified by:
setLogger
in classAbstractMaintenanceTask
-
apply
protected void apply() throws RepositoryException
Description copied from class:AbstractMaintenanceTask
Apply the tasks (within the execute method()).- Specified by:
apply
in classAbstractMaintenanceTask
- Throws:
RepositoryException
- If a repository exception
-
close
protected void close()
Description copied from class:AbstractMaintenanceTask
Close the tasks- Overrides:
close
in classAbstractMaintenanceTask
-
deleteIndexFolder
private void deleteIndexFolder(String relativePath) throws IOException
- Throws:
IOException
-
setProgressTo
private void setProgressTo(int percentage)
-
-