public class SimpleDhcpStore extends AbstractDhcpStore
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
leases |
private java.util.List |
subnets |
| Constructor and Description |
|---|
SimpleDhcpStore() |
| Modifier and Type | Method and Description |
|---|---|
protected Host |
findDesignatedHost(HardwareAddress hardwareAddress)
Find a host to with the explicitely designated hardware address.
|
protected Lease |
findExistingLease(HardwareAddress hardwareAddress,
Lease existingLease)
Find an existing lease in the store.
|
protected Subnet |
findSubnet(java.net.InetAddress clientAddress)
Find the subnet for the given client address.
|
protected javax.naming.directory.DirContext |
getContext() |
protected OptionsField |
getOptions(DhcpConfigElement element)
Return a list of all options applicable to the given config element.
|
protected java.util.Map |
getProperties(DhcpConfigElement element)
Return a list of all options applicable to the given config element.
|
void |
updateLease(Lease lease)
Update the (possibly changed) lease in the store.
|
getExistingLease, getLeaseOffer, releaseLeaseprotected javax.naming.directory.DirContext getContext()
throws javax.naming.NamingException
javax.naming.NamingExceptionprotected Lease findExistingLease(HardwareAddress hardwareAddress, Lease existingLease)
AbstractDhcpStorefindExistingLease in class AbstractDhcpStorehardwareAddress - existingLease - protected Host findDesignatedHost(HardwareAddress hardwareAddress) throws DhcpException
AbstractDhcpStorefindDesignatedHost in class AbstractDhcpStorehardwareAddress - DhcpExceptionprotected Subnet findSubnet(java.net.InetAddress clientAddress)
findSubnet in class AbstractDhcpStoreclientAddress - public void updateLease(Lease lease)
AbstractDhcpStoreupdateLease in class AbstractDhcpStoreprotected OptionsField getOptions(DhcpConfigElement element)
AbstractDhcpStoregetOptions in class AbstractDhcpStoreprotected java.util.Map getProperties(DhcpConfigElement element)
AbstractDhcpStoregetProperties in class AbstractDhcpStore