public class AddressPoolImpl extends Object implements AddressPool, net.sf.ehcache.event.CacheEventListener
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
AddressPoolImpl() |
AddressPoolImpl(InetAddress network,
InetAddress netmask,
InetAddress router,
int leaseTime) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
public InetAddress getIP(byte[] hwa, InetAddress requested, boolean forceNew) throws UnknownHostException
getIP 在接口中 AddressPoolUnknownHostExceptionpublic void writeLeaseFile()
public void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
notifyElementEvicted 在接口中 net.sf.ehcache.event.CacheEventListenerpublic void notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
notifyElementExpired 在接口中 net.sf.ehcache.event.CacheEventListenerpublic void notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element e)
throws net.sf.ehcache.CacheException
notifyElementPut 在接口中 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 在接口中 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 在接口中 net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll 在接口中 net.sf.ehcache.event.CacheEventListenerpublic Object clone() throws CloneNotSupportedException
clone 在接口中 net.sf.ehcache.event.CacheEventListenerclone 在类中 ObjectCloneNotSupportedExceptionpublic void dispose()
dispose 在接口中 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 在接口中 AddressPoolpublic InetAddress getNetmask()
getNetmask 在接口中 AddressPoolpublic InetAddress getNetwork()
getNetwork 在接口中 AddressPoolpublic InetAddress getRouter()
getRouter 在接口中 AddressPoolpublic InetAddress[] getDns()
getDns 在接口中 AddressPoolpublic void setDns(InetAddress[] dns)
public AddressPoolListener getListener()
public void setListener(AddressPoolListener listener)
Copyright © 2016. All rights reserved.