Class IpAddonFinder

java.lang.Object
org.openhab.core.config.discovery.addon.BaseAddonFinder
org.openhab.core.config.discovery.addon.ip.IpAddonFinder
All Implemented Interfaces:
AddonFinder

@NonNullByDefault public class IpAddonFinder extends BaseAddonFinder
This is a IpAddonFinder for finding suggested add-ons by sending IP packets to the network and collecting responses.
Author:
Holger Friedrich - Initial contribution
  • Field Details

  • Constructor Details

    • IpAddonFinder

      public IpAddonFinder()
  • Method Details

    • deactivate

      public void deactivate()
    • setAddonCandidates

      public void setAddonCandidates(List<AddonInfo> candidates)
      Description copied from interface: AddonFinder
      The framework calls this method to provide a list of AddonInfo elements which contain potential candidates that this finder can iterate over in order to detect which ones to return via the getSuggestedAddons() method.
      Specified by:
      setAddonCandidates in interface AddonFinder
      Overrides:
      setAddonCandidates in class BaseAddonFinder
      Parameters:
      candidates - a list of AddonInfo candidates.
    • getSuggestedAddons

      public Set<AddonInfo> getSuggestedAddons()
      Description copied from interface: AddonFinder
      The framework calls this method to scan through the candidate list of AddonInfo and return a subset of those that it suggests to be installed.
    • getServiceName

      public String getServiceName()
      Specified by:
      getServiceName in class BaseAddonFinder