Class NetworkState

java.lang.Object
org.eblocker.server.common.network.NetworkState
Direct Known Subclasses:
NetworkStateExternalDhcp, NetworkStateLocalDhcp, NetworkStatePlugAndPlay

public abstract class NetworkState extends Object
Represents a configuration state of the network
  • Constructor Details

    • NetworkState

      public NetworkState()
  • Method Details

    • onExit

      public abstract void onExit(NetworkServices services)
      Perform all steps that are necessary to leave this state, e.g. services must be stopped.
    • onEntry

      public abstract void onEntry(NetworkServices services, NetworkConfiguration configuration, boolean willReboot)
      Perform all steps that are necessary to enter this state, e.g. services must be configured and started.
      Parameters:
      willReboot - true if the system will be rebooted afterwards
    • onConfigurationUpdate

      public void onConfigurationUpdate(NetworkServices services, NetworkConfiguration configuration, boolean willReboot)
      Performs all steps that are necessary to update the configuration. The default is to call onExit() and onEntry().
    • getId

      public abstract NetworkStateId getId()