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
  • Constructor Details

    • TranslationStudioModule

      public TranslationStudioModule(@NotNull @NotNull String sId, @NotNull @NotNull String sName)
    • TranslationStudioModule

      public TranslationStudioModule(@NotNull @NotNull String sName)
  • Method Details

    • getComponentName

      @NotNull public @NotNull String 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

      @NotNull public @NotNull String getThreadName()
      Get the thread name
      Returns:
    • getServiceThreadId

      @NotNull public @NotNull String getServiceThreadId()
      Get thread id
      Returns:
    • setProperties

      public void setProperties(@NotNull @NotNull Properties pProperties)
      Receive potential property configuration
      Parameters:
      pProperties -
    • run

      public final void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • getHealthInformation

      @NotNull public @NotNull IHealthInformation getHealthInformation()
      Get Health Information Manager for this thread
      Specified by:
      getHealthInformation in interface IServiceModuleState
      Returns:
    • getServiceThreadState

      @NotNull public @NotNull EServiceThreadState getServiceThreadState()
      Get current state
      Specified by:
      getServiceThreadState in interface IServiceModuleState
      Returns:
    • sendShutdown

      public final void sendShutdown()
      Shutdown
    • getElapsedTimeAsString

      @NotNull public @NotNull String getElapsedTimeAsString()
      Get the start time in Milliseconds.

      Returns:
      start time of the thread