Class AmqpConnections

    • Constructor Detail

      • AmqpConnections

        AmqpConnections()
    • Method Detail

      • readSavedConf

        void readSavedConf()
      • addServer

        public void addServer​(String name,
                              String host,
                              int port)
        Adds an AMQP server and starts a live connection with it, accessible via the host and port provided. A server is uniquely identified by the given name. Adding an existing server won't do anything.
        Specified by:
        addServer in interface AmqpConnectionsMBean
        Parameters:
        name - the name identifying the server
        host - host of the added server
        port - port of the added server
      • addServer

        public void addServer​(String name,
                              String host,
                              int port,
                              String user,
                              String pass)
        Adds an AMQP server and starts a live connection with it, accessible via the host and port provided. A server is uniquely identified by the given name. Adding an existing server won't do anything.
        Specified by:
        addServer in interface AmqpConnectionsMBean
        Parameters:
        name - the name identifying the server
        host - host of the added server
        port - port of the added server
        user - user name
        pass - user password
      • deleteServer

        public void deleteServer​(String name)
        Removes the live connection to the specified AMQP server.
        Specified by:
        deleteServer in interface AmqpConnectionsMBean
        Parameters:
        name - the name identifying the server
      • getConnections

        public List<LiveServerConnection> getConnections()
        Gets the list of currently opened connections.
        Returns:
        the list of usable connections.
      • stop

        public void stop()