Class ThreadedCorpusBatchStep
- java.lang.Object
-
- io.outofprintmagazine.corpus.batch.CorpusBatchStep
-
- io.outofprintmagazine.corpus.batch.ThreadedCorpusBatchStep
-
- All Implemented Interfaces:
ICorpusBatchStep
public class ThreadedCorpusBatchStep extends CorpusBatchStep implements ICorpusBatchStep
-
-
Field Summary
Fields Modifier and Type Field Description protected intmaxThreadsprotected StringtaskClassprotected Map<com.fasterxml.jackson.databind.node.ObjectNode,ThreadedCorpusBatchStepTask>tasksprotected List<Thread>threads-
Fields inherited from class io.outofprintmagazine.corpus.batch.CorpusBatchStep
dictionaryPOS
-
-
Constructor Summary
Constructors Constructor Description ThreadedCorpusBatchStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute()com.fasterxml.jackson.databind.node.ArrayNodepop(com.fasterxml.jackson.databind.node.ArrayNode input)protected voidpush(com.fasterxml.jackson.databind.node.ArrayNode input)com.fasterxml.jackson.databind.node.ArrayNoderun(com.fasterxml.jackson.databind.node.ArrayNode input)com.fasterxml.jackson.databind.node.ArrayNoderunOne(com.fasterxml.jackson.databind.node.ObjectNode input)-
Methods inherited from class io.outofprintmagazine.corpus.batch.CorpusBatchStep
copyInputToOutput, copyInputToOutput, getAuthor, getAuthor, getData, getDate, getDate, getDateFormat, getDefaultProperties, getDocID, getExtensionFromMimeType, getJsonNodeFromStorage, getJsonNodeFromStorage, getJsoupDocumentFromStorage, getJsoupDocumentFromStorageNormalized, getLink, getMapper, getMimeTypeFromExtension, getOutputScratchFilePath, getOutputScratchFilePath, getOutputScratchFilePathFromInput, getParameterStore, getStorage, getStorageLink, getText, getText, getTextDocumentFromStorage, getTextDocumentFromStorage, getTextWithSelector, getThumbnail, getTitle, getTitle, isDictionaryWord, setAuthor, setAuthor, setData, setDate, setDate, setDate, setDocID, setLink, setParameterStore, setStorage, setStorageLink, setThumbnail, setThumbnail, setTitle, setTitle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.outofprintmagazine.corpus.batch.ICorpusBatchStep
getData, getDefaultProperties, setData, setParameterStore, setStorage
-
-
-
-
Field Detail
-
maxThreads
protected int maxThreads
-
taskClass
protected String taskClass
-
tasks
protected Map<com.fasterxml.jackson.databind.node.ObjectNode,ThreadedCorpusBatchStepTask> tasks
-
-
Method Detail
-
runOne
public com.fasterxml.jackson.databind.node.ArrayNode runOne(com.fasterxml.jackson.databind.node.ObjectNode input) throws Exception- Specified by:
runOnein interfaceICorpusBatchStep- Specified by:
runOnein classCorpusBatchStep- Throws:
Exception
-
run
public com.fasterxml.jackson.databind.node.ArrayNode run(com.fasterxml.jackson.databind.node.ArrayNode input)
- Specified by:
runin interfaceICorpusBatchStep- Overrides:
runin classCorpusBatchStep
-
execute
protected void execute()
-
push
protected void push(com.fasterxml.jackson.databind.node.ArrayNode input)
-
pop
public com.fasterxml.jackson.databind.node.ArrayNode pop(com.fasterxml.jackson.databind.node.ArrayNode input)
-
-