Class DUUISwarmDriver
java.lang.Object
org.texttechnologylab.DockerUnifiedUIMAInterface.driver.DUUISwarmDriver
- All Implemented Interfaces:
IDUUIDriverInterface
- Author:
- Alexander Leonhardt
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod for checking whether the selected component can be used via the driver.booleanDestruction of a componentorg.apache.uima.resource.metadata.TypeSystemDescriptionget_typesystem(String uuid) Returns the TypeSystem used for the respective component.instantiate(DUUIPipelineComponent component, org.apache.uima.jcas.JCas jc, boolean skipVerification, AtomicBoolean shutdown) Initialisation methodvoidprintConcurrencyGraph(String uuid) Visualisation of the concurrencyvoidrun(String uuid, org.apache.uima.jcas.JCas aCas, DUUIPipelineDocumentPerformance perf, DUUIComposer composer) Starting a component.voidsetLuaContext(DUUILuaContext luaContext) Method for defining the Lua context to be used, which determines the transfer type between Composer and components.voidshutdown()Shutting down the driverwithSwarmVisualizer(Integer port)
-
Constructor Details
-
DUUISwarmDriver
- Throws:
IOException
-
DUUISwarmDriver
- Throws:
IOExceptionorg.apache.uima.UIMAException
-
-
Method Details
-
withSwarmVisualizer
- Throws:
InterruptedException
-
withSwarmVisualizer
- Throws:
InterruptedException
-
shutdown
public void shutdown()Description copied from interface:IDUUIDriverInterfaceShutting down the driver- Specified by:
shutdownin interfaceIDUUIDriverInterface
-
setLuaContext
Description copied from interface:IDUUIDriverInterfaceMethod for defining the Lua context to be used, which determines the transfer type between Composer and components.- Specified by:
setLuaContextin interfaceIDUUIDriverInterface- See Also:
-
canAccept
Description copied from interface:IDUUIDriverInterfaceMethod for checking whether the selected component can be used via the driver.- Specified by:
canAcceptin interfaceIDUUIDriverInterface- Returns:
-
instantiate
public String instantiate(DUUIPipelineComponent component, org.apache.uima.jcas.JCas jc, boolean skipVerification, AtomicBoolean shutdown) throws Exception Description copied from interface:IDUUIDriverInterfaceInitialisation method- Specified by:
instantiatein interfaceIDUUIDriverInterface- Returns:
- Throws:
Exception
-
printConcurrencyGraph
Description copied from interface:IDUUIDriverInterfaceVisualisation of the concurrency- Specified by:
printConcurrencyGraphin interfaceIDUUIDriverInterface
-
get_typesystem
public org.apache.uima.resource.metadata.TypeSystemDescription get_typesystem(String uuid) throws IOException, org.apache.uima.resource.ResourceInitializationException Description copied from interface:IDUUIDriverInterfaceReturns the TypeSystem used for the respective component.- Specified by:
get_typesystemin interfaceIDUUIDriverInterface- Returns:
- Throws:
IOExceptionorg.apache.uima.resource.ResourceInitializationException- See Also:
-
TypeSystemDescription
-
run
public void run(String uuid, org.apache.uima.jcas.JCas aCas, DUUIPipelineDocumentPerformance perf, DUUIComposer composer) throws InterruptedException, IOException, SAXException, org.apache.commons.compress.compressors.CompressorException, org.apache.uima.cas.CASException Description copied from interface:IDUUIDriverInterfaceStarting a component.- Specified by:
runin interfaceIDUUIDriverInterface- Throws:
InterruptedExceptionIOExceptionSAXExceptionorg.apache.commons.compress.compressors.CompressorExceptionorg.apache.uima.cas.CASException
-
destroy
Description copied from interface:IDUUIDriverInterfaceDestruction of a component- Specified by:
destroyin interfaceIDUUIDriverInterface- Returns:
-