Package org.corpus_tools.pepper.core
Class InitialDocumentBus
- java.lang.Object
-
- org.corpus_tools.pepper.core.DocumentBus
-
- org.corpus_tools.pepper.core.InitialDocumentBus
-
public class InitialDocumentBus extends DocumentBus
TODO make docu- Author:
- Florian Zipser
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringID_INTITIALid for the initial document bus, which is input for importers-
Fields inherited from class org.corpus_tools.pepper.core.DocumentBus
documentBus, id, inputModuleControllerIds, lock, memPolicy, outputModuleControllerIds, waitUntilAllDocumentsArePut
-
-
Constructor Summary
Constructors Constructor Description InitialDocumentBus(String outputModuleControllerId)Creates an object of this type and sets the passes the given input controller and output controller.InitialDocumentBus(List<String> outputModuleControllerIds)Creates an object of this type and sets the passes the given input controller and output controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidput(DocumentController documentController)Adds the givenDocumentControllerobject to the queue.-
Methods inherited from class org.corpus_tools.pepper.core.DocumentBus
finish, getDocumentBus, getId, getInputControllerIds, getMemPolicy, getOutputControllerIds, getPepperJob, init, initDocumentBus, isFinished, pop, pop, setMemPolicy, setPepperJob, toString
-
-
-
-
Field Detail
-
ID_INTITIAL
protected static final String ID_INTITIAL
id for the initial document bus, which is input for importers- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InitialDocumentBus
public InitialDocumentBus(String outputModuleControllerId)
Creates an object of this type and sets the passes the given input controller and output controller.- Parameters:
inputModuleControllerId- identifier of controller, which produces documents for this busoutputModuleControllerId- identifier of controller, which consumes documents for this bus
-
InitialDocumentBus
public InitialDocumentBus(List<String> outputModuleControllerIds)
Creates an object of this type and sets the passes the given input controller and output controller.- Parameters:
inputModuleControllerId- identifier of controller, which produces documents for this busoutputModuleControllerIds- list of identifier of controller, which consumes documents for this bus
-
-
Method Detail
-
put
public void put(DocumentController documentController)
Adds the givenDocumentControllerobject to the queue.- Overrides:
putin classDocumentBus- Parameters:
documentController- theDocumentControllerobject to be added to the queue.
-
-