Class AbstractService<T extends teetime.framework.Configuration,​R>

java.lang.Object
kieker.tools.common.AbstractLegacyTool<R>
kieker.tools.common.AbstractService<T,​R>
Type Parameters:
T - type of the teetime configuration to be used
R - type of the parameter configuration object

public abstract class AbstractService<T extends teetime.framework.Configuration,​R>
extends AbstractLegacyTool<R>
Generic tool and service framework class. A specific tool or service must implement the following functions:
  • protected T createTeetimeConfiguration()
  • protected boolean checkParameters(final JCommander commander)
  • protected File getConfigurationFile()
  • protected boolean checkConfiguration(final Configuration kiekerConfiguration, final JCommander commander)
  • protected void shutdownService()
Furthermore, you have to define a main method: public static void main(final String[] args) { final ExampleMain main = new ExampleMain(); System.exit(main.run("Example Tool", "Log label", args, main)); }
Since:
1.15
Author:
Reiner Jung