public interface DhcpService
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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. 
 | 
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 clientIterable<Ip4Address> getAvailableIPs()