Package kieker.tools.common
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 TcreateTeetimeConfiguration()Create and initialize teetime configuration for a service.protected abstract voidlogError(ConfigurationException e)Log exceptions to the UI.voidrun()protected abstract voidshutdownService()Trigger cleanup features of the service.voidterminate()Terminate a running service.
-
Constructor Details
-
AbstractEmbeddableService
public AbstractEmbeddableService()Default constructor.
-
-
Method Details
-
run
public final void run()- Specified by:
runin interfacejava.lang.Runnable
-
terminate
public final void terminate()Terminate a running service. -
logError
Log exceptions to the UI.- Parameters:
e- configuration exception
-
shutdownService
protected abstract void shutdownService()Trigger cleanup features of the service. -
createTeetimeConfiguration
Create and initialize teetime configuration for a service.- Returns:
- return the newly created service
- Throws:
ConfigurationException- in case the creation fails
-