Class UPNPDiscovery

    • Constructor Detail

      • UPNPDiscovery

        public UPNPDiscovery​(int discoveryTimeout,
                             boolean notifySSDPEvents,
                             boolean registerChildDevices)
        Main constructor, will discover all devices types
        Parameters:
        discoveryTimeout - devices discoverytimeout in MS, 0 for default timeout, increase this value if devices are not responding
        notifySSDPEvents - boolean to indicate if the MBean should broadcast JMX UPNPDiscoveryNotifications when an matching device is joining or leaving the network.
        registerChildDevices - when set to true, discovered device child devices services will also be exposed as UPNPServiceMBean objects
      • UPNPDiscovery

        public UPNPDiscovery​(String searchTargets,
                             int discoveryTimeout,
                             boolean notifySSDPEvents,
                             boolean registerChildDevices)
        Discover devices of a given type
        Parameters:
        searchTargets - a list of devices types URI (I.E : urn:schemas-upnp-org:device:WANDevice:1) that should be handled, list delimited by commas
        discoveryTimeout - devices discoverytimeout in MS, 0 for default timeout, increase this value if devices are not responding
        notifySSDPEvents - boolean to indicate if the MBean should broadcast JMX UPNPDiscoveryNotifications when an matching device is joining or leaving the network
        registerChildDevices - when set to true, discovered device child devices services will also be exposed as UPNPServiceMBean objects
      • UPNPDiscovery

        public UPNPDiscovery​(String[] searchTargets,
                             int discoveryTimeout,
                             boolean notifySSDPEvents,
                             boolean registerChildDevices)
        Discover devices of a given type
        Parameters:
        searchTargets - a list of devices types URI (I.E : urn:schemas-upnp-org:device:WANDevice:1) that should be handled. All discovered device children services will also be automatically registered as UPNPServiceMBean.
        discoveryTimeout - devices discoverytimeout in MS, 0 for default timeout, increase this value if devices are not responding
        notifySSDPEvents - boolean to indicate if the MBean should broadcast JMX UPNPDiscoveryNotifications when an matching device is joining or leaving the network
        registerChildDevices - when set to true, discovered device child devices services will also be exposed as UPNPServiceMBean objects