Class JMSServerManagerImpl
java.lang.Object
org.apache.activemq.artemis.core.server.impl.CleaningActivateCallback
org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl
- All Implemented Interfaces:
org.apache.activemq.artemis.core.server.ActivateCallback,org.apache.activemq.artemis.core.server.ActiveMQComponent,JMSServerManager
@Deprecated
public class JMSServerManagerImpl
extends org.apache.activemq.artemis.core.server.impl.CleaningActivateCallback
implements JMSServerManager
Deprecated.
A Deployer used to create and add to Bindings queues, topics and connection factories. Typically this would only be
used in an app server env.
JMS Connection Factories and Destinations can be configured either using configuration files or using a JMSConfiguration object.
If configuration files are used, JMS resources are redeployed if the files content is changed. If a JMSConfiguration object is used, the JMS resources can not be redeployed.
-
Constructor Summary
ConstructorsConstructorDescriptionJMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server) Deprecated.JMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server, JMSConfiguration configuration) Deprecated.JMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server, BindingRegistry registry) Deprecated.This constructor is used by the Application Server's integration -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.voidaddAddressSettings(String address, org.apache.activemq.artemis.core.settings.impl.AddressSettings addressSettings) Deprecated.booleanaddConnectionFactoryToBindingRegistry(String name, String registryBinding) Deprecated.booleanaddQueueToBindingRegistry(String queueName, String registryBinding) Deprecated.voidaddSecurity(String addressMatch, Set<org.apache.activemq.artemis.core.security.Role> roles) Deprecated.booleanaddTopicToBindingRegistry(String topicName, String registryBinding) Deprecated.booleancloseConnectionsForAddress(String ipAddress) Deprecated.booleancloseConnectionsForUser(String userName) Deprecated.booleancloseConsumerConnectionsForAddress(String address) Deprecated.voidcreateConnectionFactory(boolean storeConfig, ConnectionFactoryConfiguration cfConfig, String... bindings) Deprecated.voidcreateConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String... registryBindings) Deprecated.voidcreateConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessages, int compressionLevel, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... registryBindings) Deprecated.voidcreateConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String... registryBindings) Deprecated.voidcreateConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessage, int compressionLevel, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... registryBindings) Deprecated.booleancreateQueue(boolean storeConfig, String queueName, String selectorString, boolean durable, String... bindings) Deprecated.Creates a JMS Queue.booleancreateQueue(boolean storeConfig, String queueName, String jmsQueueName, String selectorString, boolean durable, String... bindings) Deprecated.Creates a JMS Queue.booleancreateTopic(boolean storeConfig, String address, boolean autoCreated, String... bindings) Deprecated.booleancreateTopic(boolean storeConfig, String address, String... bindings) Deprecated.Creates a JMS TopicbooleancreateTopic(boolean storeConfig, String address, String topicName, boolean autoCreated, String... bindings) Deprecated.booleancreateTopic(String address, boolean storeConfig, String topicName, String... bindings) Deprecated.Creates a JMS TopicvoidDeprecated.booleanDeprecated.destroys a connection factory.booleandestroyQueue(String name) Deprecated.destroys a queue and removes it from the BindingRegistrybooleandestroyQueue(String name, boolean removeConsumers) Deprecated.destroys a queue and removes it from the BindingRegistry.booleandestroyTopic(String name) Deprecated.destroys a topic and removes it from theBindingRegistrybooleandestroyTopic(String name, boolean removeConsumers) Deprecated.destroys a topic and removes it from the BindingRegistryorg.apache.activemq.artemis.core.server.ActiveMQServerDeprecated.org.apache.activemq.artemis.core.settings.impl.AddressSettingsgetAddressSettings(String address) Deprecated.String[]getBindingsOnConnectionFactory(String factoryName) Deprecated.String[]getBindingsOnQueue(String queue) Deprecated.String[]getBindingsOnTopic(String topic) Deprecated.Deprecated.Deprecated.Set<org.apache.activemq.artemis.core.security.Role>getSecurity(String addressMatch) Deprecated.Deprecated.protected ActiveMQConnectionFactoryDeprecated.protected booleaninternalCreateJMSQueue(boolean storeConfig, String queueName, String jmsQueueName, String selectorString, boolean durable, boolean autoCreated, String... bindings) Deprecated.booleanDeprecated.Has the Server been started.String[]Deprecated.Deprecated.Deprecated.String[]Deprecated.String[]listRemoteAddresses(String ipAddress) Deprecated.String[]listSessions(String connectionID) Deprecated.listSessionsAsJSON(String connectionID) Deprecated.voidrecoverregistryBindings(String name, PersistedType type) Deprecated.recreateCF(String name, ConnectionFactoryConfiguration cf) Deprecated.Call this method to have a CF rebound to the Binding Registry and stored on the JournalbooleanDeprecated.booleanremoveConnectionFactoryFromBindingRegistry(String name, String bindings) Deprecated.booleanDeprecated.Remove the queue from the BindingRegistry.booleanremoveQueueFromBindingRegistry(String name, String bindings) Deprecated.Remove the queue from the BindingRegistry.booleanDeprecated.Remove the topic from the BindingRegistry.booleanremoveTopicFromBindingRegistry(String name, String bindings) Deprecated.Remove the topic from the Binding Registry or BindingRegistry.voidreplaceStorageManager(JMSStorageManager newStorage) Deprecated.voidsetRegistry(BindingRegistry registry) Deprecated.Set this property if you want JMS resources bound to a registryprotected booleanDeprecated.voidstart()Deprecated.Notice that this component has astartCalledboolean to control its internal life-cycle, but itsisStarted()returns the value ofserver.isStarted()and not the value ofstartCalled.voidstop()Deprecated.Methods inherited from class org.apache.activemq.artemis.core.server.impl.CleaningActivateCallback
shutdown, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActivateCallback
preActivate, preDeActivateMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
JMSServerManagerImpl
public JMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server) throws Exception Deprecated.- Throws:
Exception
-
JMSServerManagerImpl
public JMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server, BindingRegistry registry) throws Exception Deprecated.This constructor is used by the Application Server's integration- Throws:
Exception
-
JMSServerManagerImpl
public JMSServerManagerImpl(org.apache.activemq.artemis.core.server.ActiveMQServer server, JMSConfiguration configuration) throws Exception Deprecated.- Throws:
Exception
-
-
Method Details
-
activated
public void activated()Deprecated.- Specified by:
activatedin interfaceorg.apache.activemq.artemis.core.server.ActivateCallback
-
deActivate
public void deActivate()Deprecated.- Specified by:
deActivatein interfaceorg.apache.activemq.artemis.core.server.ActivateCallback
-
activationComplete
public void activationComplete()Deprecated.- Specified by:
activationCompletein interfaceorg.apache.activemq.artemis.core.server.ActivateCallback
-
recoverregistryBindings
Deprecated.- Throws:
NamingException
-
start
Deprecated.Notice that this component has astartCalledboolean to control its internal life-cycle, but itsisStarted()returns the value ofserver.isStarted()and not the value ofstartCalled.This method and
server.start()are interdependent in the following way:start()is called, it setsstart_called=true, and callsActiveMQServerImpl.start()ActiveMQServerImpl.start()will callactivated()activated()checks the value ofstartCalled, which must already be true.
- Specified by:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
stop
Deprecated.- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
Exception
-
isStarted
public boolean isStarted()Deprecated.Description copied from interface:JMSServerManagerHas the Server been started.- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Specified by:
isStartedin interfaceJMSServerManager- Returns:
- true if the server us running
-
getRegistry
Deprecated.- Specified by:
getRegistryin interfaceJMSServerManager
-
setRegistry
Deprecated.Description copied from interface:JMSServerManagerSet this property if you want JMS resources bound to a registry- Specified by:
setRegistryin interfaceJMSServerManager
-
getActiveMQServer
public org.apache.activemq.artemis.core.server.ActiveMQServer getActiveMQServer()Deprecated.- Specified by:
getActiveMQServerin interfaceJMSServerManager
-
addAddressSettings
public void addAddressSettings(String address, org.apache.activemq.artemis.core.settings.impl.AddressSettings addressSettings) Deprecated.- Specified by:
addAddressSettingsin interfaceJMSServerManager
-
getAddressSettings
public org.apache.activemq.artemis.core.settings.impl.AddressSettings getAddressSettings(String address) Deprecated.- Specified by:
getAddressSettingsin interfaceJMSServerManager
-
addSecurity
public void addSecurity(String addressMatch, Set<org.apache.activemq.artemis.core.security.Role> roles) Deprecated.- Specified by:
addSecurityin interfaceJMSServerManager
-
getSecurity
Deprecated.- Specified by:
getSecurityin interfaceJMSServerManager
-
getVersion
Deprecated.- Specified by:
getVersionin interfaceJMSServerManager
-
createQueue
public boolean createQueue(boolean storeConfig, String queueName, String selectorString, boolean durable, String... bindings) throws Exception Deprecated.Description copied from interface:JMSServerManagerCreates a JMS Queue.- Specified by:
createQueuein interfaceJMSServerManagerqueueName- The name of the queue to create- Returns:
- true if the queue is created or if it existed and was added to the Binding Registry
- Throws:
Exception- if problems were encountered creating the queue.
-
createQueue
public boolean createQueue(boolean storeConfig, String queueName, String jmsQueueName, String selectorString, boolean durable, String... bindings) throws Exception Deprecated.Description copied from interface:JMSServerManagerCreates a JMS Queue.- Specified by:
createQueuein interfaceJMSServerManagerqueueName- The name of the core queue to createjmsQueueName- the name of this JMS queue- Returns:
- true if the queue is created or if it existed and was added to the Binding Registry
- Throws:
Exception- if problems were encountered creating the queue.
-
internalCreateJMSQueue
protected boolean internalCreateJMSQueue(boolean storeConfig, String queueName, String jmsQueueName, String selectorString, boolean durable, boolean autoCreated, String... bindings) throws Exception Deprecated.- Throws:
Exception
-
createTopic
public boolean createTopic(boolean storeConfig, String address, String... bindings) throws Exception Deprecated.Description copied from interface:JMSServerManagerCreates a JMS Topic- Specified by:
createTopicin interfaceJMSServerManageraddress- the core addres of thetopicbindings- the names of the binding for the Binding Registry or BindingRegistry- Returns:
- true if the topic was created or if it existed and was added to the Binding Registry
- Throws:
Exception- if a problem occurred creating the topic
-
createTopic
public boolean createTopic(String address, boolean storeConfig, String topicName, String... bindings) throws Exception Deprecated.Description copied from interface:JMSServerManagerCreates a JMS Topic- Specified by:
createTopicin interfaceJMSServerManager- Parameters:
address- the core addres of thetopictopicName- the name of the topicbindings- the names of the binding for the Binding Registry or BindingRegistry- Returns:
- true if the topic was created or if it existed and was added to the Binding Registry
- Throws:
Exception- if a problem occurred creating the topic
-
createTopic
public boolean createTopic(boolean storeConfig, String address, boolean autoCreated, String... bindings) throws Exception Deprecated.- Specified by:
createTopicin interfaceJMSServerManager- Throws:
Exception
-
createTopic
public boolean createTopic(boolean storeConfig, String address, String topicName, boolean autoCreated, String... bindings) throws Exception Deprecated.- Specified by:
createTopicin interfaceJMSServerManager- Throws:
Exception
-
addTopicToBindingRegistry
Deprecated.- Specified by:
addTopicToBindingRegistryin interfaceJMSServerManager- Throws:
Exception
-
getBindingsOnQueue
Deprecated.- Specified by:
getBindingsOnQueuein interfaceJMSServerManager
-
getBindingsOnTopic
Deprecated.- Specified by:
getBindingsOnTopicin interfaceJMSServerManager
-
getBindingsOnConnectionFactory
Deprecated.- Specified by:
getBindingsOnConnectionFactoryin interfaceJMSServerManager
-
addQueueToBindingRegistry
Deprecated.- Specified by:
addQueueToBindingRegistryin interfaceJMSServerManager- Throws:
Exception
-
addConnectionFactoryToBindingRegistry
public boolean addConnectionFactoryToBindingRegistry(String name, String registryBinding) throws Exception Deprecated.- Specified by:
addConnectionFactoryToBindingRegistryin interfaceJMSServerManager- Throws:
Exception
-
removeQueueFromBindingRegistry
Deprecated.Description copied from interface:JMSServerManagerRemove the queue from the BindingRegistry. Calling this method does not destroy the destination.- Specified by:
removeQueueFromBindingRegistryin interfaceJMSServerManager- Parameters:
name- the name of the destination to remove from the BindingRegistry- Returns:
- true if removed
- Throws:
Exception- if a problem occurred removing the destination
-
removeQueueFromBindingRegistry
Deprecated.Description copied from interface:JMSServerManagerRemove the queue from the BindingRegistry. Calling this method does not destroy the destination.- Specified by:
removeQueueFromBindingRegistryin interfaceJMSServerManager- Parameters:
name- the name of the destination to remove from the BindingRegistry- Returns:
- true if removed
- Throws:
Exception- if a problem occurred removing the destination
-
removeTopicFromBindingRegistry
Deprecated.Description copied from interface:JMSServerManagerRemove the topic from the Binding Registry or BindingRegistry. Calling this method does not destroy the destination.- Specified by:
removeTopicFromBindingRegistryin interfaceJMSServerManager- Parameters:
name- the name of the destination to remove from the BindingRegistry- Returns:
- true if removed
- Throws:
Exception- if a problem occurred removing the destination
-
removeTopicFromBindingRegistry
Deprecated.Description copied from interface:JMSServerManagerRemove the topic from the BindingRegistry. Calling this method does not destroy the destination.- Specified by:
removeTopicFromBindingRegistryin interfaceJMSServerManager- Parameters:
name- the name of the destination to remove from the BindingRegistry- Returns:
- true if removed
- Throws:
Exception- if a problem occurred removing the destination
-
removeConnectionFactoryFromBindingRegistry
public boolean removeConnectionFactoryFromBindingRegistry(String name, String bindings) throws Exception Deprecated.- Specified by:
removeConnectionFactoryFromBindingRegistryin interfaceJMSServerManager- Throws:
Exception
-
removeConnectionFactoryFromBindingRegistry
Deprecated.- Specified by:
removeConnectionFactoryFromBindingRegistryin interfaceJMSServerManager- Throws:
Exception
-
destroyQueue
Deprecated.Description copied from interface:JMSServerManagerdestroys a queue and removes it from the BindingRegistry- Specified by:
destroyQueuein interfaceJMSServerManager- Parameters:
name- the name of the queue to destroy- Returns:
- true if destroyed
- Throws:
Exception- if a problem occurred destroying the queue
-
destroyQueue
Deprecated.Description copied from interface:JMSServerManagerdestroys a queue and removes it from the BindingRegistry. disconnects any consumers connected to the queue.- Specified by:
destroyQueuein interfaceJMSServerManager- Parameters:
name- the name of the queue to destroy- Returns:
- true if destroyed
- Throws:
Exception- if a problem occurred destroying the queue
-
destroyTopic
Deprecated.Description copied from interface:JMSServerManagerdestroys a topic and removes it from theBindingRegistry- Specified by:
destroyTopicin interfaceJMSServerManager- Parameters:
name- the name of the topic to destroy- Returns:
- true if the topic was destroyed
- Throws:
Exception- if a problem occurred destroying the topic
-
destroyTopic
Deprecated.Description copied from interface:JMSServerManagerdestroys a topic and removes it from the BindingRegistry- Specified by:
destroyTopicin interfaceJMSServerManager- Parameters:
name- the name of the topic to destroy- Returns:
- true if the topic was destroyed
- Throws:
Exception- if a problem occurred destroying the topic
-
createConnectionFactory
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String... registryBindings) throws Exception Deprecated.- Specified by:
createConnectionFactoryin interfaceJMSServerManager- Throws:
Exception
-
createConnectionFactory
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, List<String> connectorNames, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessage, int compressionLevel, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... registryBindings) throws Exception Deprecated.- Specified by:
createConnectionFactoryin interfaceJMSServerManager- Throws:
Exception
-
createConnectionFactory
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String clientID, long clientFailureCheckPeriod, long connectionTTL, long callTimeout, long callFailoverTimeout, boolean cacheLargeMessagesClient, int minLargeMessageSize, boolean compressLargeMessages, int compressionLevel, int consumerWindowSize, int consumerMaxRate, int confirmationWindowSize, int producerWindowSize, int producerMaxRate, boolean blockOnAcknowledge, boolean blockOnDurableSend, boolean blockOnNonDurableSend, boolean autoGroup, boolean preAcknowledge, String loadBalancingPolicyClassName, int transactionBatchSize, int dupsOKBatchSize, boolean useGlobalPools, int scheduledThreadPoolMaxSize, int threadPoolMaxSize, long retryInterval, double retryIntervalMultiplier, long maxRetryInterval, int reconnectAttempts, boolean failoverOnInitialConnection, String groupId, String... registryBindings) throws Exception Deprecated.- Specified by:
createConnectionFactoryin interfaceJMSServerManager- Throws:
Exception
-
createConnectionFactory
public void createConnectionFactory(String name, boolean ha, JMSFactoryType cfType, String discoveryGroupName, String... registryBindings) throws Exception Deprecated.- Specified by:
createConnectionFactoryin interfaceJMSServerManager- Throws:
Exception
-
recreateCF
public ActiveMQConnectionFactory recreateCF(String name, ConnectionFactoryConfiguration cf) throws Exception Deprecated.Description copied from interface:JMSServerManagerCall this method to have a CF rebound to the Binding Registry and stored on the Journal- Specified by:
recreateCFin interfaceJMSServerManager- Throws:
Exception
-
createConnectionFactory
public void createConnectionFactory(boolean storeConfig, ConnectionFactoryConfiguration cfConfig, String... bindings) throws Exception Deprecated.- Specified by:
createConnectionFactoryin interfaceJMSServerManager- Throws:
Exception
-
getJMSStorageManager
Deprecated. -
replaceStorageManager
Deprecated. -
internalCreateCFPOJO
protected ActiveMQConnectionFactory internalCreateCFPOJO(ConnectionFactoryConfiguration cfConfig) throws ActiveMQException Deprecated.- Throws:
ActiveMQException
-
destroyConnectionFactory
Deprecated.Description copied from interface:JMSServerManagerdestroys a connection factory.- Specified by:
destroyConnectionFactoryin interfaceJMSServerManager- Parameters:
name- the name of the connection factory to destroy- Returns:
- true if the connection factory was destroyed
- Throws:
Exception- if a problem occurred destroying the connection factory
-
shutdownConnectionFactory
Deprecated.- Throws:
Exception
-
listRemoteAddresses
Deprecated.- Specified by:
listRemoteAddressesin interfaceJMSServerManager- Throws:
Exception
-
listRemoteAddresses
Deprecated.- Specified by:
listRemoteAddressesin interfaceJMSServerManager- Throws:
Exception
-
closeConnectionsForAddress
Deprecated.- Specified by:
closeConnectionsForAddressin interfaceJMSServerManager- Throws:
Exception
-
closeConsumerConnectionsForAddress
Deprecated.- Specified by:
closeConsumerConnectionsForAddressin interfaceJMSServerManager- Throws:
Exception
-
closeConnectionsForUser
Deprecated.- Specified by:
closeConnectionsForUserin interfaceJMSServerManager- Throws:
Exception
-
listConnectionIDs
Deprecated.- Specified by:
listConnectionIDsin interfaceJMSServerManager- Throws:
Exception
-
listSessions
Deprecated.- Specified by:
listSessionsin interfaceJMSServerManager- Throws:
Exception
-
listSessionsAsJSON
Deprecated.- Specified by:
listSessionsAsJSONin interfaceJMSServerManager- Throws:
Exception
-
listPreparedTransactionDetailsAsJSON
Deprecated.- Specified by:
listPreparedTransactionDetailsAsJSONin interfaceJMSServerManager- Throws:
Exception
-
listPreparedTransactionDetailsAsHTML
Deprecated.- Specified by:
listPreparedTransactionDetailsAsHTMLin interfaceJMSServerManager- Throws:
Exception
-