|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.pipe.AbstractObjectProcessor
xsmeral.pipe.LocalObjectFilter<EntityDocument,Statement>
xsmeral.semnet.scraper.ScraperWrapper
@ObjectProcessorInterface(in=EntityDocument.class, out=org.openrdf.model.Statement.class) public class ScraperWrapper
This processor works as a router, dispatching entity documents to scrapers. The scrapers are configured from a HostManager instance and pre-instantiated at post-context initialization.
HostManager
hostManager
- A HostManager instance, used to instantiate scrapersNested Class Summary |
---|
Nested classes/interfaces inherited from interface xsmeral.pipe.interfaces.ObjectProcessor |
---|
xsmeral.pipe.interfaces.ObjectProcessor.Status |
Field Summary |
---|
Fields inherited from class xsmeral.pipe.AbstractObjectProcessor |
---|
canStart, context, status |
Constructor Summary | |
---|---|
ScraperWrapper()
|
Method Summary | |
---|---|
boolean |
canStart()
|
protected void |
handleStoppedSink()
|
protected void |
handleStoppedSource()
|
protected void |
initPostContext()
Instantiates scrapers. |
protected void |
preRun()
Starts scrapers. |
protected void |
process()
|
Methods inherited from class xsmeral.pipe.LocalObjectFilter |
---|
getNext, getOutBuffer, getPrev, next, prev, read, requestStop, setNext, setOutBuffer, write |
Methods inherited from class xsmeral.pipe.AbstractObjectProcessor |
---|
failStart, failStart, failStart, getContext, getInType, getOutType, getParams, getStatus, initContext, initContextSet, initialize, initializeInternal, initWithContext, postRun, run, setContext, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface xsmeral.pipe.interfaces.ObjectSink |
---|
getInType |
Methods inherited from interface xsmeral.pipe.interfaces.ObjectSource |
---|
getOutType |
Constructor Detail |
---|
public ScraperWrapper()
Method Detail |
---|
protected void initPostContext()
initPostContext
in class xsmeral.pipe.AbstractObjectProcessor
protected void preRun() throws xsmeral.pipe.ProcessorStoppedException
preRun
in class xsmeral.pipe.AbstractObjectProcessor
xsmeral.pipe.ProcessorStoppedException
protected void process() throws xsmeral.pipe.ProcessorStoppedException
process
in class xsmeral.pipe.LocalObjectFilter<EntityDocument,Statement>
xsmeral.pipe.ProcessorStoppedException
public boolean canStart()
canStart
in interface xsmeral.pipe.interfaces.ObjectProcessor
canStart
in class xsmeral.pipe.AbstractObjectProcessor
protected void handleStoppedSink()
handleStoppedSink
in class xsmeral.pipe.LocalObjectFilter<EntityDocument,Statement>
protected void handleStoppedSource()
handleStoppedSource
in class xsmeral.pipe.LocalObjectFilter<EntityDocument,Statement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |