Class FileJMSConfiguration
java.lang.Object
org.apache.activemq.artemis.jms.server.config.impl.JMSConfigurationImpl
org.apache.activemq.artemis.jms.server.config.impl.FileJMSConfiguration
- All Implemented Interfaces:
Deployable,JMSConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildService(ActiveMQSecurityManager securityManager, MBeanServer mBeanServer, Map<String, Deployable> deployables, Map<String, ActiveMQComponent> components, ActivateCallback activateCallback) builds the service.The name of the root xml element for this Deployable, i.e. core or jmsThe schema that should be used to validate the xmlbooleanisParsed()has this Deployable been parsedprotected voidnewConfig(List<JMSQueueConfiguration> queues, List<TopicConfiguration> topics, String domain) protected static JMSQueueConfigurationprotected static TopicConfigurationvoidparse the element from the xml configurationvoidparseConfiguration(Node rootnode) Parse the JMS Configuration XMLstatic JMSQueueConfigurationparseQueueConfiguration(Node node) Parse the Queue Configuration node as a QueueConfiguration objectstatic TopicConfigurationparseTopicConfiguration(Node node) Parse the topic node as a TopicConfiguration objectMethods inherited from class org.apache.activemq.artemis.jms.server.config.impl.JMSConfigurationImpl
getConfigurationUrl, getConnectionFactoryConfigurations, getDomain, getQueueConfigurations, getTopicConfigurations, setConfigurationUrl, setConnectionFactoryConfigurations, setDomain, setQueueConfigurations, setTopicConfigurations
-
Constructor Details
-
FileJMSConfiguration
public FileJMSConfiguration()
-
-
Method Details
-
parse
Description copied from interface:Deployableparse the element from the xml configuration- Specified by:
parsein interfaceDeployable- Throws:
Exception
-
isParsed
public boolean isParsed()Description copied from interface:Deployablehas this Deployable been parsed- Specified by:
isParsedin interfaceDeployable
-
getRootElement
Description copied from interface:DeployableThe name of the root xml element for this Deployable, i.e. core or jms- Specified by:
getRootElementin interfaceDeployable
-
buildService
public void buildService(ActiveMQSecurityManager securityManager, MBeanServer mBeanServer, Map<String, Deployable> deployables, Map<String, throws ExceptionActiveMQComponent> components, ActivateCallback activateCallback) Description copied from interface:Deployablebuilds the service. The implementation should add a component to the components map passed in if it needs to.- Specified by:
buildServicein interfaceDeployable- Throws:
Exception
-
getSchema
Description copied from interface:DeployableThe schema that should be used to validate the xml- Specified by:
getSchemain interfaceDeployable
-
parseConfiguration
Parse the JMS Configuration XML- Throws:
Exception
-
parseTopicConfiguration
Parse the topic node as a TopicConfiguration object- Returns:
- topic configuration
- Throws:
Exception
-
parseQueueConfiguration
Parse the Queue Configuration node as a QueueConfiguration object- Returns:
- jms queue configuration
- Throws:
Exception
-
newTopic
-
newQueue
protected static JMSQueueConfiguration newQueue(String queueName, String selectorString, boolean durable) -
newConfig
protected void newConfig(List<JMSQueueConfiguration> queues, List<TopicConfiguration> topics, String domain)
-