|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.pipeline.PipelineFactory
public class PipelineFactory
A configurable factor class for pipelines. This factor class can be used to get synchronous or asynchronous pipeline stages.
Field Summary | |
---|---|
protected static java.lang.String |
logTag
|
static java.lang.String |
PROP_DUMPER
|
static java.lang.String |
PROP_HL_STAGES
|
static java.lang.String |
PROP_STAGES
|
Constructor Summary | |
---|---|
PipelineFactory()
Creates a pipeline factory. |
Method Summary | |
---|---|
Pipeline |
getAsynchronousPipeline(SearchEngine engine,
java.util.concurrent.BlockingQueue<Indexable> indexingQueue)
Gets an asynchronous pipeline configured according to the configuration of the indexer. |
HLPipeline |
getHLPipeline(SearchEngine engine)
Gets a highlighting pipeline configured according to the configuration. |
Stage |
getIndexingStage()
Gets a new indexing stage, so that such stages can be handed off to someone else for dumping while indexing proceeds. |
java.lang.String |
getName()
|
Pipeline |
getSynchronousPipeline(SearchEngine engine)
Gets a synchronous pipeline configured according to the configuration of the indexer. |
void |
newProperties(com.sun.labs.util.props.PropertySheet ps)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String logTag
@ConfigComponentList(type=Stage.class) public static final java.lang.String PROP_STAGES
@ConfigComponentList(type=Stage.class) public static final java.lang.String PROP_HL_STAGES
@ConfigComponent(type=Dumper.class) public static final java.lang.String PROP_DUMPER
Constructor Detail |
---|
public PipelineFactory()
Method Detail |
---|
public Pipeline getSynchronousPipeline(SearchEngine engine)
public Pipeline getAsynchronousPipeline(SearchEngine engine, java.util.concurrent.BlockingQueue<Indexable> indexingQueue)
indexingQueue
- a queue from which the pipeline will draw the documents that
it will processpublic HLPipeline getHLPipeline(SearchEngine engine)
public Stage getIndexingStage()
public void newProperties(com.sun.labs.util.props.PropertySheet ps) throws com.sun.labs.util.props.PropertyException
newProperties
in interface com.sun.labs.util.props.Configurable
com.sun.labs.util.props.PropertyException
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |