Class RunningStatusController<TDef extends IElementDef>
- java.lang.Object
-
- org.webharvest.runtime.processors.AbstractProcessorDecorator<TDef>
-
- org.webharvest.runtime.processors.RunningStatusController<TDef>
-
- Type Parameters:
TDef
- type of definition of decorated processor
- All Implemented Interfaces:
Processor<TDef>
public final class RunningStatusController<TDef extends IElementDef> extends AbstractProcessorDecorator<TDef>
AbstractProcessorDecorator
implementation which decoratesProcessor#run(Scraper, DynamicScopeContext)
method in the way that it enters to theMonitor
usingMonitor.Guard
verifying that processing is not paused. Otherwise it wait untilMonitor.Guard
allows to continue processing.Monitor
andMonitor.Guard
instances are retrieved usingInjectorHelper
.- Since:
- 2.1-SNAPSHOT
- Version:
- %I%, %G%
- Author:
- mczapiewski
-
-
Field Summary
-
Fields inherited from class org.webharvest.runtime.processors.AbstractProcessorDecorator
decoratedProcessor
-
-
Constructor Summary
Constructors Constructor Description RunningStatusController(Processor<TDef> decoratedProcessor)
Default class constructor which acceptsProcessor
instance which is going to be decorated by this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Variable
run(DynamicScopeContext context)
-
Methods inherited from class org.webharvest.runtime.processors.AbstractProcessorDecorator
getElementDef, getParentProcessor, getRunningLevel, setElementDef, setParentProcessor
-
-
-
-
Constructor Detail
-
RunningStatusController
public RunningStatusController(Processor<TDef> decoratedProcessor)
Default class constructor which acceptsProcessor
instance which is going to be decorated by this class.- Parameters:
decoratedProcessor
- an instance ofProcessor
which is going to be decorated; must be notnull
.
-
-
Method Detail
-
run
public Variable run(DynamicScopeContext context) throws InterruptedException
- Throws:
InterruptedException
-
-