Class NetworkState
java.lang.Object
org.eblocker.server.common.network.NetworkState
- Direct Known Subclasses:
NetworkStateExternalDhcp,NetworkStateLocalDhcp,NetworkStatePlugAndPlay
Represents a configuration state of the network
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract NetworkStateIdgetId()voidonConfigurationUpdate(NetworkServices services, NetworkConfiguration configuration, boolean willReboot) Performs all steps that are necessary to update the configuration.abstract voidonEntry(NetworkServices services, NetworkConfiguration configuration, boolean willReboot) Perform all steps that are necessary to enter this state, e.g. services must be configured and started.abstract voidonExit(NetworkServices services) Perform all steps that are necessary to leave this state, e.g. services must be stopped.
-
Constructor Details
-
NetworkState
public NetworkState()
-
-
Method Details
-
onExit
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
-