Class NetworkStateMachine

java.lang.Object
org.eblocker.server.common.network.NetworkStateMachine

public class NetworkStateMachine extends Object
The network state machine processes events (e.g. when a new network configuration is received by the NetworkController) and changes the network state accordingly using the NetworkServices.
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
      Enable services that must be started at boot time so that the current state is functional
    • isSSLEnabled

      public boolean isSSLEnabled()
    • updateConfiguration

      public boolean updateConfiguration(NetworkConfiguration networkConfiguration)
      Updates the current configuration
      Parameters:
      networkConfiguration -
      Returns:
      true, if the network state has changed
    • deviceStateChanged

      public void deviceStateChanged()
      Call this method when a device is put on / removed from the whitelist.
    • deviceStateChanged

      public void deviceStateChanged(Device justChangedDevice)