public class ReindexingTask extends AbstractMaintenanceTask
Modifier and Type | Field and Description |
---|---|
private static String |
_INDEX_FOLDER_RELATIVE_PATH |
protected RepositoryImpl |
_repository
The JackRabbit RepositoryImpl
|
private String[] |
_workspaceFolders |
private static String |
_WORKSPACES_FOLDER_RELATIVE_PATH |
_logger, _progress, _repositoryConfig, _repositoryProvider
Constructor and Description |
---|
ReindexingTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
apply()
Apply the tasks (within the execute method()).
|
protected void |
close()
Close the tasks
|
private void |
deleteIndexFolder(String relativePath) |
protected void |
initialize()
Initialize the tasks.
|
protected void |
setLogger()
Set the tasks logger.
|
private void |
setProgressTo(int percentage) |
_getFormattedDuration, execute, getProgressInfo, isFinished, setLogger
private static final String _INDEX_FOLDER_RELATIVE_PATH
private static final String _WORKSPACES_FOLDER_RELATIVE_PATH
protected RepositoryImpl _repository
private String[] _workspaceFolders
public ReindexingTask()
protected void initialize() throws RepositoryException
AbstractMaintenanceTask
TaskProgress
object bounded to the task.initialize
in class AbstractMaintenanceTask
RepositoryException
- If a repository exceptionprotected void setLogger()
AbstractMaintenanceTask
setLogger
in class AbstractMaintenanceTask
protected void apply() throws RepositoryException
AbstractMaintenanceTask
apply
in class AbstractMaintenanceTask
RepositoryException
- If a repository exceptionprotected void close()
AbstractMaintenanceTask
close
in class AbstractMaintenanceTask
private void deleteIndexFolder(String relativePath) throws IOException
IOException
private void setProgressTo(int percentage)