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, setLoggerprotected RepositoryContext _repositoryContext
private IterablePersistenceManager[] _pmList
public ConsistencyCheckTask()
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 AbstractMaintenanceTaskprotected 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 ConsistencyCheckListenerpublic void report(ReportItem item)
report in interface ConsistencyCheckListenerpublic void error(String id, String message)
error in interface ConsistencyCheckListenerpublic void info(String id, String message)
info in interface ConsistencyCheckListener