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
HealthFixerPlugin
that already has anenabled
property
-
-
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 Logger
getLogger()
boolean
isEnabled()
Whether this extension is enabled or notSet<NodeHealthReport>
process(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)
Process a batch of nodes.void
setEnabled(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:HealthProcessorPlugin
Process a batch of nodes. Each execution will be wrapped in a new transaction by the Health-Processor.- Specified by:
process
in interfaceHealthProcessorPlugin
- Parameters:
nodeRefs
- the batch ofNodeRef
s to process- Returns:
- is is not mandatory to return anything. All returned
reports
will be offered toHealthReporter
instances.
-
doProcess
@Nonnull protected abstract Set<NodeHealthReport> doProcess(Set<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)
-
isEnabled
public boolean isEnabled()
Description copied from interface:BaseExtension
Whether this extension is enabled or not- Specified by:
isEnabled
in interfaceBaseExtension
- Returns:
- Whether this extension is enabled or not
-
setEnabled
public void setEnabled(boolean enabled)
-
-