public final class StateController extends AbstractController implements IStateController
monitoringController| Modifier | Constructor and Description |
|---|---|
protected |
StateController(Configuration configuration)
Creates a new instance of this class using the given parameter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup()
This method should clean up.
|
boolean |
disableMonitoring()
Disables monitoring.
|
boolean |
enableMonitoring()
Enables monitoring.
|
int |
getExperimentId() |
java.lang.String |
getHostname()
The hostname will be part of the monitoring data and allows to distinguish observations in cases where the software system is deployed on more than one host.
|
java.lang.String |
getName()
Returns the name of this controller.
|
int |
incExperimentId()
Increments the experiment ID by 1 and returns the new value.
|
protected void |
init()
This method should to the initialization work.
|
boolean |
isDebug()
Is the debug mode enabled?
|
boolean |
isMonitoringEnabled()
Returns whether monitoring is enabled or disabled/terminated.
|
boolean |
isMonitoringTerminated()
Returns whether monitoring is permanently terminated.
|
void |
setExperimentId(int newExperimentID)
Sets the experiment ID to the given value.
|
void |
setStateListener(IStateListener stateListener) |
boolean |
terminateMonitoring()
Permanently terminates monitoring.
|
java.lang.String |
toString() |
createAndInitialize, isTerminated, setMonitoringController, terminateprotected StateController(Configuration configuration)
configuration - The configuration which will be used to initialize the controller.protected final void init()
AbstractControllerinit in class AbstractControllerprotected final void cleanup()
AbstractControllercleanup in class AbstractControllerpublic final java.lang.String toString()
toString in class AbstractControllerpublic final boolean terminateMonitoring()
terminateMonitoring in interface IStateControllerIStateController.isMonitoringTerminated()public final boolean isMonitoringTerminated()
IStateControllerisMonitoringTerminated in interface IStateControllerIStateController.terminateMonitoring()public final boolean enableMonitoring()
enableMonitoring in interface IStateControllerpublic final boolean disableMonitoring()
disableMonitoring in interface IStateControllerpublic final boolean isMonitoringEnabled()
IStateControllerisMonitoringEnabled in interface IStateControllerIStateController.disableMonitoring(),
IStateController.enableMonitoring()public final java.lang.String getName()
IStateControllergetName in interface IStateControllerpublic final java.lang.String getHostname()
IStateControllergetHostname in interface IStateControllerpublic final int incExperimentId()
incExperimentId in interface IStateControllerpublic final void setExperimentId(int newExperimentID)
setExperimentId in interface IStateControllernewExperimentID - The new ID.public final int getExperimentId()
getExperimentId in interface IStateControllerpublic final boolean isDebug()
IStateControllerDebug mode is for internal use only and changes a few internal id generation mechanisms to enable easier debugging. Additionally, it is possible to enable debug logging in the settings of the used logger.
isDebug in interface IStateControllerpublic void setStateListener(IStateListener stateListener)
Copyright 2017 Kieker Project, http://kieker-monitoring.net