Interface Step
- All Known Implementing Classes:
BaseStep,CrawlerProcessStep,RequeueOrphansForDeletionStep,RequeueOrphansForProcessingStep,StartRefsQueueStep
public interface Step
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CrawlerSession session) getId()default Step.StepProgressOptional method returning the current progress of this step.booleandefault booleanIndicates whether this step has been asked to stop.reduce(CrawlerSession session, org.apache.commons.collections4.Bag<PipelineStatus> statuses) voidstop(CrawlerSession session) Requests for the step to stop.
-
Method Details
-
getId
String getId() -
isDistributed
boolean isDistributed() -
execute
-
stop
Requests for the step to stop. The method may return before the step is actually stopped (up to implementation).- Parameters:
session- crawl session
-
reduce
PipelineStatus reduce(CrawlerSession session, org.apache.commons.collections4.Bag<PipelineStatus> statuses) -
isStopRequested
default boolean isStopRequested()Indicates whether this step has been asked to stop.Default implementation returns
falseso nonBaseStepimplementations are not forced to expose internal state.- Returns:
trueif a stop was requested
-
getProgress
Optional method returning the current progress of this step. Returnsnullif this task does not track its progress.- Returns:
- progress or
null
-