Class AbstractEmbeddableService<T extends teetime.framework.Configuration>

java.lang.Object
kieker.tools.common.AbstractEmbeddableService<T>
Type Parameters:
T - a Teetime configuration
All Implemented Interfaces:
Runnable

public abstract class AbstractEmbeddableService<T extends teetime.framework.Configuration> extends Object implements Runnable
Abstract class to create runnable teetime services.
Since:
1.15
Author:
Reiner Jung
  • Constructor Details

    • AbstractEmbeddableService

      public AbstractEmbeddableService()
      Default constructor.
  • Method Details

    • run

      public final void run()
      Specified by:
      run in interface Runnable
    • terminate

      public final void terminate()
      Terminate a running service.
    • logError

      protected abstract void logError(ConfigurationException e)
      Log exceptions to the UI.
      Parameters:
      e - configuration exception
    • shutdownService

      protected abstract void shutdownService()
      Trigger cleanup features of the service.
    • createTeetimeConfiguration

      protected abstract T createTeetimeConfiguration() throws ConfigurationException
      Create and initialize teetime configuration for a service.
      Returns:
      return the newly created service
      Throws:
      ConfigurationException - in case the creation fails