public class AddressPoolImpl extends Object implements AddressPool, net.sf.ehcache.event.CacheEventListener
| Modifier and Type | Field and Description |
|---|---|
protected InetAddress[] |
dns |
protected int |
fudge |
protected String |
leaseFile |
protected net.sf.ehcache.Cache |
leases |
protected int |
leaseTime |
protected AddressPoolListener |
listener |
protected InetAddress |
netmask |
protected InetAddress |
network |
protected byte |
next |
protected InetAddress |
router |
| Constructor and Description |
|---|
AddressPoolImpl() |
AddressPoolImpl(InetAddress network,
InetAddress netmask,
InetAddress router,
int leaseTime) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
contains(InetAddress ip) |
void |
dispose() |
InetAddress[] |
getDns() |
InetAddress |
getIP(byte[] hwa,
InetAddress requested,
boolean forceNew) |
String |
getLeaseFile() |
net.sf.ehcache.Ehcache |
getLeases() |
int |
getLeaseTime() |
AddressPoolListener |
getListener() |
InetAddress |
getNetmask() |
InetAddress |
getNetwork() |
InetAddress |
getRouter() |
InetAddress |
nextIP() |
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e) |
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e) |
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e) |
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e) |
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e) |
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache) |
void |
setDns(InetAddress[] dns) |
void |
setFudge(int fudge) |
void |
setLeaseFile(String leaseFile) |
void |
setLeases(net.sf.ehcache.Cache leases) |
void |
setLeaseTime(int leaseTime) |
void |
setListener(AddressPoolListener listener) |
void |
setNetmask(InetAddress netmask) |
void |
setNetwork(InetAddress network) |
void |
setRouter(InetAddress router) |
void |
writeLeaseFile() |
protected String leaseFile
protected InetAddress network
protected InetAddress netmask
protected InetAddress router
protected InetAddress[] dns
protected byte next
protected int fudge
protected int leaseTime
protected AddressPoolListener listener
protected net.sf.ehcache.Cache leases
public AddressPoolImpl()
public AddressPoolImpl(InetAddress network, InetAddress netmask, InetAddress router, int leaseTime)
public boolean contains(InetAddress ip)
public InetAddress nextIP() throws UnknownHostException
UnknownHostExceptionpublic InetAddress getIP(byte[] hwa, InetAddress requested, boolean forceNew) throws UnknownHostException
getIP in interface AddressPoolUnknownHostExceptionpublic void writeLeaseFile()
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
notifyElementEvicted in interface net.sf.ehcache.event.CacheEventListenerpublic void notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
notifyElementExpired in interface net.sf.ehcache.event.CacheEventListenerpublic void notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
throws net.sf.ehcache.CacheException
notifyElementPut in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
throws net.sf.ehcache.CacheException
notifyElementRemoved in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
throws net.sf.ehcache.CacheException
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll in interface net.sf.ehcache.event.CacheEventListenerpublic Object clone() throws CloneNotSupportedException
clone in interface net.sf.ehcache.event.CacheEventListenerclone in class ObjectCloneNotSupportedExceptionpublic void dispose()
dispose in interface net.sf.ehcache.event.CacheEventListenerpublic void setFudge(int fudge)
public void setLeaseFile(String leaseFile)
public void setLeases(net.sf.ehcache.Cache leases)
public void setLeaseTime(int leaseTime)
public void setNetmask(InetAddress netmask)
public void setNetwork(InetAddress network)
public void setRouter(InetAddress router)
public String getLeaseFile()
public net.sf.ehcache.Ehcache getLeases()
public int getLeaseTime()
getLeaseTime in interface AddressPoolpublic InetAddress getNetmask()
getNetmask in interface AddressPoolpublic InetAddress getNetwork()
getNetwork in interface AddressPoolpublic InetAddress getRouter()
getRouter in interface AddressPoolpublic InetAddress[] getDns()
getDns in interface AddressPoolpublic void setDns(InetAddress[] dns)
public AddressPoolListener getListener()
public void setListener(AddressPoolListener listener)
Copyright © 2017. All rights reserved.