Klasse DUUISimpleProcessHandler
java.lang.Object
java.lang.Thread
org.texttechnologylab.duui.analysis.process.DUUISimpleProcessHandler
- Alle implementierten Schnittstellen:
Runnable
,IDUUIProcessHandler
The default ProcessHandler implementing the
IDUUIProcessHandler
interface.
A process runs immediately after creating an instance of this class.- Autor:
- Cedric Borkowski
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Feldübersicht
Von Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDUUISimpleProcessHandler
(org.bson.Document process, org.bson.Document pipeline, org.bson.Document settings) Run a process using the specified settings and pipeline.DUUISimpleProcessHandler
(org.bson.Document pipeline, org.bson.Document process, org.bson.Document settings, Vector<org.texttechnologylab.DockerUnifiedUIMAInterface.DUUIComposer.PipelinePart> instantiatedPipeline) Run a process using the specified settings and pipeline. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
cancel()
Cancels the process.void
exit()
Exits the process.Returns the pipeline ID.Returns the process ID.Returns the status of the process.Returns the user ID.void
Handles the completion of the process.void
onException
(Exception exception) Handles exceptions that occur during the process.void
Handles the server stopping.void
process()
Processes the collection.void
Processes the text input.void
run()
Returns the composer.void
shutdown()
Shuts down the process.void
Dispatches the process configuration to the composer which starts it.void
update()
Updates the process status.Von Klasse geerbte Methoden java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Konstruktordetails
-
DUUISimpleProcessHandler
public DUUISimpleProcessHandler(org.bson.Document process, org.bson.Document pipeline, org.bson.Document settings) throws URISyntaxException, IOException Run a process using the specified settings and pipeline. The pipeline is instantiated specifically for this process.- Parameter:
process
- ADocument
containing process relevant information.pipeline
- ADocument
containing information about the pipeline to be executed by the process.settings
- ADocument
containing process specific settings that alter its behavior.- Löst aus:
URISyntaxException
- Thrown when the minimal TypeSystem can not be loaded.IOException
- Thrown when the Lua Json Library can not be loaded.
-
DUUISimpleProcessHandler
public DUUISimpleProcessHandler(org.bson.Document pipeline, org.bson.Document process, org.bson.Document settings, Vector<org.texttechnologylab.DockerUnifiedUIMAInterface.DUUIComposer.PipelinePart> instantiatedPipeline) throws URISyntaxException, IOException Run a process using the specified settings and pipeline. The pipeline is not instantiated but an instantiated pipeline must be passed in the constructor.- Parameter:
pipeline
- ADocument
containing information about the pipeline to be executed by the process.process
- ADocument
containing process relevant information.settings
- ADocument
containing process specific settings that alter its behavior.instantiatedPipeline
- AVector
holding the instantiated pipeline.- Löst aus:
URISyntaxException
- Thrown when the minimal TypeSystem can not be loaded.IOException
- Thrown when the Lua Json Library can not be loaded.
-
-
Methodendetails
-
startInput
public void startInput()Dispatches the process configuration to the composer which starts it.- Angegeben von:
startInput
in SchnittstelleIDUUIProcessHandler
-
processText
public void processText()Processes the text input.- Angegeben von:
processText
in SchnittstelleIDUUIProcessHandler
-
process
public void process()Processes the collection.- Angegeben von:
process
in SchnittstelleIDUUIProcessHandler
-
update
public void update()Updates the process status.- Angegeben von:
update
in SchnittstelleIDUUIProcessHandler
-
onException
Handles exceptions that occur during the process.- Angegeben von:
onException
in SchnittstelleIDUUIProcessHandler
- Parameter:
exception
- The exception that occurred.
-
onCompletion
public void onCompletion()Handles the completion of the process.- Angegeben von:
onCompletion
in SchnittstelleIDUUIProcessHandler
-
cancel
public void cancel()Cancels the process.- Angegeben von:
cancel
in SchnittstelleIDUUIProcessHandler
-
shutdown
public void shutdown()Shuts down the process. Active connections to cloud services are closed.- Angegeben von:
shutdown
in SchnittstelleIDUUIProcessHandler
-
exit
public void exit()Exits the process.- Angegeben von:
exit
in SchnittstelleIDUUIProcessHandler
-
onServerStopped
public void onServerStopped()Handles the server stopping.- Angegeben von:
onServerStopped
in SchnittstelleIDUUIProcessHandler
-
getProcessID
Returns the process ID.- Angegeben von:
getProcessID
in SchnittstelleIDUUIProcessHandler
- Gibt zurück:
- The process ID.
-
getPipelineID
Returns the pipeline ID.- Angegeben von:
getPipelineID
in SchnittstelleIDUUIProcessHandler
- Gibt zurück:
- The pipeline ID.
-
getUserID
Returns the user ID.- Angegeben von:
getUserID
in SchnittstelleIDUUIProcessHandler
- Gibt zurück:
- The user ID.
-
getStatus
Returns the status of the process.- Angegeben von:
getStatus
in SchnittstelleIDUUIProcessHandler
- Gibt zurück:
- The status of the process.
-
run
public void run()Returns the composer.
-