Interface AmqpConnectionsMBean
-
- All Known Implementing Classes:
AmqpConnections
public interface AmqpConnectionsMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddServer(String name, String host, int port)Adds an AMQP server and starts a live connection with it, accessible via the host and port provided.voidaddServer(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.voiddeleteServer(String name)Removes the live connection to the specified AMQP server.String[]getServerNames()Gets the list of known servers.
-
-
-
Method Detail
-
addServer
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.- Parameters:
name- the name identifying the serverhost- host of the added serverport- port of the added server
-
addServer
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.- Parameters:
name- the name identifying the serverhost- host of the added serverport- port of the added serveruser- user namepass- user password
-
deleteServer
void deleteServer(String name)
Removes the live connection to the specified AMQP server.- Parameters:
name- the name identifying the server
-
getServerNames
String[] getServerNames()
Gets the list of known servers.
-
-