Class IpAssignment


  • public final class IpAssignment
    extends Object
    Stores the MAC ID to IP Address mapping details.
    • Method Detail

      • ipAddress

        public Ip4Address ipAddress()
        Returns the IP Address of the IP assignment.
        Returns:
        the IP address
      • timestamp

        public Date timestamp()
        Returns the timestamp of the IP assignment.
        Returns:
        the timestamp
      • assignmentStatus

        public IpAssignment.AssignmentStatus assignmentStatus()
        Returns the assignment status of the IP assignment.
        Returns:
        the assignment status
      • leasePeriod

        public int leasePeriod()
        Returns the lease period of the IP assignment.
        Returns:
        the lease period in seconds
      • leasePeriodMs

        public int leasePeriodMs()
        Returns the lease period of the IP assignment.
        Returns:
        the lease period in milliseconds
      • subnetMask

        public Ip4Address subnetMask()
        Returns subnet mask of the IP assignment.
        Returns:
        subnet mask
      • broadcast

        public Ip4Address broadcast()
        Returns broadcast address of the IP assignment.
        Returns:
        broadcast address
      • dhcpServer

        public Ip4Address dhcpServer()
        Returns dhcp server of the IP assignment.
        Returns:
        dhcp server ip address
      • routerAddress

        public Ip4Address routerAddress()
        Returns router address of the IP assignment.
        Returns:
        router ip address
      • domainServer

        public Ip4Address domainServer()
        Returns domain server address.
        Returns:
        domain server ip address
      • builder

        public static IpAssignment.Builder builder()
        Creates and returns a new builder instance.
        Returns:
        new builder
      • builder

        public static IpAssignment.Builder builder​(IpAssignment assignment)
        Creates and returns a new builder instance that clones an existing IPAssignment.
        Parameters:
        assignment - ip address assignment
        Returns:
        new builder