Package net.sbbi.upnp.jmx
Interface UPNPDiscoveryMBean
-
- All Superinterfaces:
MBeanRegistration
- All Known Implementing Classes:
UPNPDiscovery
public interface UPNPDiscoveryMBean extends MBeanRegistration
MBean to discover UPNP devices on the network and register the devices service as UPNPServiceMBean objects during the MBean registration. The registered UPNPServiceMBean will also be automatically unregistered when the device is leaving the network or when the UPNPDiscoveryMBean is unregistered from teh MBeans server.- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Field Summary
Fields Modifier and Type Field Description static StringSSDP_ALIVE_NOTIFICATIONNotification type for devices joining the networkstatic StringSSDP_BYEBYE_NOTIFICATIONNotification type for devices leaving the network
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectName[]getRegisteredUPNPServiceMBeans(String deviceUDN)Computes an array of object names of registered UPNPServiceMBeans for a given UPNP device UDNString[]getRegisteredUPNPServiceMBeansUDNs()The list of registered devices UDN, the returned UDN can be used with the getRegisteredUPNPServiceMBeans(String deviceUDN) method to retreive UDN bound UPNPServiceMBean object namesSetgetSearchTargets()The registered devices search targets-
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
-
-
-
-
Method Detail
-
getSearchTargets
Set getSearchTargets()
The registered devices search targets- Returns:
- a set of search targets
-
getRegisteredUPNPServiceMBeans
ObjectName[] getRegisteredUPNPServiceMBeans(String deviceUDN) throws MalformedObjectNameException
Computes an array of object names of registered UPNPServiceMBeans for a given UPNP device UDN- Parameters:
deviceUDN- the UPNP device UDN ( unique id on the network )- Returns:
- an array of object names or null if not matchs found for the given UDN
- Throws:
MalformedObjectNameException- if an object name cannot be computed for an UPNPServiceMBean
-
getRegisteredUPNPServiceMBeansUDNs
String[] getRegisteredUPNPServiceMBeansUDNs()
The list of registered devices UDN, the returned UDN can be used with the getRegisteredUPNPServiceMBeans(String deviceUDN) method to retreive UDN bound UPNPServiceMBean object names- Returns:
- a string array of UDN or null if no UPNP device services registered as UPNPServiceMBean
-
-