Class BaseStep
java.lang.Object
com.norconex.crawler.core.cluster.pipeline.BaseStep
- All Implemented Interfaces:
Step
- Direct Known Subclasses:
CrawlerProcessStep,RequeueOrphansForDeletionStep,RequeueOrphansForProcessingStep,StartRefsQueueStep
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.norconex.crawler.core.cluster.pipeline.Step
Step.StepProgress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()inthashCode()booleanbooleanIndicates whether this step has been asked to stop.reduce(CrawlerSession session, org.apache.commons.collections4.Bag<PipelineStatus> statuses) setDistributed(boolean distributed) voidstop(CrawlerSession session) Requests for the step to stop.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.norconex.crawler.core.cluster.pipeline.Step
execute, getProgress
-
Constructor Details
-
BaseStep
-
-
Method Details
-
stop
Description copied from interface:StepRequests for the step to stop. The method may return before the step is actually stopped (up to implementation). -
reduce
public PipelineStatus reduce(CrawlerSession session, org.apache.commons.collections4.Bag<PipelineStatus> statuses) -
getId
-
isDistributed
public boolean isDistributed()- Specified by:
isDistributedin interfaceStep
-
setDistributed
- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
isStopRequested
public boolean isStopRequested()Description copied from interface:StepIndicates whether this step has been asked to stop.Default implementation returns
falseso nonBaseStepimplementations are not forced to expose internal state.- Specified by:
isStopRequestedin interfaceStep- Returns:
trueif a stop was requested
-