Class AbstractEmbeddableService<T extends teetime.framework.Configuration>

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

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

    Constructors 
    Constructor Description
    AbstractEmbeddableService()
    Default constructor.
  • Method Summary

    Modifier and Type Method Description
    protected abstract T createTeetimeConfiguration()
    Create and initialize teetime configuration for a service.
    protected abstract void logError​(ConfigurationException e)
    Log exceptions to the UI.
    void run()  
    protected abstract void shutdownService()
    Trigger cleanup features of the service.
    void terminate()
    Terminate a running service.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • run

      public final void run()
      Specified by:
      run in interface java.lang.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