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, setLoggerprivate 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
AbstractMaintenanceTaskTaskProgress object bounded to the task.initialize in class AbstractMaintenanceTaskRepositoryException - If a repository exceptionprotected void setLogger()
AbstractMaintenanceTasksetLogger in class AbstractMaintenanceTaskprotected void apply() throws RepositoryException
AbstractMaintenanceTaskapply in class AbstractMaintenanceTaskRepositoryException - If a repository exceptionprotected void close()
AbstractMaintenanceTaskclose in class AbstractMaintenanceTaskprivate void deleteIndexFolder(String relativePath) throws IOException
IOExceptionprivate void setProgressTo(int percentage)