public interface DhcpService
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<Ip4Address> |
getAvailableIPs()
Returns the list of all the available IPs with the server.
|
int |
getLeaseTime()
Returns the default lease time granted by the DHCP Server.
|
int |
getRebindingTime()
Returns the default rebinding time granted by the DHCP Server.
|
int |
getRenewalTime()
Returns the default renewal time granted by the DHCP Server.
|
java.util.Map<HostId,IpAssignment> |
listMapping()
Returns a collection of all the MacAddress to IPAddress mapping.
|
boolean |
removeStaticMapping(MacAddress macID)
Removes a static IP mapping with the DHCP Server.
|
boolean |
setStaticMapping(MacAddress macAddress,
IpAssignment ipRequest)
Registers a static IP mapping with the DHCP Server.
|
java.util.Map<HostId,IpAssignment> listMapping()
int getLeaseTime()
int getRenewalTime()
int getRebindingTime()
boolean setStaticMapping(MacAddress macAddress, IpAssignment ipRequest)
macAddress
- mac address to have a given ip assignmentipRequest
- ip address and dhcp optionsboolean removeStaticMapping(MacAddress macID)
macID
- macID of the clientjava.lang.Iterable<Ip4Address> getAvailableIPs()