public class ProcessorChain extends Object implements Iterable<Processor>, HasKeyedProperties, org.archive.util.Reporter, org.springframework.context.Lifecycle
Modifier and Type | Class and Description |
---|---|
static interface |
ProcessorChain.ChainStatusReceiver |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isRunning |
protected KeyedProperties |
kp |
Constructor and Description |
---|
ProcessorChain() |
Modifier and Type | Method and Description |
---|---|
KeyedProperties |
getKeyedProperties() |
List<Processor> |
getProcessors() |
boolean |
isRunning() |
Iterator<Processor> |
iterator() |
void |
process(CrawlURI curi,
ProcessorChain.ChainStatusReceiver thread) |
void |
reportTo(PrintWriter writer)
Compiles and returns a human readable report on the active processors.
|
void |
setProcessors(List<Processor> processors) |
String |
shortReportLegend() |
void |
shortReportLineTo(PrintWriter pw) |
Map<String,Object> |
shortReportMap() |
int |
size() |
void |
start() |
void |
stop() |
protected KeyedProperties kp
protected boolean isRunning
public KeyedProperties getKeyedProperties()
getKeyedProperties
in interface HasKeyedProperties
public int size()
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void reportTo(PrintWriter writer)
reportTo
in interface org.archive.util.Reporter
writer
- Where to write to.org.archive.crawler.framework.Processor#report()
public String shortReportLegend()
shortReportLegend
in interface org.archive.util.Reporter
public Map<String,Object> shortReportMap()
shortReportMap
in interface org.archive.util.Reporter
public void shortReportLineTo(PrintWriter pw)
shortReportLineTo
in interface org.archive.util.Reporter
public void process(CrawlURI curi, ProcessorChain.ChainStatusReceiver thread) throws InterruptedException
InterruptedException
Copyright © 2003-2014 Internet Archive. All Rights Reserved.