Class NetworkStateLocalDhcp
java.lang.Object
org.eblocker.server.common.network.NetworkState
org.eblocker.server.common.network.NetworkStateLocalDhcp
Represents the following network state:
The IP address is configured statically.
Clients get their addresses from a DHCP server
running on the eBlocker.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()voidonConfigurationUpdate(NetworkServices services, NetworkConfiguration configuration, boolean willReboot) Performs all steps that are necessary to update the configuration.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.voidonExit(NetworkServices services) Perform all steps that are necessary to leave this state, e.g. services must be stopped.
-
Constructor Details
-
NetworkStateLocalDhcp
public NetworkStateLocalDhcp()
-
-
Method Details
-
onExit
Description copied from class:NetworkStatePerform all steps that are necessary to leave this state, e.g. services must be stopped.- Specified by:
onExitin classNetworkState
-
onEntry
public void onEntry(NetworkServices services, NetworkConfiguration configuration, boolean willReboot) Description copied from class:NetworkStatePerform all steps that are necessary to enter this state, e.g. services must be configured and started.- Specified by:
onEntryin classNetworkStatewillReboot- true if the system will be rebooted afterwards
-
onConfigurationUpdate
public void onConfigurationUpdate(NetworkServices services, NetworkConfiguration configuration, boolean willReboot) Description copied from class:NetworkStatePerforms all steps that are necessary to update the configuration. The default is to call onExit() and onEntry().- Overrides:
onConfigurationUpdatein classNetworkState
-
getId
- Specified by:
getIdin classNetworkState
-