Class ActiveMQServerImpl
java.lang.Object
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl
- All Implemented Interfaces:
ActiveMQComponent,ActiveMQServer,ServiceComponent
The ActiveMQ Artemis server implementation
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.activemq.artemis.core.server.ActiveMQServer
ActiveMQServer.SERVER_STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutorFactorystatic final StringDeprecated.static final Stringprotected final IOCriticalErrorListenerprotected ExecutorFactoryThis is a thread pool for io tasks only.protected ExecutorFactoryThis is a thread pool for page only tasks only.protected ExecutorServiceprotected ScheduledExecutorService -
Constructor Summary
ConstructorsConstructorDescriptionActiveMQServerImpl(Configuration configuration) ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer) ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager) ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer) ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer, ServiceRegistry serviceRegistry) ActiveMQServerImpl(Configuration configuration, ActiveMQServer parentServer) ActiveMQServerImpl(Configuration configuration, ActiveMQSecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivationParam(String key, Object val) booleanaddAddressInfo(AddressInfo addressInfo) Add theAddressInfoto the brokerbooleanaddClientConnection(String clientId, boolean unique) voidaddExternalComponent(ActiveMQComponent externalComponent, boolean start) Adding external components is allowed only if the stateisn'tActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPING.addOrUpdateAddressInfo(AddressInfo addressInfo) A convenience method to combine the functionality ofaddAddressInfoandupdateAddressInfo.voidadd a ProtocolManagerFactory to be used.addressQuery(SimpleString name) voidaddScaledDownNode(SimpleString scaledDownNodeId) voidautoRemoveAddressInfo(SimpleString address, SecurityAuth auth) Remove anAddressInfofrom the broker.bindingQuery(SimpleString address, boolean newFQQN) voidAlert activation failure listeners of a failure.voidvoidvoidvoidvoidvoidvoidvoidvoidbooleancallBrokerMessagePluginsCanAccept(ServerConsumer serverConsumer, MessageReference messageReference) voidcallBrokerPlugins(ActiveMQPluginRunnable pluginRun) voidvoidvoidvoidcallPostQueueCreationCallbacks(SimpleString queueName) voidcallPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) booleancheckBrokerIsNotColocated(String nodeId) voidCheck if journal directory exists or create it (if configured to do so)voidcheckQueueCreationLimit(String username) voidvoidcompleteActivation(boolean replicated) createBackupServer(Configuration configuration) createInternalSession(String name, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString, RoutingType> prefixes, String securityDomain, boolean isLegacyProducer) This is to be used in places where security is bypassed, like internal sessions, broker connections, etc...protected NodeManagercreateNodeManager(File directory, boolean replicatingBackup) createQueue(QueueConfiguration queueConfiguration) Overloaded version ofActiveMQServer.createQueue(QueueConfiguration, boolean)where thebooleanparameter is alwaysfalse(i.e. if the queue already exists then an exception will be thrown).createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) This method creates a queue based on theQueueConfigurationinput.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) Deprecated.createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) Deprecated.createQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) Deprecated.createQueue(AddressInfo addrInfo, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, boolean configurationManaged, long ringSize) Deprecated.createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) Deprecated.createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue, boolean autoCreateAddress) Deprecated.createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) Deprecated.createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress, Long ringSize) Deprecated.createSession(String name, String username, String password, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString, RoutingType> prefixes, String securityDomain, String validatedUser, boolean isLegacyProducer) voidcreateSharedQueue(QueueConfiguration queueConfiguration) This method is essentially the same asActiveMQServer.createQueue(QueueConfiguration, boolean)with a few key exceptions.voidcreateSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) Deprecated.voidcreateSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue) Deprecated.voidcreateSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount) Deprecated.voidcreateSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount) Deprecated.protected StorageManagerThis method is protected as it may be used as a hook for creating a custom storage manager (on tests for instance)booleandeployBridge(BridgeConfiguration config) deployDivert(DivertConfiguration config) voiddeployQueue(String address, String resourceName, String filterString, boolean durable, boolean temporary) Deprecated.deployQueue(SimpleString address, SimpleString resourceName, SimpleString filterString, boolean durable, boolean temporary) Deprecated.describe()voiddestroyBridge(String name) destroyConnectionWithSessionMetadata(String metaKey, String parameterValue) voiddestroyDivert(SimpleString name) voiddestroyDivert(SimpleString name, boolean deleteFromStorage) voiddestroyQueue(SimpleString queueName) voiddestroyQueue(SimpleString queueName, SecurityAuth session) voiddestroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) voiddestroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) voiddestroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress) voiddestroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress, boolean checkMessageCount) final voidfail(boolean failoverOnServerShutdown) Returns the resource to manage this ActiveMQ Artemis server.getAddressInfo(SimpleString address) A Callback for testsprotected BrokerConnectiongetBrokerConnection(String name) intdoubleThe server has a default listener that will propagate errors to registered listeners.protected PagingStoreFactoryintintgetQueueCountForUser(String username) getRuntimeTempQueueNamespace(boolean temporary) getSessionByID(String sessionName) intgetSessions(String connectionID) getState()longlonglonglonglonglonglongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasScaledDown(SimpleString scaledDownNodeId) protected voidvoidinjectMonitor(FileStoreMonitor storeMonitor) This method exists for a possibility of test cases replacing the FileStoreMonitor for an extension that would for instance pretend a disk full on certain tests.voidinstallMirrorController(MirrorController mirrorController) protected ServerSessionImplinternalCreateSession(String name, String username, String password, String validatedUser, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, OperationContext context, boolean autoCreateQueues, Map<SimpleString, RoutingType> prefixes, String securityDomain, boolean isLegacyProducer) voidinterruptActivationThread(NodeManager nodeManagerInUse) booleanisActive()booleanisAddressBound(String address) Returnstrueif there is a binding for this address (i.e. if there is a created queue).booleanshould the server rebuild page counters upon startup. this will be useful on testing or an embedded broker scenariobooleanReturns whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server.booleanlocateQueue(String address, String queue) locateQueue(SimpleString queueName) voidit will hold a lock for the activation.lookupSession(String key, String value) Returns a session containing the meta-key and meata-value.queueQuery(SimpleString name) voidregisterActivateCallback(ActivateCallback callback) voidRegister a listener to detect problems during activationvoidregisterBrokerConnection(BrokerConnection brokerConnection) voidvoidvoidRegister a listener to detect I/O Critical errorsvoidRegister aPostQueueDeletionCallbackto be called after a queue is created.voidRegister aPostQueueDeletionCallbackto be called after a queue is deleted.voidregisterQueueOnManagement(Queue queue) Register a queue on the management registryvoidregisterRecordsLoader(Consumer<RecordInfo> recordsLoader) voidvoidvoidremoveAddressInfo(SimpleString address, SecurityAuth auth) Remove anAddressInfofrom the broker.voidremoveAddressInfo(SimpleString address, SecurityAuth auth, boolean force) Remove anAddressInfofrom the broker.voidremoveClientConnection(String clientId) voidvoidvoidremoveSession(String name) voidreplaceQueueFactory(QueueFactory factory) For tests only, don't use this method as it's not part of the APIvoidvoidvoidscanAddresses(MirrorController mirrorController) This method will scan all queues and addresses. it is supposed to be called before the mirrorController is startedvoidsetActivation(Activation activation) setAfterActivationCreated(Runnable afterActivationCreated) A Callback for testsvoidsetGroupingHandler(GroupingHandler groupingHandler) voidsetHAPolicy(HAPolicy haPolicy) voidsetIdentity(String identity) Sets the server identity.voidsetMBeanServer(MBeanServer mbeanServer) voidsetProperties(String fileUrltoBrokerProperties) voidsetRebuildCounters(boolean rebuildCounters) should the server rebuild page counters upon startup. this will be useful on testing or an embedded broker scenariovoidsetSecurityManager(ActiveMQSecurityManager securityManager) voidfinal voidstart()voidstartBrokerConnection(String name) voidstop()voidstop(boolean isShutdown) final voidstop(boolean failoverOnServerShutdown, boolean isExit) voidstop(boolean failoverOnServerShutdown, boolean criticalIOError, boolean restarting) voidstopBrokerConnection(String name) final voidstopTheServer(boolean criticalIOError) Stops the server in a different thread.voidtoString()voidundeployFederation(String name) voidit will release hold a lock for the activation.voidunregisterActivateCallback(ActivateCallback callback) voidRemove a previously registered failure listenervoidunregisterBrokerConnection(BrokerConnection brokerConnection) Removes the given broker connection from the tracked set of active broker connection entries.voidvoidUnregister aPostQueueCreationCallback.voidUnregister aPostQueueDeletionCallback.booleanupdateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) booleanupdateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) Updates anAddressInfoon the broker with the specified routing types.updateDivert(DivertConfiguration config) updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) Deprecated.updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) Deprecated.updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) Deprecated.updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) Deprecated.updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) Deprecated.updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize) Deprecated.updateQueue(QueueConfiguration queueConfiguration) Update the queue named in theQueueConfigurationwith the corresponding properties.updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) Update a queue's configuration.voidupdateStatus(String component, String statusJson) validateUser(String username, String password, RemotingConnection connection, String securityDomain) booleanwaitForActivation(long timeout, TimeUnit unit) Wait for server initialization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStopMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQServer
bindingQuery, locateQueue
-
Field Details
-
INTERNAL_NAMING_PREFIX
- See Also:
-
GENERIC_IGNORED_FILTER
Deprecated.Replaced byFilter.GENERIC_IGNORED_FILTERJMS Topics (which are outside of the scope of the core API) will require a dumb subscription with a dummy-filter at this current version as a way to keep its existence valid and TCK tests. That subscription needs an invalid filter, however paging needs to ignore any subscription with this filter. For that reason, this filter needs to be rejected on paging or any other component on the system, and just be ignored for any purpose It's declared here as this filter is considered a global ignore- See Also:
-
scheduledPool
-
executorFactory
-
ioExecutorFactory
This is a thread pool for io tasks only. We can't use the same global executor to avoid starvations. -
pageExecutorFactory
This is a thread pool for page only tasks only. This is because we have to limit parallel reads on paging. -
pageExecutorPool
-
ioCriticalErrorListener
-
-
Constructor Details
-
ActiveMQServerImpl
public ActiveMQServerImpl() -
ActiveMQServerImpl
-
ActiveMQServerImpl
-
ActiveMQServerImpl
-
ActiveMQServerImpl
-
ActiveMQServerImpl
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager) -
ActiveMQServerImpl
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer) -
ActiveMQServerImpl
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer, ServiceRegistry serviceRegistry)
-
-
Method Details
-
getReloadManager
- Specified by:
getReloadManagerin interfaceActiveMQServer
-
getNetworkHealthCheck
- Specified by:
getNetworkHealthCheckin interfaceActiveMQServer
-
setRebuildCounters
public void setRebuildCounters(boolean rebuildCounters) Description copied from interface:ActiveMQServershould the server rebuild page counters upon startup. this will be useful on testing or an embedded broker scenario- Specified by:
setRebuildCountersin interfaceActiveMQServer
-
isRebuildCounters
public boolean isRebuildCounters()Description copied from interface:ActiveMQServershould the server rebuild page counters upon startup. this will be useful on testing or an embedded broker scenario- Specified by:
isRebuildCountersin interfaceActiveMQServer
-
replay
public void replay(Date start, Date end, String address, String target, String filter) throws Exception - Specified by:
replayin interfaceActiveMQServer- Throws:
Exception
-
registerRecordsLoader
- Specified by:
registerRecordsLoaderin interfaceActiveMQServer
-
getAfterActivationCreated
A Callback for tests -
setAfterActivationCreated
A Callback for tests -
createNodeManager
-
newOperationContext
- Specified by:
newOperationContextin interfaceActiveMQServer
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
reloadNetworkHealthCheck
public void reloadNetworkHealthCheck() -
getCriticalAnalyzer
- Specified by:
getCriticalAnalyzerin interfaceActiveMQServer
-
setProperties
- Specified by:
setPropertiesin interfaceActiveMQServer
-
getStatus
- Specified by:
getStatusin interfaceActiveMQServer
-
updateStatus
- Specified by:
updateStatusin interfaceActiveMQServer
-
initializeCriticalAnalyzer
- Throws:
Exception
-
unlockActivation
public void unlockActivation()Description copied from interface:ActiveMQServerit will release hold a lock for the activation.- Specified by:
unlockActivationin interfaceActiveMQServer
-
lockActivation
public void lockActivation()Description copied from interface:ActiveMQServerit will hold a lock for the activation. This will prevent the activation from happening.- Specified by:
lockActivationin interfaceActiveMQServer
-
setState
- Specified by:
setStatein interfaceActiveMQServer
-
getState
- Specified by:
getStatein interfaceActiveMQServer
-
interruptActivationThread
- Throws:
InterruptedException
-
resetNodeManager
- Throws:
Exception
-
getActivation
- Specified by:
getActivationin interfaceActiveMQServer
-
getHAPolicy
- Specified by:
getHAPolicyin interfaceActiveMQServer
-
setHAPolicy
- Specified by:
setHAPolicyin interfaceActiveMQServer
-
setMBeanServer
- Specified by:
setMBeanServerin interfaceActiveMQServer
-
getMBeanServer
- Specified by:
getMBeanServerin interfaceActiveMQServer
-
setSecurityManager
- Specified by:
setSecurityManagerin interfaceActiveMQServer
-
addExternalComponent
public void addExternalComponent(ActiveMQComponent externalComponent, boolean start) throws Exception Description copied from interface:ActiveMQServerAdding external components is allowed only if the stateisn'tActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPING.It atomically starts the
externalComponentwhile being added ifstart == true.This atomicity is necessary to prevent
ActiveMQComponent.stop()to stop the component right after adding it, but before starting it.- Specified by:
addExternalComponentin interfaceActiveMQServer- Throws:
IllegalStateException- if the state isActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPINGException
-
getThreadPool
- Specified by:
getThreadPoolin interfaceActiveMQServer
-
setActivation
-
stopTheServer
public final void stopTheServer(boolean criticalIOError) Stops the server in a different thread. -
stop
- Specified by:
stopin interfaceActiveMQComponent- Throws:
Exception
-
stop
- Specified by:
stopin interfaceServiceComponent- Throws:
Exception
-
addActivationParam
- Specified by:
addActivationParamin interfaceActiveMQServer
-
isAddressBound
Description copied from interface:ActiveMQServerReturnstrueif there is a binding for this address (i.e. if there is a created queue).- Specified by:
isAddressBoundin interfaceActiveMQServer- Returns:
trueif there is a binding for this address (i.e. if there is a created queue)- Throws:
Exception
-
bindingQuery
- Specified by:
bindingQueryin interfaceActiveMQServer- Throws:
Exception
-
queueQuery
- Specified by:
queueQueryin interfaceActiveMQServer
-
addressQuery
- Specified by:
addressQueryin interfaceActiveMQServer- Throws:
Exception
-
registerBrokerConnection
- Specified by:
registerBrokerConnectionin interfaceActiveMQServer
-
unregisterBrokerConnection
Description copied from interface:ActiveMQServerRemoves the given broker connection from the tracked set of active broker connection entries. Unregistering the connection results in it being forgotten and the caller is responsible for stopping the connection.- Specified by:
unregisterBrokerConnectionin interfaceActiveMQServer- Parameters:
brokerConnection- The broker connection that should be forgotten.
-
startBrokerConnection
- Specified by:
startBrokerConnectionin interfaceActiveMQServer- Throws:
Exception
-
getBrokerConnection
-
stopBrokerConnection
- Specified by:
stopBrokerConnectionin interfaceActiveMQServer- Throws:
Exception
-
getBrokerConnections
- Specified by:
getBrokerConnectionsin interfaceActiveMQServer
-
threadDump
public void threadDump()- Specified by:
threadDumpin interfaceActiveMQServer
-
fail
- Specified by:
failin interfaceActiveMQServer- Throws:
Exception
-
stop
- Specified by:
stopin interfaceActiveMQServer- Throws:
Exception
-
isReplicaSync
public boolean isReplicaSync()Description copied from interface:ActiveMQServerReturns whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server.- Specified by:
isReplicaSyncin interfaceActiveMQServer- Returns:
- whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server
-
stop
public void stop(boolean failoverOnServerShutdown, boolean criticalIOError, boolean restarting) -
checkBrokerIsNotColocated
-
describe
- Specified by:
describein interfaceActiveMQServer
-
destroyConnectionWithSessionMetadata
public String destroyConnectionWithSessionMetadata(String metaKey, String parameterValue) throws Exception - Specified by:
destroyConnectionWithSessionMetadatain interfaceActiveMQServer- Throws:
Exception
-
setIdentity
Description copied from interface:ActiveMQServerSets the server identity.The identity will be exposed on logs. It may help to debug issues on the log traces and debugs.
This method was created mainly for testing but it may be used in scenarios where you need to have more than one Server inside the same VM.
- Specified by:
setIdentityin interfaceActiveMQServer
-
getIdentity
- Specified by:
getIdentityin interfaceActiveMQServer
-
getScheduledPool
- Specified by:
getScheduledPoolin interfaceActiveMQServer
-
getConfiguration
- Specified by:
getConfigurationin interfaceActiveMQServer
-
getPagingManager
- Specified by:
getPagingManagerin interfaceActiveMQServer
-
getRemotingService
- Specified by:
getRemotingServicein interfaceActiveMQServer
-
getStorageManager
- Specified by:
getStorageManagerin interfaceActiveMQServer
-
getSecurityManager
- Specified by:
getSecurityManagerin interfaceActiveMQServer
-
getManagementService
- Specified by:
getManagementServicein interfaceActiveMQServer
-
getSecurityRepository
- Specified by:
getSecurityRepositoryin interfaceActiveMQServer
-
getNodeManager
- Specified by:
getNodeManagerin interfaceActiveMQServer
-
getAddressSettingsRepository
- Specified by:
getAddressSettingsRepositoryin interfaceActiveMQServer
-
getResourceManager
- Specified by:
getResourceManagerin interfaceActiveMQServer
-
getMetricsManager
- Specified by:
getMetricsManagerin interfaceActiveMQServer
-
getVersion
- Specified by:
getVersionin interfaceActiveMQServer
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
getClusterManager
- Specified by:
getClusterManagerin interfaceActiveMQServer
-
getConnectionRouterManager
- Specified by:
getConnectionRouterManagerin interfaceActiveMQServer
-
getBackupManager
-
createSession
public ServerSession createSession(String name, String username, String password, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString, RoutingType> prefixes, String securityDomain, String validatedUser, boolean isLegacyProducer) throws Exception- Specified by:
createSessionin interfaceActiveMQServer- Throws:
Exception
-
validateUser
public String validateUser(String username, String password, RemotingConnection connection, String securityDomain) throws Exception - Specified by:
validateUserin interfaceActiveMQServer- Throws:
Exception
-
createInternalSession
public ServerSession createInternalSession(String name, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString, RoutingType> prefixes, String securityDomain, boolean isLegacyProducer) throws ExceptionDescription copied from interface:ActiveMQServerThis is to be used in places where security is bypassed, like internal sessions, broker connections, etc...- Specified by:
createInternalSessionin interfaceActiveMQServer- Throws:
Exception
-
checkQueueCreationLimit
- Specified by:
checkQueueCreationLimitin interfaceActiveMQServer- Throws:
Exception
-
getQueueCountForUser
- Throws:
Exception
-
internalCreateSession
protected ServerSessionImpl internalCreateSession(String name, String username, String password, String validatedUser, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, OperationContext context, boolean autoCreateQueues, Map<SimpleString, RoutingType> prefixes, String securityDomain, boolean isLegacyProducer) throws Exception- Throws:
Exception
-
getSecurityStore
- Specified by:
getSecurityStorein interfaceActiveMQServer
-
removeSession
- Specified by:
removeSessionin interfaceActiveMQServer- Throws:
Exception
-
lookupSession
Description copied from interface:ActiveMQServerReturns a session containing the meta-key and meata-value.- Specified by:
lookupSessionin interfaceActiveMQServer- Returns:
- a session containing the meta-key and meata-value
-
getSessions
- Specified by:
getSessionsin interfaceActiveMQServer
-
getSessions
- Specified by:
getSessionsin interfaceActiveMQServer
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceActiveMQServer
-
waitForActivation
Description copied from interface:ActiveMQServerWait for server initialization.- Specified by:
waitForActivationin interfaceActiveMQServer- Returns:
trueif the server was already initialized or if it was initialized within the timeout period,falseotherwise.- Throws:
InterruptedException- See Also:
-
getActiveMQServerControl
Description copied from interface:ActiveMQServerReturns the resource to manage this ActiveMQ Artemis server.- Specified by:
getActiveMQServerControlin interfaceActiveMQServer- Returns:
- the resource to manage this ActiveMQ Artemis server
-
getConnectionCount
public int getConnectionCount()- Specified by:
getConnectionCountin interfaceActiveMQServer
-
getTotalConnectionCount
public long getTotalConnectionCount()- Specified by:
getTotalConnectionCountin interfaceActiveMQServer
-
getSessionCount
public int getSessionCount()- Specified by:
getSessionCountin interfaceActiveMQServer
-
getTotalSessionCount
public long getTotalSessionCount()- Specified by:
getTotalSessionCountin interfaceActiveMQServer
-
getTotalMessageCount
public long getTotalMessageCount()- Specified by:
getTotalMessageCountin interfaceActiveMQServer
-
getTotalMessagesAdded
public long getTotalMessagesAdded()- Specified by:
getTotalMessagesAddedin interfaceActiveMQServer
-
getTotalMessagesAcknowledged
public long getTotalMessagesAcknowledged()- Specified by:
getTotalMessagesAcknowledgedin interfaceActiveMQServer
-
getTotalConsumerCount
public long getTotalConsumerCount()- Specified by:
getTotalConsumerCountin interfaceActiveMQServer
-
getPostOffice
- Specified by:
getPostOfficein interfaceActiveMQServer
-
getQueueFactory
- Specified by:
getQueueFactoryin interfaceActiveMQServer
-
getNodeID
- Specified by:
getNodeIDin interfaceActiveMQServer
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress, Long ringSize) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
locateQueue
- Specified by:
locateQueuein interfaceActiveMQServer
-
locateQueue
- Specified by:
locateQueuein interfaceActiveMQServer- Throws:
Exception
-
deployQueue
@Deprecated public Queue deployQueue(SimpleString address, SimpleString resourceName, SimpleString filterString, boolean durable, boolean temporary) throws Exception Deprecated.- Specified by:
deployQueuein interfaceActiveMQServer- Throws:
Exception
-
deployQueue
@Deprecated public Queue deployQueue(String address, String resourceName, String filterString, boolean durable, boolean temporary) throws Exception Deprecated.- Specified by:
deployQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
- Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
- Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception - Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception - Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress) throws Exception - Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
destroyQueue
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress, boolean checkMessageCount) throws Exception - Specified by:
destroyQueuein interfaceActiveMQServer- Throws:
Exception
-
clearAddressCache
public void clearAddressCache()- Specified by:
clearAddressCachein interfaceActiveMQServer
-
registerActivateCallback
- Specified by:
registerActivateCallbackin interfaceActiveMQServer
-
unregisterActivateCallback
- Specified by:
unregisterActivateCallbackin interfaceActiveMQServer
-
registerActivationFailureListener
Description copied from interface:ActiveMQServerRegister a listener to detect problems during activation- Specified by:
registerActivationFailureListenerin interfaceActiveMQServer- See Also:
-
unregisterActivationFailureListener
Description copied from interface:ActiveMQServerRemove a previously registered failure listener- Specified by:
unregisterActivationFailureListenerin interfaceActiveMQServer
-
callActivationFailureListeners
Description copied from interface:ActiveMQServerAlert activation failure listeners of a failure.- Specified by:
callActivationFailureListenersin interfaceActiveMQServer- Parameters:
e- the exception that caused the activation failure
-
registerIOCriticalErrorListener
Description copied from interface:ActiveMQServerRegister a listener to detect I/O Critical errors- Specified by:
registerIOCriticalErrorListenerin interfaceActiveMQServer- See Also:
-
registerPostQueueCreationCallback
Description copied from interface:ActiveMQServerRegister aPostQueueDeletionCallbackto be called after a queue is created.- Specified by:
registerPostQueueCreationCallbackin interfaceActiveMQServer- Parameters:
callback- thePostQueueCreationCallbackto call after a queue is created
-
unregisterPostQueueCreationCallback
Description copied from interface:ActiveMQServerUnregister aPostQueueCreationCallback.- Specified by:
unregisterPostQueueCreationCallbackin interfaceActiveMQServer- Parameters:
callback- thePostQueueCreationCallbackto unregister
-
callPostQueueCreationCallbacks
- Specified by:
callPostQueueCreationCallbacksin interfaceActiveMQServer- Throws:
Exception
-
registerPostQueueDeletionCallback
Description copied from interface:ActiveMQServerRegister aPostQueueDeletionCallbackto be called after a queue is deleted.- Specified by:
registerPostQueueDeletionCallbackin interfaceActiveMQServer- Parameters:
callback- thePostQueueDeletionCallbackto call after a queue is deleted
-
unregisterPostQueueDeletionCallback
Description copied from interface:ActiveMQServerUnregister aPostQueueDeletionCallback.- Specified by:
unregisterPostQueueDeletionCallbackin interfaceActiveMQServer- Parameters:
callback- thePostQueueDeletionCallbackto unregister
-
callPostQueueDeletionCallbacks
public void callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception - Specified by:
callPostQueueDeletionCallbacksin interfaceActiveMQServer- Throws:
Exception
-
registerBrokerPlugins
- Specified by:
registerBrokerPluginsin interfaceActiveMQServer
-
registerBrokerPlugin
- Specified by:
registerBrokerPluginin interfaceActiveMQServer
-
unRegisterBrokerPlugin
- Specified by:
unRegisterBrokerPluginin interfaceActiveMQServer
-
getBrokerPlugins
- Specified by:
getBrokerPluginsin interfaceActiveMQServer
-
getBrokerConnectionPlugins
- Specified by:
getBrokerConnectionPluginsin interfaceActiveMQServer
-
getBrokerSessionPlugins
- Specified by:
getBrokerSessionPluginsin interfaceActiveMQServer
-
getBrokerConsumerPlugins
- Specified by:
getBrokerConsumerPluginsin interfaceActiveMQServer
-
getBrokerAddressPlugins
- Specified by:
getBrokerAddressPluginsin interfaceActiveMQServer
-
getBrokerQueuePlugins
- Specified by:
getBrokerQueuePluginsin interfaceActiveMQServer
-
getBrokerBindingPlugins
- Specified by:
getBrokerBindingPluginsin interfaceActiveMQServer
-
getBrokerMessagePlugins
- Specified by:
getBrokerMessagePluginsin interfaceActiveMQServer
-
getBrokerBridgePlugins
- Specified by:
getBrokerBridgePluginsin interfaceActiveMQServer
-
getBrokerCriticalPlugins
- Specified by:
getBrokerCriticalPluginsin interfaceActiveMQServer
-
getBrokerFederationPlugins
- Specified by:
getBrokerFederationPluginsin interfaceActiveMQServer
-
getBrokerAMQPFederationPlugins
- Specified by:
getBrokerAMQPFederationPluginsin interfaceActiveMQServer
-
getBrokerResourcePlugins
- Specified by:
getBrokerResourcePluginsin interfaceActiveMQServer
-
callBrokerPlugins
- Specified by:
callBrokerPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerConnectionPlugins
public void callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerConnectionPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerSessionPlugins
public void callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerSessionPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerConsumerPlugins
public void callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerConsumerPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerAddressPlugins
public void callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerAddressPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerQueuePlugins
public void callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerQueuePluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerBindingPlugins
public void callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerBindingPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerMessagePlugins
public void callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerMessagePluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerMessagePluginsCanAccept
public boolean callBrokerMessagePluginsCanAccept(ServerConsumer serverConsumer, MessageReference messageReference) throws ActiveMQException - Specified by:
callBrokerMessagePluginsCanAcceptin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerBridgePlugins
public void callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerBridgePluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerCriticalPlugins
public void callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerCriticalPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerFederationPlugins
public void callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerFederationPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerAMQPFederationPlugins
public void callBrokerAMQPFederationPlugins(ActiveMQPluginRunnable<AMQPFederationBrokerPlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerAMQPFederationPluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
callBrokerResourcePlugins
public void callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) throws ActiveMQException - Specified by:
callBrokerResourcePluginsin interfaceActiveMQServer- Throws:
ActiveMQException
-
hasBrokerPlugins
public boolean hasBrokerPlugins()- Specified by:
hasBrokerPluginsin interfaceActiveMQServer
-
hasBrokerConnectionPlugins
public boolean hasBrokerConnectionPlugins()- Specified by:
hasBrokerConnectionPluginsin interfaceActiveMQServer
-
hasBrokerSessionPlugins
public boolean hasBrokerSessionPlugins()- Specified by:
hasBrokerSessionPluginsin interfaceActiveMQServer
-
hasBrokerConsumerPlugins
public boolean hasBrokerConsumerPlugins()- Specified by:
hasBrokerConsumerPluginsin interfaceActiveMQServer
-
hasBrokerAddressPlugins
public boolean hasBrokerAddressPlugins()- Specified by:
hasBrokerAddressPluginsin interfaceActiveMQServer
-
hasBrokerQueuePlugins
public boolean hasBrokerQueuePlugins()- Specified by:
hasBrokerQueuePluginsin interfaceActiveMQServer
-
hasBrokerBindingPlugins
public boolean hasBrokerBindingPlugins()- Specified by:
hasBrokerBindingPluginsin interfaceActiveMQServer
-
hasBrokerMessagePlugins
public boolean hasBrokerMessagePlugins()- Specified by:
hasBrokerMessagePluginsin interfaceActiveMQServer
-
hasBrokerBridgePlugins
public boolean hasBrokerBridgePlugins()- Specified by:
hasBrokerBridgePluginsin interfaceActiveMQServer
-
hasBrokerCriticalPlugins
public boolean hasBrokerCriticalPlugins()- Specified by:
hasBrokerCriticalPluginsin interfaceActiveMQServer
-
hasBrokerFederationPlugins
public boolean hasBrokerFederationPlugins()- Specified by:
hasBrokerFederationPluginsin interfaceActiveMQServer
-
hasBrokerAMQPFederationPlugins
public boolean hasBrokerAMQPFederationPlugins()- Specified by:
hasBrokerAMQPFederationPluginsin interfaceActiveMQServer
-
hasBrokerResourcePlugins
public boolean hasBrokerResourcePlugins()- Specified by:
hasBrokerResourcePluginsin interfaceActiveMQServer
-
getExecutorFactory
- Specified by:
getExecutorFactoryin interfaceActiveMQServer
-
getIOExecutorFactory
- Specified by:
getIOExecutorFactoryin interfaceActiveMQServer
-
setGroupingHandler
- Specified by:
setGroupingHandlerin interfaceActiveMQServer
-
getGroupingHandler
- Specified by:
getGroupingHandlerin interfaceActiveMQServer
-
getReplicationManager
- Specified by:
getReplicationManagerin interfaceActiveMQServer
-
getConnectorsService
- Specified by:
getConnectorsServicein interfaceActiveMQServer
-
getFederationManager
- Specified by:
getFederationManagerin interfaceActiveMQServer
-
deployDivert
- Specified by:
deployDivertin interfaceActiveMQServer- Throws:
Exception
-
updateDivert
- Specified by:
updateDivertin interfaceActiveMQServer- Throws:
Exception
-
destroyDivert
- Specified by:
destroyDivertin interfaceActiveMQServer- Throws:
Exception
-
destroyDivert
- Specified by:
destroyDivertin interfaceActiveMQServer- Throws:
Exception
-
deployBridge
- Specified by:
deployBridgein interfaceActiveMQServer- Throws:
Exception
-
destroyBridge
- Specified by:
destroyBridgein interfaceActiveMQServer- Throws:
Exception
-
deployFederation
- Specified by:
deployFederationin interfaceActiveMQServer- Throws:
Exception
-
undeployFederation
- Specified by:
undeployFederationin interfaceActiveMQServer- Throws:
Exception
-
getSessionByID
- Specified by:
getSessionByIDin interfaceActiveMQServer
-
toString
-
replaceQueueFactory
For tests only, don't use this method as it's not part of the API -
createPagingManager
- Specified by:
createPagingManagerin interfaceActiveMQServer- Throws:
Exception
-
getPagingStoreFactory
- Throws:
Exception
-
createStorageManager
This method is protected as it may be used as a hook for creating a custom storage manager (on tests for instance) -
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceActiveMQServer
-
installMirrorController
- Specified by:
installMirrorControllerin interfaceActiveMQServer
-
scanAddresses
Description copied from interface:ActiveMQServerThis method will scan all queues and addresses. it is supposed to be called before the mirrorController is started- Specified by:
scanAddressesin interfaceActiveMQServer- Throws:
Exception
-
getMirrorController
- Specified by:
getMirrorControllerin interfaceActiveMQServer
-
removeMirrorControl
public void removeMirrorControl()- Specified by:
removeMirrorControlin interfaceActiveMQServer
-
injectMonitor
This method exists for a possibility of test cases replacing the FileStoreMonitor for an extension that would for instance pretend a disk full on certain tests.- Throws:
Exception
-
getMonitor
-
completeActivation
- Throws:
Exception
-
getDiskStoreUsage
public double getDiskStoreUsage()- Specified by:
getDiskStoreUsagein interfaceActiveMQServer
-
updateAddressInfo
public boolean updateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) throws Exception Description copied from interface:ActiveMQServerUpdates anAddressInfoon the broker with the specified routing types.- Specified by:
updateAddressInfoin interfaceActiveMQServer- Parameters:
address- the name of theAddressInfoto updateroutingTypes- the routing types to update theAddressInfowith- Returns:
trueif theAddressInfowas updated,falseotherwise- Throws:
Exception
-
updateAddressInfo
public boolean updateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) throws Exception - Specified by:
updateAddressInfoin interfaceActiveMQServer- Throws:
Exception
-
addAddressInfo
Description copied from interface:ActiveMQServerAdd theAddressInfoto the broker- Specified by:
addAddressInfoin interfaceActiveMQServer- Parameters:
addressInfo- theAddressInfoto add- Returns:
trueif theAddressInfowas added,falseotherwise- Throws:
Exception
-
addOrUpdateAddressInfo
Description copied from interface:ActiveMQServerA convenience method to combine the functionality ofaddAddressInfoandupdateAddressInfo. It will add theAddressInfoobject to the broker if it doesn't exist or update it if it does.- Specified by:
addOrUpdateAddressInfoin interfaceActiveMQServer- Parameters:
addressInfo- theAddressInfoto add or the info used to update the existingAddressInfo- Returns:
- the resulting
AddressInfo - Throws:
Exception
-
removeAddressInfo
Description copied from interface:ActiveMQServerRemove anAddressInfofrom the broker.- Specified by:
removeAddressInfoin interfaceActiveMQServer- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis valid- Throws:
Exception
-
autoRemoveAddressInfo
Description copied from interface:ActiveMQServerRemove anAddressInfofrom the broker.- Specified by:
autoRemoveAddressInfoin interfaceActiveMQServer- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis valid- Throws:
Exception
-
registerQueueOnManagement
Register a queue on the management registry- Specified by:
registerQueueOnManagementin interfaceActiveMQServer- Throws:
Exception
-
removeAddressInfo
public void removeAddressInfo(SimpleString address, SecurityAuth auth, boolean force) throws Exception Description copied from interface:ActiveMQServerRemove anAddressInfofrom the broker.- Specified by:
removeAddressInfoin interfaceActiveMQServer- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis validforce- It will disconnect everything from the address including queues and consumers- Throws:
Exception
-
getInternalNamingPrefix
- Specified by:
getInternalNamingPrefixin interfaceActiveMQServer
-
getAddressInfo
- Specified by:
getAddressInfoin interfaceActiveMQServer
-
createQueue
@Deprecated public Queue createQueue(AddressInfo addrInfo, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, boolean configurationManaged, long ringSize) throws Exception Deprecated.- Throws:
Exception
-
createQueue
Description copied from interface:ActiveMQServerOverloaded version ofActiveMQServer.createQueue(QueueConfiguration, boolean)where thebooleanparameter is alwaysfalse(i.e. if the queue already exists then an exception will be thrown).- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception- See Also:
-
createQueue
public Queue createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) throws Exception Description copied from interface:ActiveMQServerThis method creates a queue based on theQueueConfigurationinput. SeeQueueConfigurationfor more details on configuration specifics.Some dynamic defaults will be enforced via address-settings for the corresponding unset properties:
maxConsumersexclusivegroupRebalancegroupBucketsgroupFirstKeylastValuelastValueKeynonDestructiveconsumersBeforeDispatchdelayBeforeDispatchringSizeroutingTypepurgeOnNoConsumersautoCreateAddressautoDelete(only set if queue was auto-created)autoDeleteDelayautoDeleteMessageCount
- Specified by:
createQueuein interfaceActiveMQServer- Parameters:
queueConfiguration- the configuration to use when creating the queueignoreIfExists- whether to simply return without an exception if the queue exists- Returns:
- the
Queueinstance that was created - Throws:
Exception
-
getRuntimeTempQueueNamespace
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
createQueue
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) throws Exception Deprecated.- Specified by:
createQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize) throws Exception Deprecated.- Specified by:
updateQueuein interfaceActiveMQServer- Throws:
Exception
-
updateQueue
Description copied from interface:ActiveMQServerUpdate the queue named in theQueueConfigurationwith the corresponding properties. Set only the properties that you wish to change from their existing values. Only the following properties can actually be updated:routingTypefiltermaxConsumerspurgeOnNoConsumersexclusivenonDestructivegroupRebalancegroupFirstKeygroupBucketsconsumersBeforeDispatchdelayBeforeDispatchconfigurationManageduserringSize
- Specified by:
updateQueuein interfaceActiveMQServer- Parameters:
queueConfiguration- theQueueConfigurationto use- Returns:
- the updated
Queueinstance - Throws:
Exception
-
updateQueue
public Queue updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) throws Exception Description copied from interface:ActiveMQServerUpdate a queue's configuration.- Specified by:
updateQueuein interfaceActiveMQServer- Parameters:
queueConfiguration- theQueueConfigurationto useforceUpdate- Iftrue, nonullcheck is performed and unset queueConfiguration values are reset tonull- Returns:
- the updated
Queueinstance - Throws:
Exception- See Also:
-
checkJournalDirectory
public void checkJournalDirectory()Check if journal directory exists or create it (if configured to do so) -
addProtocolManagerFactory
Description copied from interface:ActiveMQServeradd a ProtocolManagerFactory to be used. Note ifConfiguration.isResolveProtocols()is true then this factory will replace any factories with the same protocol- Specified by:
addProtocolManagerFactoryin interfaceActiveMQServer
-
removeProtocolManagerFactory
- Specified by:
removeProtocolManagerFactoryin interfaceActiveMQServer
-
createBackupServer
- Specified by:
createBackupServerin interfaceActiveMQServer
-
addScaledDownNode
- Specified by:
addScaledDownNodein interfaceActiveMQServer
-
hasScaledDown
- Specified by:
hasScaledDownin interfaceActiveMQServer
-
getUptime
- Specified by:
getUptimein interfaceActiveMQServer
-
getUptimeMillis
public long getUptimeMillis()- Specified by:
getUptimeMillisin interfaceActiveMQServer
-
addClientConnection
- Specified by:
addClientConnectionin interfaceActiveMQServer
-
removeClientConnection
- Specified by:
removeClientConnectionin interfaceActiveMQServer
-
reloadConfigurationFile
- Specified by:
reloadConfigurationFilein interfaceActiveMQServer- Throws:
Exception
-
getActivateCallbacks
-
getExternalComponents
- Specified by:
getExternalComponentsin interfaceActiveMQServer
-
managementLock
- Specified by:
managementLockin interfaceActiveMQServer- Throws:
Exception
-
getIoCriticalErrorListener
Description copied from interface:ActiveMQServerThe server has a default listener that will propagate errors to registered listeners. This will return the main listener- Specified by:
getIoCriticalErrorListenerin interfaceActiveMQServer
-
getMirrorRegistry
- Specified by:
getMirrorRegistryin interfaceActiveMQServer
-
getPendingMirrorAcks
public int getPendingMirrorAcks()- Specified by:
getPendingMirrorAcksin interfaceActiveMQServer
-
Filter.GENERIC_IGNORED_FILTER