Interface HostProviderService

    • Method Detail

      • hostDetected

        void hostDetected​(HostId hostId,
                          HostDescription hostDescription,
                          boolean replaceIps)
        Notifies the core when a host has been detected on a network along with information that identifies the host location.
        Parameters:
        hostId - id of the host that been detected
        hostDescription - description of host and its location
        replaceIps - replace IP set if true, merge IP set otherwise
      • hostVanished

        void hostVanished​(HostId hostId)
        Notifies the core when a host is no longer detected on a network.
        Parameters:
        hostId - id of the host that vanished
      • removeIpFromHost

        void removeIpFromHost​(HostId hostId,
                              IpAddress ipAddress)
        Notifies the core when an IP is no longer associated with a host.
        Parameters:
        hostId - id of the host
        ipAddress - ip address of host that vanished
      • addLocationToHost

        default void addLocationToHost​(HostId hostId,
                                       HostLocation location)
        Notifies the core when a location is associated with a host.
        Parameters:
        hostId - id of the host
        location - location of host that gets discovered
      • removeLocationFromHost

        void removeLocationFromHost​(HostId hostId,
                                    HostLocation location)
        Notifies the core when a location is no longer associated with a host.
        Parameters:
        hostId - id of the host
        location - location of host that vanished