public abstract class AbstractConfiguration extends java.lang.Object implements WebConsoleConfiguration
Constructor and Description |
---|
AbstractConfiguration() |
Modifier and Type | Method and Description |
---|---|
javax.jms.ConnectionFactory |
getConnectionFactory()
The connection factory to use for sending/receiving messages.
|
java.lang.String |
getJmxPassword()
Password for the JMX-user.
|
java.util.Collection<javax.management.remote.JMXServiceURL> |
getJmxUrls()
The URL to the JMX connectors of the broker.
|
java.lang.String |
getJmxUser()
The user that is used in case of authenticated JMX connections.
|
protected javax.jms.ConnectionFactory |
makeConnectionFactory(java.lang.String jmsUrl,
java.lang.String jmsUser,
java.lang.String jmsPassword)
Creates the ActiveMQ-ConnectionFactory.
|
protected java.util.Collection<javax.management.remote.JMXServiceURL> |
makeJmxUrls(java.lang.String jmxUrls)
Splits the JMX-Url string into a series of JMSServiceURLs.
|
public javax.jms.ConnectionFactory getConnectionFactory()
WebConsoleConfiguration
getConnectionFactory
in interface WebConsoleConfiguration
null
public java.lang.String getJmxPassword()
WebConsoleConfiguration
getJmxPassword
in interface WebConsoleConfiguration
null
if no authenticationWebConsoleConfiguration.getJmxUser()
public java.util.Collection<javax.management.remote.JMXServiceURL> getJmxUrls()
WebConsoleConfiguration
getJmxUrls
in interface WebConsoleConfiguration
null
, must contain at least one entrypublic java.lang.String getJmxUser()
WebConsoleConfiguration
getJmxUser
in interface WebConsoleConfiguration
null
if no authentication should be used.protected javax.jms.ConnectionFactory makeConnectionFactory(java.lang.String jmsUrl, java.lang.String jmsUser, java.lang.String jmsPassword)
jmsUrl
- not null
jmsUser
- null
if no authenticationjmsPassword
- null
is oknull
protected java.util.Collection<javax.management.remote.JMXServiceURL> makeJmxUrls(java.lang.String jmxUrls)
jmxUrls
- the JMX-url, multiple URLs are separated by commas.null
, contains at least one element.Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.