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 - ÜbersichtVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.ThreadThread.Builder, Thread.State, Thread.UncaughtExceptionHandler
- 
FeldübersichtVon Klasse geerbte Felder java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungDUUISimpleProcessHandler(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übersichtModifizierer 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.ThreadactiveCount, 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- 
DUUISimpleProcessHandlerpublic 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- A- Documentcontaining process relevant information.
- pipeline- A- Documentcontaining information about the pipeline to be executed by the process.
- settings- A- Documentcontaining 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.
 
- 
DUUISimpleProcessHandlerpublic 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- A- Documentcontaining information about the pipeline to be executed by the process.
- process- A- Documentcontaining process relevant information.
- settings- A- Documentcontaining process specific settings that alter its behavior.
- instantiatedPipeline- A- Vectorholding 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- 
startInputpublic void startInput()Dispatches the process configuration to the composer which starts it.- Angegeben von:
- startInputin Schnittstelle- IDUUIProcessHandler
 
- 
processTextpublic void processText()Processes the text input.- Angegeben von:
- processTextin Schnittstelle- IDUUIProcessHandler
 
- 
processpublic void process()Processes the collection.- Angegeben von:
- processin Schnittstelle- IDUUIProcessHandler
 
- 
updatepublic void update()Updates the process status.- Angegeben von:
- updatein Schnittstelle- IDUUIProcessHandler
 
- 
onExceptionHandles exceptions that occur during the process.- Angegeben von:
- onExceptionin Schnittstelle- IDUUIProcessHandler
- Parameter:
- exception- The exception that occurred.
 
- 
onCompletionpublic void onCompletion()Handles the completion of the process.- Angegeben von:
- onCompletionin Schnittstelle- IDUUIProcessHandler
 
- 
cancelpublic void cancel()Cancels the process.- Angegeben von:
- cancelin Schnittstelle- IDUUIProcessHandler
 
- 
shutdownpublic void shutdown()Shuts down the process. Active connections to cloud services are closed.- Angegeben von:
- shutdownin Schnittstelle- IDUUIProcessHandler
 
- 
exitpublic void exit()Exits the process.- Angegeben von:
- exitin Schnittstelle- IDUUIProcessHandler
 
- 
onServerStoppedpublic void onServerStopped()Handles the server stopping.- Angegeben von:
- onServerStoppedin Schnittstelle- IDUUIProcessHandler
 
- 
getProcessIDReturns the process ID.- Angegeben von:
- getProcessIDin Schnittstelle- IDUUIProcessHandler
- Gibt zurück:
- The process ID.
 
- 
getPipelineIDReturns the pipeline ID.- Angegeben von:
- getPipelineIDin Schnittstelle- IDUUIProcessHandler
- Gibt zurück:
- The pipeline ID.
 
- 
getUserIDReturns the user ID.- Angegeben von:
- getUserIDin Schnittstelle- IDUUIProcessHandler
- Gibt zurück:
- The user ID.
 
- 
getStatusReturns the status of the process.- Angegeben von:
- getStatusin Schnittstelle- IDUUIProcessHandler
- Gibt zurück:
- The status of the process.
 
- 
runpublic void run()Returns the composer.
 
-