public class ConsistencyCheckTask extends AbstractMaintenanceTask implements ConsistencyCheckListener
Modifier and Type | Field and Description |
---|---|
private IterablePersistenceManager[] |
_pmList |
protected RepositoryContext |
_repositoryContext
The JackRabbit RepositoryImpl Context
|
protected Session |
_session
The JCR Session bound to this task.
|
_logger, _progress, _repositoryConfig, _repositoryProvider
Constructor and Description |
---|
ConsistencyCheckTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
apply()
Apply the tasks (within the execute method()).
|
protected void |
close()
Close the tasks
|
void |
error(String id,
String message) |
private static Object |
findAndInvokeMethod(Object obj,
String name,
Object[] parameters) |
protected PersistenceManager |
getPM(String workspaceName)
Retrieves JackRabbit Persistence Manager for currently opened repository.
|
void |
info(String id,
String message) |
protected void |
initialize()
Initialize the tasks.
|
void |
report(ReportItem item) |
protected void |
setLogger()
Set the tasks logger.
|
void |
startCheck(String id) |
_getFormattedDuration, execute, getProgressInfo, isFinished, setLogger
protected RepositoryContext _repositoryContext
private IterablePersistenceManager[] _pmList
public ConsistencyCheckTask()
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
protected PersistenceManager getPM(String workspaceName)
workspaceName
- The workspace nameprivate static Object findAndInvokeMethod(Object obj, String name, Object[] parameters) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public void startCheck(String id)
startCheck
in interface ConsistencyCheckListener
public void report(ReportItem item)
report
in interface ConsistencyCheckListener
public void error(String id, String message)
error
in interface ConsistencyCheckListener
public void info(String id, String message)
info
in interface ConsistencyCheckListener