org.netserv.ipauth.impl
Class UdhcpLeaseReader

java.lang.Object
  extended by org.netserv.ipauth.impl.LeaseReader
      extended by org.netserv.ipauth.impl.UdhcpLeaseReader

public class UdhcpLeaseReader
extends LeaseReader


Constructor Summary
UdhcpLeaseReader(java.lang.String leaseFile, java.lang.String pidFile)
           
 
Method Summary
 UdhcpLease findLeaseByIp(byte[] yaddr)
           
 void forceUpdate(java.lang.String pidFile)
           
 byte[] getXid(byte[] ip)
           
 void load()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdhcpLeaseReader

public UdhcpLeaseReader(java.lang.String leaseFile,
                        java.lang.String pidFile)
Parameters:
leaseFile -
pidFile -
Method Detail

findLeaseByIp

public UdhcpLease findLeaseByIp(byte[] yaddr)
                         throws java.io.IOException
Parameters:
yaddr -
Returns:
Throws:
java.io.IOException

forceUpdate

public void forceUpdate(java.lang.String pidFile)
                 throws java.io.IOException
Parameters:
pidFile -
Throws:
java.io.IOException

getXid

public byte[] getXid(byte[] ip)
Specified by:
getXid in class LeaseReader
Parameters:
ip -
Returns:

load

public void load()
          throws java.io.IOException
Specified by:
load in class LeaseReader
Throws:
java.io.IOException