public class SimpleDhcpStore extends AbstractDhcpStore
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(InetAddress clientAddress)
Find the subnet for the given client address.
|
protected DirContext |
getContext() |
protected OptionsField |
getOptions(DhcpConfigElement element)
Return a list of all options applicable to the given config element.
|
protected 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, releaseLease
public SimpleDhcpStore()
protected DirContext getContext() throws NamingException
NamingException
protected Lease findExistingLease(HardwareAddress hardwareAddress, Lease existingLease)
AbstractDhcpStore
findExistingLease
in class AbstractDhcpStore
hardwareAddress
- existingLease
- protected Host findDesignatedHost(HardwareAddress hardwareAddress) throws DhcpException
AbstractDhcpStore
findDesignatedHost
in class AbstractDhcpStore
hardwareAddress
- DhcpException
protected Subnet findSubnet(InetAddress clientAddress)
findSubnet
in class AbstractDhcpStore
clientAddress
- public void updateLease(Lease lease)
AbstractDhcpStore
updateLease
in class AbstractDhcpStore
protected OptionsField getOptions(DhcpConfigElement element)
AbstractDhcpStore
getOptions
in class AbstractDhcpStore
protected Map getProperties(DhcpConfigElement element)
AbstractDhcpStore
getProperties
in class AbstractDhcpStore
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.