Class ToggleableHealthProcessorPlugin
- java.lang.Object
-
- eu.xenit.alfresco.healthprocessor.plugins.api.ToggleableHealthProcessorPlugin
-
- All Implemented Interfaces:
BaseExtension,HealthProcessorPlugin
- Direct Known Subclasses:
SingleNodeHealthProcessorPlugin
public abstract class ToggleableHealthProcessorPlugin extends Object implements HealthProcessorPlugin
HealthFixerPluginthat already has anenabledproperty
-
-
Constructor Summary
Constructors Constructor Description ToggleableHealthProcessorPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Set<NodeHealthReport>doProcess(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)protected LoggergetLogger()booleanisEnabled()Whether this extension is enabled or notSet<NodeHealthReport>process(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)Process a batch of nodes.voidsetEnabled(boolean enabled)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.xenit.alfresco.healthprocessor.extensibility.BaseExtension
getConfiguration, getState
-
-
-
-
Method Detail
-
getLogger
protected Logger getLogger()
-
process
@Nonnull public final Set<NodeHealthReport> process(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)
Description copied from interface:HealthProcessorPluginProcess a batch of nodes. Each execution will be wrapped in a new transaction by the Health-Processor.- Specified by:
processin interfaceHealthProcessorPlugin- Parameters:
nodeRefs- the batch ofNodeRefs to process- Returns:
- is is not mandatory to return anything. All returned
reportswill be offered toHealthReporterinstances.
-
doProcess
@Nonnull protected abstract Set<NodeHealthReport> doProcess(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)
-
isEnabled
public boolean isEnabled()
Description copied from interface:BaseExtensionWhether this extension is enabled or not- Specified by:
isEnabledin interfaceBaseExtension- Returns:
- Whether this extension is enabled or not
-
setEnabled
public void setEnabled(boolean enabled)
-
-