Class MQTTNotification
java.lang.Object
ecmwf.ecpds.mover.service.MQTTNotification
- All Implemented Interfaces:
NotificationInterface,Closeable,AutoCloseable
The Class MQTTNotification.
-
Constructor Summary
ConstructorsConstructorDescriptionMQTTNotification(boolean useSsl, String hostsList, String name, String password) Instantiates a new notification manager. -
Method Summary
-
Constructor Details
-
MQTTNotification
Instantiates a new notification manager. The authentication is only performed once the file is transmitted (when the notify method is called).- Parameters:
useSsl- the use sslhostsList- the hosts (list of hosts, e.g. dm1:1883;dm2;dm3)name- the namepassword- the password
-
-
Method Details
-
notify
public void notify(String payload, String topic, String properties, long lifetime) throws IOException, NumberFormatException Notify. Publish.- Specified by:
notifyin interfaceNotificationInterface- Parameters:
payload- the urltopic- the keyproperties- the valuelifetime- the lifetime- Throws:
IOException- the io exceptionNumberFormatException
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-