Package org.apache.activemq.web.config
Class SystemPropertiesConfiguration
- java.lang.Object
-
- org.apache.activemq.web.config.AbstractConfiguration
-
- org.apache.activemq.web.config.SystemPropertiesConfiguration
-
- All Implemented Interfaces:
WebConsoleConfiguration
public class SystemPropertiesConfiguration extends AbstractConfiguration
Configuration based on system-properties.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_JMS_PASSWORDstatic StringPROPERTY_JMS_URLstatic StringPROPERTY_JMS_USERstatic StringPROPERTY_JMX_PASSWORDstatic StringPROPERTY_JMX_URLstatic StringPROPERTY_JMX_USER
-
Constructor Summary
Constructors Constructor Description SystemPropertiesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionFactorygetConnectionFactory()The connection factory to use for sending/receiving messages.StringgetJmxPassword()Password for the JMX-user.Collection<JMXServiceURL>getJmxUrls()The URL to the JMX connectors of the broker.StringgetJmxUser()The user that is used in case of authenticated JMX connections.-
Methods inherited from class org.apache.activemq.web.config.AbstractConfiguration
makeConnectionFactory, makeJmxUrls
-
-
-
-
Field Detail
-
PROPERTY_JMS_URL
public static final String PROPERTY_JMS_URL
- See Also:
- Constant Field Values
-
PROPERTY_JMS_USER
public static final String PROPERTY_JMS_USER
- See Also:
- Constant Field Values
-
PROPERTY_JMS_PASSWORD
public static final String PROPERTY_JMS_PASSWORD
- See Also:
- Constant Field Values
-
PROPERTY_JMX_URL
public static final String PROPERTY_JMX_URL
- See Also:
- Constant Field Values
-
PROPERTY_JMX_USER
public static final String PROPERTY_JMX_USER
- See Also:
- Constant Field Values
-
PROPERTY_JMX_PASSWORD
public static final String PROPERTY_JMX_PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
Description copied from interface:WebConsoleConfigurationThe connection factory to use for sending/receiving messages.- Specified by:
getConnectionFactoryin interfaceWebConsoleConfiguration- Overrides:
getConnectionFactoryin classAbstractConfiguration- Returns:
- not
null
-
getJmxUrls
public Collection<JMXServiceURL> getJmxUrls()
Description copied from interface:WebConsoleConfigurationThe URL to the JMX connectors of the broker. The names of any failover (master-slave configuration) must also be specified.- Specified by:
getJmxUrlsin interfaceWebConsoleConfiguration- Overrides:
getJmxUrlsin classAbstractConfiguration- Returns:
- not
null, must contain at least one entry
-
getJmxPassword
public String getJmxPassword()
Description copied from interface:WebConsoleConfigurationPassword for the JMX-user.- Specified by:
getJmxPasswordin interfaceWebConsoleConfiguration- Overrides:
getJmxPasswordin classAbstractConfiguration- Returns:
nullif no authentication- See Also:
WebConsoleConfiguration.getJmxUser()
-
getJmxUser
public String getJmxUser()
Description copied from interface:WebConsoleConfigurationThe user that is used in case of authenticated JMX connections. The user must be the same for all the brokers.- Specified by:
getJmxUserin interfaceWebConsoleConfiguration- Overrides:
getJmxUserin classAbstractConfiguration- Returns:
nullif no authentication should be used.
-
-