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 TypMethodeBeschreibungvoidcancel()Cancels the process.voidexit()Exits the process.Returns the pipeline ID.Returns the process ID.Returns the status of the process.Returns the user ID.voidHandles the completion of the process.voidonException(Exception exception) Handles exceptions that occur during the process.voidHandles the server stopping.voidprocess()Processes the collection.voidProcesses the text input.voidrun()Returns the composer.voidshutdown()Shuts down the process.voidDispatches the process configuration to the composer which starts it.voidupdate()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- ADocumentcontaining process relevant information.pipeline- ADocumentcontaining information about the pipeline to be executed by the process.settings- ADocumentcontaining 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- ADocumentcontaining information about the pipeline to be executed by the process.process- ADocumentcontaining process relevant information.settings- ADocumentcontaining process specific settings that alter its behavior.instantiatedPipeline- AVectorholding 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:
startInputin SchnittstelleIDUUIProcessHandler
-
processText
public void processText()Processes the text input.- Angegeben von:
processTextin SchnittstelleIDUUIProcessHandler
-
process
public void process()Processes the collection.- Angegeben von:
processin SchnittstelleIDUUIProcessHandler
-
update
public void update()Updates the process status.- Angegeben von:
updatein SchnittstelleIDUUIProcessHandler
-
onException
Handles exceptions that occur during the process.- Angegeben von:
onExceptionin SchnittstelleIDUUIProcessHandler- Parameter:
exception- The exception that occurred.
-
onCompletion
public void onCompletion()Handles the completion of the process.- Angegeben von:
onCompletionin SchnittstelleIDUUIProcessHandler
-
cancel
public void cancel()Cancels the process.- Angegeben von:
cancelin SchnittstelleIDUUIProcessHandler
-
shutdown
public void shutdown()Shuts down the process. Active connections to cloud services are closed.- Angegeben von:
shutdownin SchnittstelleIDUUIProcessHandler
-
exit
public void exit()Exits the process.- Angegeben von:
exitin SchnittstelleIDUUIProcessHandler
-
onServerStopped
public void onServerStopped()Handles the server stopping.- Angegeben von:
onServerStoppedin SchnittstelleIDUUIProcessHandler
-
getProcessID
Returns the process ID.- Angegeben von:
getProcessIDin SchnittstelleIDUUIProcessHandler- Gibt zurück:
- The process ID.
-
getPipelineID
Returns the pipeline ID.- Angegeben von:
getPipelineIDin SchnittstelleIDUUIProcessHandler- Gibt zurück:
- The pipeline ID.
-
getUserID
Returns the user ID.- Angegeben von:
getUserIDin SchnittstelleIDUUIProcessHandler- Gibt zurück:
- The user ID.
-
getStatus
Returns the status of the process.- Angegeben von:
getStatusin SchnittstelleIDUUIProcessHandler- Gibt zurück:
- The status of the process.
-
run
public void run()Returns the composer.
-