|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.dhcp.store.AbstractDhcpStore
org.apache.directory.server.dhcp.store.SimpleDhcpStore
public class SimpleDhcpStore
Very simple dummy/proof-of-concept implementation of a DhcpStore.
Constructor Summary | |
---|---|
SimpleDhcpStore()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.directory.server.dhcp.store.AbstractDhcpStore |
---|
getExistingLease, getLeaseOffer, releaseLease |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDhcpStore()
Method Detail |
---|
protected javax.naming.directory.DirContext getContext() throws javax.naming.NamingException
javax.naming.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(java.net.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 java.util.Map getProperties(DhcpConfigElement element)
AbstractDhcpStore
getProperties
in class AbstractDhcpStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |