Class DhcpClientLeaseReader

java.lang.Object
org.eblocker.server.common.network.unix.DhcpClientLeaseReader

public class DhcpClientLeaseReader extends Object
  • Constructor Details

    • DhcpClientLeaseReader

      @Inject public DhcpClientLeaseReader(String clientLeasesFileName)
  • Method Details

    • readLease

      public DhcpClientLease readLease()
      Reads the last DHCP client lease from the configured leases file.
      Returns:
      a DhcpClientLease object or null if the leases file does not exist or does not contain any leases.