public abstract class AbstractController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected MonitoringController |
monitoringController |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractController(Configuration configuration)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup()
This method should clean up.
|
protected static <C> C |
createAndInitialize(java.lang.Class<C> c,
java.lang.String classname,
Configuration configuration)
This is a helper method trying to find, create and initialize the given class, using its public constructor which accepts a single
Configuration. |
protected abstract void |
init()
This method should to the initialization work.
|
protected boolean |
isTerminated()
Returns whether this controller is terminated.
|
protected void |
setMonitoringController(MonitoringController monitoringController)
Sets and initializes the monitoring controller, if it has not been set yet.
|
protected boolean |
terminate()
Permanently terminates this controller.
|
abstract java.lang.String |
toString() |
protected volatile MonitoringController monitoringController
protected AbstractController(Configuration configuration)
configuration - The configuration for this controller.protected final void setMonitoringController(MonitoringController monitoringController)
monitoringController - The monitoring controller.protected final boolean terminate()
isTerminated()protected final boolean isTerminated()
terminate()protected abstract void init()
protected abstract void cleanup()
public abstract java.lang.String toString()
toString in class java.lang.Objectprotected static final <C> C createAndInitialize(java.lang.Class<C> c,
java.lang.String classname,
Configuration configuration)
Configuration.C - The type of the returned class.c - This class defines the expected result of the method call.classname - The name of the class to be created.configuration - The configuration which will be used to initialize the class in question.Copyright 2017 Kieker Project, http://kieker-monitoring.net