Package net.sbbi.upnp.jmx
Class UPNPDiscoveryNotification
- java.lang.Object
-
- java.util.EventObject
-
- javax.management.Notification
-
- net.sbbi.upnp.jmx.UPNPDiscoveryNotification
-
- All Implemented Interfaces:
Serializable
public class UPNPDiscoveryNotification extends Notification
Discovery notification sent when a new set of UPNPServiceMBean for a given discovered UPNP device is registered within the server. The same notification is also sent when a device is leaving the network.- Version:
- 1.0
- Author:
- SuperBonBon
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.management.Notification
source
-
-
Constructor Summary
Constructors Constructor Description UPNPDiscoveryNotification(String type, Object source, long sequenceNumber, long timeStamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetLocation()The Device descriptor location only provided when an ssdp alive notification is recievedStringgetNt()The device typeStringgetUdn()The device IdentifierObjectName[]getUPNPServiceMBeans()The registered UPNPServiceMBeans object names bound to this device joining or leaving the networkStringgetUsn()The device id + ":" + typeprotected voidsetLocation(URL location)protected voidsetNt(String nt)protected voidsetUdn(String udn)protected voidsetUPNPServiceMBeans(ObjectName[] serviceMBeans)protected voidsetUsn(String usn)-
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Method Detail
-
getLocation
public URL getLocation()
The Device descriptor location only provided when an ssdp alive notification is recieved- Returns:
- the device descriptor location
-
setLocation
protected void setLocation(URL location)
-
getNt
public String getNt()
The device type- Returns:
- the device type
-
setNt
protected void setNt(String nt)
-
getUdn
public String getUdn()
The device Identifier- Returns:
- the device ID
-
setUdn
protected void setUdn(String udn)
-
getUsn
public String getUsn()
The device id + ":" + type- Returns:
- the device USN
-
setUsn
protected void setUsn(String usn)
-
getUPNPServiceMBeans
public ObjectName[] getUPNPServiceMBeans()
The registered UPNPServiceMBeans object names bound to this device joining or leaving the network- Returns:
- UPNPServiceMBeans object names array
-
setUPNPServiceMBeans
protected void setUPNPServiceMBeans(ObjectName[] serviceMBeans)
-
-