Class TranslationStudioModule
java.lang.Object
java.lang.Thread
com.idmedia.translationstudio.api.module.TranslationStudioModule
- All Implemented Interfaces:
IServiceModule,IServiceModuleState,ITranslationStudioComponent,TranslationStudioServiceModule,Runnable
public abstract class TranslationStudioModule
extends Thread
implements TranslationStudioServiceModule
Service Module Class
- Author:
- I-D Media AG
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionTranslationStudioModule(@NotNull String sName) TranslationStudioModule(@NotNull String sId, @NotNull String sName) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet the Component's name@NotNull StringGet the start time in Milliseconds.@NotNull IHealthInformationGet Health Information Manager for this thread@NotNull StringGet thread id@NotNull EServiceThreadStateGet current statelongGet sleeping since timestamplongGet the sleeping interval in milis@NotNull StringGet the thread namelongGet the time this thread finishedlongGet the time this thread startedfinal voidrun()final voidShutdownvoidsetProperties(@NotNull Properties pProperties) Receive potential property configurationMethods inherited from class java.lang.Thread
activeCount, checkAccess, 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, yieldMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.idmedia.translationstudio.api.services.IServiceModule
getSleepingMinutesMethods inherited from interface com.idmedia.translationstudio.api.services.IServiceModuleState
getHealthInformation, getServiceThreadId, getServiceThreadState, getSleepingSince, getSleepIntervalInMilliseconds, getTimeLastWorkingFinished, getTimeLastWorkingStartedMethods inherited from interface com.idmedia.translationstudio.api.services.ITranslationStudioComponent
onBeforeFirstRun, onEachStepMethods inherited from interface com.idmedia.translationstudio.api.translationstudio.module.TranslationStudioServiceModule
getElapsedTimeAsString, getThreadName, sendShutdown, setProperties
-
Constructor Details
-
TranslationStudioModule
-
TranslationStudioModule
-
-
Method Details
-
getComponentName
Get the Component's name- Returns:
-
getSleepIntervalInMilliseconds
public long getSleepIntervalInMilliseconds()Get the sleeping interval in milis- Returns:
-
getSleepingSince
public long getSleepingSince()Get sleeping since timestamp- Returns:
-
getTimeLastWorkingStarted
public long getTimeLastWorkingStarted()Get the time this thread started- Returns:
-
getTimeLastWorkingFinished
public long getTimeLastWorkingFinished()Get the time this thread finished- Returns:
-
getThreadName
Get the thread name- Returns:
-
getServiceThreadId
Get thread id- Returns:
-
setProperties
Receive potential property configuration- Parameters:
pProperties-
-
run
public final void run() -
getHealthInformation
Get Health Information Manager for this thread- Specified by:
getHealthInformationin interfaceIServiceModuleState- Returns:
-
getServiceThreadState
Get current state- Specified by:
getServiceThreadStatein interfaceIServiceModuleState- Returns:
-
sendShutdown
public final void sendShutdown()Shutdown -
getElapsedTimeAsString
Get the start time in Milliseconds.- Returns:
- start time of the thread
-