public class JMSConnections extends Object implements JMSConnectionsMBean
JMSConnections
service handles the list of known AMQP
servers, in order to keep live connections with them.Modifier and Type | Field and Description |
---|---|
private static org.objectweb.util.monolog.api.Logger |
logger |
(package private) static String |
SAVE_FILE_NAME |
private Map<String,JMSModule> |
servers |
Constructor and Description |
---|
JMSConnections() |
Modifier and Type | Method and Description |
---|---|
void |
addServer(String name,
String cnxFactoryName)
Adds a JMS server and starts a live connection with it, accessible using
the connection factory retrieved on the JNDI server.
|
void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl)
Adds a JMS server and starts a live connection with it, accessible using
the connection factory retrieved on the JNDI server.
|
void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl,
String user,
String password)
Adds a JMS server and starts a live connection with it, accessible using
the connection factory retrieved on the JNDI server.
|
void |
addServer(String name,
String cnxFactoryName,
String jndiFactoryClass,
String jndiUrl,
String user,
String password,
String clientID)
Adds a JMS server and starts a live connection with it, accessible using
the connection factory retrieved on the JNDI server.
|
void |
deleteServer(String name)
Removes the live connection to the specified AMQP server.
|
List<JMSModule> |
getConnections()
Gets the list of currently opened connections.
|
String[] |
getServerNames()
Gets the list of known servers.
|
(package private) void |
readSavedConf() |
void |
stop() |
private static final org.objectweb.util.monolog.api.Logger logger
static final String SAVE_FILE_NAME
void readSavedConf()
public void addServer(String name, String cnxFactoryName)
addServer
in interface JMSConnectionsMBean
name
- the name identifying the servercnxFactoryName
- the name identifying the connection factory on the
JNDI serverpublic void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl)
addServer
in interface JMSConnectionsMBean
name
- the name identifying the servercnxFactoryName
- the name identifying the connection factory on the
JNDI serverjndiFactoryClass
- the JNDI connection factory class namejndiUrl
- the JNDI URLpublic void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl, String user, String password)
addServer
in interface JMSConnectionsMBean
name
- the name identifying the servercnxFactoryName
- the name identifying the connection factory on the
JNDI serverjndiFactoryClass
- the JNDI connection factory class namejndiUrl
- the JNDI URLuser
- user namepassword
- user passwordpublic void addServer(String name, String cnxFactoryName, String jndiFactoryClass, String jndiUrl, String user, String password, String clientID)
addServer
in interface JMSConnectionsMBean
name
- the name identifying the servercnxFactoryName
- the name identifying the connection factory on the
JNDI serverjndiFactoryClass
- the JNDI connection factory class namejndiUrl
- the JNDI URLuser
- user namepassword
- user passwordclientID
- the client identifier for this connectionpublic void deleteServer(String name)
deleteServer
in interface JMSConnectionsMBean
name
- the name identifying the serverpublic String[] getServerNames()
getServerNames
in interface JMSConnectionsMBean
public List<JMSModule> getConnections()
public void stop()
Copyright © 2015 ScalAgent D.T.. All Rights Reserved.