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