Package kieker.analysis
Class AnalysisControllerThread
java.lang.Object
java.lang.Thread
kieker.analysis.AnalysisControllerThread
- All Implemented Interfaces:
java.lang.Runnable
@Deprecated
public final class AnalysisControllerThread
extends java.lang.Thread
Deprecated.
since 1.15.1
Allows spawn the execution of an
AnalysisController
into a separate Thread
. The thread with the AnalysisController
instance
provided in the constructor AnalysisControllerThread(IAnalysisController)
is started by calling the start()
method. The analysis can be
terminated by calling the terminate()
method which delegates the call to the AnalysisController.terminate()
method.- Since:
- 1.4
- Author:
- Andre van Hoorn, Jan Waller
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AnalysisControllerThread(IAnalysisController analysisController)
Deprecated.Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description void
awaitTermination()
Deprecated.Awaits the termination of the containedAnalysisController
.boolean
awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
Deprecated.Awaits (with timeout) the termination of the containedAnalysisController
.void
run()
Deprecated.void
start()
Deprecated.void
terminate()
Deprecated.Initiates a termination of the executedAnalysisController
.Methods inherited from class 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, suspend, toString, yield
-
Constructor Details
-
AnalysisControllerThread
Deprecated.Creates a new instance of this class using the given parameters.- Parameters:
analysisController
- The analysis controller to be managed by this thread.
-
-
Method Details
-
start
public void start()Deprecated.- Overrides:
start
in classjava.lang.Thread
-
run
public void run()Deprecated.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
awaitTermination
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedExceptionDeprecated.Awaits (with timeout) the termination of the containedAnalysisController
.- Parameters:
timeout
- The maximum time to waitunit
- The time unit of the timeout.- Returns:
- see
CountDownLatch.await(long, TimeUnit)
- Throws:
java.lang.InterruptedException
- If the current thread has been interrupted while waiting.
-
awaitTermination
public void awaitTermination() throws java.lang.InterruptedExceptionDeprecated.Awaits the termination of the containedAnalysisController
.- Throws:
java.lang.InterruptedException
- If the current thread has been interrupted while waiting.
-
terminate
public void terminate()Deprecated.Initiates a termination of the executedAnalysisController
.
-