Class IscDhcpServer
java.lang.Object
org.eblocker.server.common.network.unix.IscDhcpServer
- All Implemented Interfaces:
DhcpServer
Controls the isc-dhcp-server service on Debian
-
Constructor Summary
ConstructorsConstructorDescriptionIscDhcpServer(ScriptRunner scriptRunner, String configPath, String applyConfigCommand, String enableComand, String disableComand) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Stops the DHCP server and ensures that it is not started after a reboot.voidenable(boolean start) Starts the DHCP server and ensures that it is automatically restarted after a reboot.voidsetConfiguration(DhcpServerConfiguration configuration) Updates the DHCP server's configuration.
-
Constructor Details
-
IscDhcpServer
@Inject public IscDhcpServer(ScriptRunner scriptRunner, String configPath, String applyConfigCommand, String enableComand, String disableComand)
-
-
Method Details
-
enable
public void enable(boolean start) Description copied from interface:DhcpServerStarts the DHCP server and ensures that it is automatically restarted after a reboot.- Specified by:
enablein interfaceDhcpServer
-
disable
public void disable()Description copied from interface:DhcpServerStops the DHCP server and ensures that it is not started after a reboot.- Specified by:
disablein interfaceDhcpServer
-
setConfiguration
Description copied from interface:DhcpServerUpdates the DHCP server's configuration. This might restart the server.- Specified by:
setConfigurationin interfaceDhcpServer- Parameters:
configuration- the configuration to apply
-