Cocop.AmqpMathToolConnector
2.1.0
API to connect math environment with AMQP
|
Public Member Functions | |
AmqpConnector (AmqpPropsManager props, String ... topics) throws CommunicationException | |
AmqpConnector (AmqpPropsManager props, boolean debugOn, String ... topics) throws CommunicationException | |
Notifier | getNotifierForTopic (String topic) |
void | sendMessage (String topic, byte[] msg) |
void | close () |
Provides means to send messages to and receive messages from a message bus.
eu.cocop.amqp2math.AmqpConnector.AmqpConnector | ( | AmqpPropsManager | props, |
String ... | topics | ||
) | throws CommunicationException |
Constructor.
props | Message bus properties. |
topics | Topics to subscribe to. |
CommunicationException | Thrown if an error occurs. |
eu.cocop.amqp2math.AmqpConnector.AmqpConnector | ( | AmqpPropsManager | props, |
boolean | debugOn, | ||
String ... | topics | ||
) | throws CommunicationException |
Constructor.
props | Message bus properties. |
debugOn | Whether debug prints are enabled. |
topics | Topics to subscribe to. |
CommunicationException | Thrown if an error occurs. |
void eu.cocop.amqp2math.AmqpConnector.close | ( | ) |
Releases the resources the object utilises.
Notifier eu.cocop.amqp2math.AmqpConnector.getNotifierForTopic | ( | String | topic | ) |
Starts to listen the given topic.
topic | Topic. |
IllegalArgumentException | Thrown if the topic is unknown. |
void eu.cocop.amqp2math.AmqpConnector.sendMessage | ( | String | topic, |
byte [] | msg | ||
) |
Sends a message to given topic.
topic | Topic. |
msg | Message. |
Before using this software, please make sure to read and understand LICENSE.txt.
COCOP - Coordinating Optimisation of Complex Industrial Processes
https://cocop-spire.eu/
This project has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 723661. This piece of software reflects only the authors' views, and the Commission is not responsible for any use that may be made of the information contained therein.