Class DUUISwarmDriver
java.lang.Object
org.texttechnologylab.DockerUnifiedUIMAInterface.driver.DUUISwarmDriver
- All Implemented Interfaces:
IDUUIDriverInterface
- Author:
- Alexander Leonhardt
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Method for checking whether the selected component can be used via the driver.boolean
Destruction of a componentorg.apache.uima.resource.metadata.TypeSystemDescription
get_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 methodvoid
printConcurrencyGraph
(String uuid) Visualisation of the concurrencyvoid
run
(String uuid, org.apache.uima.jcas.JCas aCas, DUUIPipelineDocumentPerformance perf, DUUIComposer composer) Starting a component.void
setLuaContext
(DUUILuaContext luaContext) Method for defining the Lua context to be used, which determines the transfer type between Composer and components.void
shutdown()
Shutting down the driverwithSwarmVisualizer
(Integer port)
-
Constructor Details
-
DUUISwarmDriver
- Throws:
IOException
-
DUUISwarmDriver
- Throws:
IOException
org.apache.uima.UIMAException
-
-
Method Details
-
withSwarmVisualizer
- Throws:
InterruptedException
-
withSwarmVisualizer
- Throws:
InterruptedException
-
shutdown
public void shutdown()Description copied from interface:IDUUIDriverInterface
Shutting down the driver- Specified by:
shutdown
in interfaceIDUUIDriverInterface
-
setLuaContext
Description copied from interface:IDUUIDriverInterface
Method for defining the Lua context to be used, which determines the transfer type between Composer and components.- Specified by:
setLuaContext
in interfaceIDUUIDriverInterface
- See Also:
-
canAccept
Description copied from interface:IDUUIDriverInterface
Method for checking whether the selected component can be used via the driver.- Specified by:
canAccept
in interfaceIDUUIDriverInterface
- Returns:
-
instantiate
public String instantiate(DUUIPipelineComponent component, org.apache.uima.jcas.JCas jc, boolean skipVerification, AtomicBoolean shutdown) throws Exception Description copied from interface:IDUUIDriverInterface
Initialisation method- Specified by:
instantiate
in interfaceIDUUIDriverInterface
- Returns:
- Throws:
Exception
-
printConcurrencyGraph
Description copied from interface:IDUUIDriverInterface
Visualisation of the concurrency- Specified by:
printConcurrencyGraph
in 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:IDUUIDriverInterface
Returns the TypeSystem used for the respective component.- Specified by:
get_typesystem
in interfaceIDUUIDriverInterface
- Returns:
- Throws:
IOException
org.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:IDUUIDriverInterface
Starting a component.- Specified by:
run
in interfaceIDUUIDriverInterface
- Throws:
InterruptedException
IOException
SAXException
org.apache.commons.compress.compressors.CompressorException
org.apache.uima.cas.CASException
-
destroy
Description copied from interface:IDUUIDriverInterface
Destruction of a component- Specified by:
destroy
in interfaceIDUUIDriverInterface
- Returns:
-