Interface IStateController

All Known Subinterfaces:
IMonitoringController
All Known Implementing Classes:
MonitoringController, StateController

public interface IStateController
Since:
1.3
Author:
Jan Waller
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Disables monitoring.
    boolean
    Enables monitoring.
    int
     
    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.
    Returns the name of this controller.
    int
    Increments the experiment ID by 1 and returns the new value.
    boolean
    Is the debug mode enabled?
    boolean
    Returns whether monitoring is enabled or disabled/terminated.
    boolean
    Returns whether monitoring is permanently terminated.
    void
    setExperimentId(int newExperimentID)
    Sets the experiment ID to the given value.
    boolean
    Permanently terminates monitoring.
  • Method Details

    • terminateMonitoring

      boolean terminateMonitoring()
      Permanently terminates monitoring.
      Returns:
      true if now terminated; false if already terminated
      Since:
      1.3
      See Also:
    • isMonitoringTerminated

      boolean isMonitoringTerminated()
      Returns whether monitoring is permanently terminated.
      Returns:
      true if monitoring is permanently terminated, false if monitoring is enabled or disabled.
      Since:
      1.3
      See Also:
    • enableMonitoring

      boolean enableMonitoring()
      Enables monitoring.
      Returns:
      true if monitoring is enabled, false otherwise
      Since:
      1.3
    • disableMonitoring

      boolean disableMonitoring()
      Disables monitoring. If monitoring is disabled, the MonitoringController simply pauses. Furthermore, probes should stop collecting new data and monitoring writers stop should stop writing existing data.
      Returns:
      true if monitoring is disabled, false otherwise
      Since:
      1.3
    • isMonitoringEnabled

      boolean isMonitoringEnabled()
      Returns whether monitoring is enabled or disabled/terminated.
      Returns:
      true of monitoring is enabled, false if monitoring is disabled or terminated.
      Since:
      1.3
      See Also:
    • getName

      String getName()
      Returns the name of this controller.
      Returns:
      String
      Since:
      1.3
    • getHostname

      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. When you want to distinguish multiple Virtual Machines on one host, you* have to set the hostname manually in the Configuration.
      Returns:
      The hostname.
      Since:
      1.3
    • incExperimentId

      int incExperimentId()
      Increments the experiment ID by 1 and returns the new value.
      Returns:
      experimentID
      Since:
      1.3
    • setExperimentId

      void setExperimentId(int newExperimentID)
      Sets the experiment ID to the given value.
      Parameters:
      newExperimentID - The new ID.
      Since:
      1.3
    • getExperimentId

      int getExperimentId()
      Returns:
      The experiment ID.
      Since:
      1.3
    • isDebug

      boolean isDebug()
      Is the debug mode enabled?

      Debug 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.

      Returns:
      debug mode
      Since:
      1.6