Interface ActiveMQServer
-
- All Superinterfaces:
ActiveMQComponent,ServiceComponent
- All Known Implementing Classes:
ActiveMQServerImpl
public interface ActiveMQServer extends ServiceComponent
This interface defines the internal interface of the ActiveMQ Artemis Server exposed to other components of the server.This is not part of our public API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classActiveMQServer.SERVER_STATE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddActivationParam(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 state isn'tActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPING.
It atomically starts theexternalComponentwhile being added ifstart == true.
This atomicity is necessary to preventActiveMQComponent.stop()to stop the component right after adding it, but before starting it.AddressInfoaddOrUpdateAddressInfo(AddressInfo addressInfo)A convenience method to combine the functionality ofaddAddressInfoandupdateAddressInfo.voidaddProtocolManagerFactory(ProtocolManagerFactory factory)AddressQueryResultaddressQuery(SimpleString name)voidaddScaledDownNode(SimpleString scaledDownNodeId)voidautoRemoveAddressInfo(SimpleString address, SecurityAuth auth)Remove anAddressInfofrom the broker.default BindingQueryResultbindingQuery(SimpleString address)BindingQueryResultbindingQuery(SimpleString address, boolean newFQQN)voidcallActivationFailureListeners(Exception e)Alert activation failure listeners of a failure.voidcallBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun)voidcallBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun)voidcallBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun)voidcallBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun)voidcallBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun)voidcallBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun)voidcallBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun)voidcallBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun)booleancallBrokerMessagePluginsCanAccept(ServerConsumer serverConsumer, MessageReference messageReference)voidcallBrokerPlugins(ActiveMQPluginRunnable pluginRun)voidcallBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun)voidcallBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun)voidcallBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun)voidcallPostQueueCreationCallbacks(SimpleString queueName)voidcallPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName)voidcheckQueueCreationLimit(String username)voidclearAddressCache()ActiveMQServercreateBackupServer(Configuration configuration)ServerSessioncreateInternalSession(String name, int minLargeMessageSize, RemotingConnection remotingConnection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain)This is to be used in places where security is bypassed, like internal sessions, broker connections, etc...PagingManagercreatePagingManager()QueuecreateQueue(QueueConfiguration queueConfiguration)Overloaded version ofcreateQueue(QueueConfiguration, boolean)where thebooleanparameter is alwaysfalse(i.e.QueuecreateQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists)This method creates a queue based on theQueueConfigurationinput.QueuecreateQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary)Deprecated.QueuecreateQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress)Deprecated.QueuecreateQueue(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.QueuecreateQueue(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.QueuecreateQueue(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.QueuecreateQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary)Deprecated.QueuecreateQueue(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.QueuecreateQueue(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.QueuecreateQueue(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 groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress)Deprecated.QueuecreateQueue(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 groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress)Deprecated.QueuecreateQueue(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 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.QueuecreateQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress)Deprecated.QueuecreateQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary)Deprecated.QueuecreateQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress)Deprecated.QueuecreateQueue(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.QueuecreateQueue(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.QueuecreateQueue(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.QueuecreateQueue(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.ServerSessioncreateSession(String name, String username, String password, int minLargeMessageSize, RemotingConnection remotingConnection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain, String validatedUser)voidcreateSharedQueue(QueueConfiguration queueConfiguration)This method is essentially the same ascreateQueue(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 autoDeleteTimeout, 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.booleandeployBridge(BridgeConfiguration config)DivertdeployDivert(DivertConfiguration config)voiddeployFederation(FederationConfiguration config)QueuedeployQueue(String address, String queue, String filter, boolean durable, boolean temporary)Deprecated.QueuedeployQueue(SimpleString address, SimpleString queue, SimpleString filter, boolean durable, boolean temporary)Deprecated.Stringdescribe()voiddestroyBridge(String name)StringdestroyConnectionWithSessionMetadata(String metaKey, String metaValue)voiddestroyDivert(SimpleString name)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)voidfail(boolean failoverOnServerShutdown)ActivationgetActivation()ActiveMQServerControlImplgetActiveMQServerControl()Returns the resource to manage this ActiveMQ Artemis server.AddressInfogetAddressInfo(SimpleString address)HierarchicalRepository<AddressSettings>getAddressSettingsRepository()List<ActiveMQServerAddressPlugin>getBrokerAddressPlugins()List<ActiveMQServerBindingPlugin>getBrokerBindingPlugins()List<ActiveMQServerBridgePlugin>getBrokerBridgePlugins()List<ActiveMQServerConnectionPlugin>getBrokerConnectionPlugins()Collection<BrokerConnection>getBrokerConnections()List<ActiveMQServerConsumerPlugin>getBrokerConsumerPlugins()List<ActiveMQServerCriticalPlugin>getBrokerCriticalPlugins()List<ActiveMQServerFederationPlugin>getBrokerFederationPlugins()List<ActiveMQServerMessagePlugin>getBrokerMessagePlugins()List<ActiveMQServerBasePlugin>getBrokerPlugins()List<ActiveMQServerQueuePlugin>getBrokerQueuePlugins()List<ActiveMQServerResourcePlugin>getBrokerResourcePlugins()List<ActiveMQServerSessionPlugin>getBrokerSessionPlugins()ClusterManagergetClusterManager()ConfigurationgetConfiguration()intgetConnectionCount()ConnectionRouterManagergetConnectionRouterManager()ConnectorsServicegetConnectorsService()CriticalAnalyzergetCriticalAnalyzer()doublegetDiskStoreUsage()ExecutorFactorygetExecutorFactory()List<ActiveMQComponent>getExternalComponents()FederationManagergetFederationManager()GroupingHandlergetGroupingHandler()HAPolicygetHAPolicy()StringgetIdentity()StringgetInternalNamingPrefix()ExecutorFactorygetIOExecutorFactory()ManagementServicegetManagementService()MBeanServergetMBeanServer()MetricsManagergetMetricsManager()MirrorControllergetMirrorController()NetworkHealthCheckgetNetworkHealthCheck()SimpleStringgetNodeID()NodeManagergetNodeManager()PagingManagergetPagingManager()PostOfficegetPostOffice()QueueFactorygetQueueFactory()ReloadManagergetReloadManager()RemotingServicegetRemotingService()ReplicationManagergetReplicationManager()ResourceManagergetResourceManager()ScheduledExecutorServicegetScheduledPool()ActiveMQSecurityManagergetSecurityManager()HierarchicalRepository<Set<Role>>getSecurityRepository()SecurityStoregetSecurityStore()ServiceRegistrygetServiceRegistry()ServerSessiongetSessionByID(String sessionID)Set<ServerSession>getSessions()List<ServerSession>getSessions(String connectionID)ActiveMQServer.SERVER_STATEgetState()default StringgetStatus()StorageManagergetStorageManager()ExecutorgetThreadPool()longgetTotalConnectionCount()longgetTotalConsumerCount()longgetTotalMessageCount()longgetTotalMessagesAcknowledged()longgetTotalMessagesAdded()StringgetUptime()longgetUptimeMillis()VersiongetVersion()booleanhasBrokerAddressPlugins()booleanhasBrokerBindingPlugins()booleanhasBrokerBridgePlugins()booleanhasBrokerConnectionPlugins()booleanhasBrokerConsumerPlugins()booleanhasBrokerCriticalPlugins()booleanhasBrokerFederationPlugins()booleanhasBrokerMessagePlugins()booleanhasBrokerPlugins()booleanhasBrokerQueuePlugins()booleanhasBrokerResourcePlugins()booleanhasBrokerSessionPlugins()booleanhasScaledDown(SimpleString scaledDownNodeId)voidinstallMirrorController(MirrorController mirrorController)booleanisActive()booleanisAddressBound(String address)return true if there is a binding for this address (i.e.booleanisReplicaSync()Returns whether the initial replication synchronization process with the backup server is complete; applicable for either the live or backup server.default QueuelocateQueue(String queueName)QueuelocateQueue(SimpleString queueName)voidlockActivation()it will hold a lock for the activation.ServerSessionlookupSession(String metakey, String metavalue)OperationContextnewOperationContext()QueueQueryResultqueueQuery(SimpleString name)voidregisterActivateCallback(ActivateCallback callback)voidregisterActivationFailureListener(ActivationFailureListener listener)Register a listener to detect problems during activationvoidregisterBrokerConnection(BrokerConnection brokerConnection)voidregisterBrokerPlugin(ActiveMQServerBasePlugin plugin)voidregisterBrokerPlugins(List<ActiveMQServerBasePlugin> plugins)voidregisterPostQueueCreationCallback(PostQueueCreationCallback callback)voidregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)voidreloadConfigurationFile()voidremoveAddressInfo(SimpleString address, SecurityAuth auth)Remove anAddressInfofrom the broker.voidremoveAddressInfo(SimpleString address, SecurityAuth auth, boolean force)Remove anAddressInfofrom the broker.voidremoveClientConnection(String clientId)voidremoveMirrorControl()voidremoveProtocolManagerFactory(ProtocolManagerFactory factory)voidremoveSession(String name)voidreplay(Date start, Date end, String address, String target, String filter)voidscanAddresses(MirrorController mirrorController)This method will scan all queues and addresses.voidsetGroupingHandler(GroupingHandler groupingHandler)voidsetHAPolicy(HAPolicy haPolicy)voidsetIdentity(String identity)Sets the server identity.voidsetMBeanServer(MBeanServer mBeanServer)default voidsetProperties(String fileUrltoBrokerProperties)voidsetSecurityManager(ActiveMQSecurityManager securityManager)voidsetState(ActiveMQServer.SERVER_STATE state)voidstartBrokerConnection(String name)voidstop(boolean failoverOnServerShutdown, boolean isExit)voidstopBrokerConnection(String name)voidthreadDump()voidundeployFederation(String name)voidunlockActivation()it will release hold a lock for the activation.voidunregisterActivateCallback(ActivateCallback callback)voidunregisterActivationFailureListener(ActivationFailureListener listener)Remove a previously registered failure listenervoidunRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin)voidunregisterPostQueueCreationCallback(PostQueueCreationCallback callback)voidunregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)booleanupdateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes)Deprecated.booleanupdateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes)Updates anAddressInfoon the broker with the specified routing types.DivertupdateDivert(DivertConfiguration config)QueueupdateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers)Deprecated.QueueupdateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive)Deprecated.QueueupdateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user)Deprecated.QueueupdateQueue(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.QueueupdateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstQueue, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user)Deprecated.QueueupdateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstQueue, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize)Deprecated.QueueupdateQueue(QueueConfiguration queueConfiguration)Update the queue named in theQueueConfigurationwith the corresponding properties.QueueupdateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate)voidupdateStatus(String component, String statusJson)StringvalidateUser(String username, String password, RemotingConnection connection, String securityDomain)booleanwaitForActivation(long timeout, TimeUnit unit)Wait for server initialization.-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop, isStarted, start, stop
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ServiceComponent
stop
-
-
-
-
Method Detail
-
setState
void setState(ActiveMQServer.SERVER_STATE state)
-
getState
ActiveMQServer.SERVER_STATE getState()
-
setIdentity
void setIdentity(String identity)
Sets 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.
-
getIdentity
String getIdentity()
-
describe
String describe()
-
getConfiguration
Configuration getConfiguration()
-
installMirrorController
void installMirrorController(MirrorController mirrorController)
-
scanAddresses
void scanAddresses(MirrorController mirrorController) throws Exception
This method will scan all queues and addresses. it is supposed to be called before the mirrorController is started- Throws:
Exception
-
getMirrorController
MirrorController getMirrorController()
-
removeMirrorControl
void removeMirrorControl()
-
getServiceRegistry
ServiceRegistry getServiceRegistry()
-
getRemotingService
RemotingService getRemotingService()
-
getStorageManager
StorageManager getStorageManager()
-
getPagingManager
PagingManager getPagingManager()
-
createPagingManager
PagingManager createPagingManager() throws Exception
- Throws:
Exception
-
getManagementService
ManagementService getManagementService()
-
getSecurityManager
ActiveMQSecurityManager getSecurityManager()
-
getNetworkHealthCheck
NetworkHealthCheck getNetworkHealthCheck()
-
getVersion
Version getVersion()
-
getNodeManager
NodeManager getNodeManager()
-
getCriticalAnalyzer
CriticalAnalyzer getCriticalAnalyzer()
-
unlockActivation
void unlockActivation()
it will release hold a lock for the activation.
-
lockActivation
void lockActivation()
it will hold a lock for the activation. This will prevent the activation from happening.
-
getActiveMQServerControl
ActiveMQServerControlImpl getActiveMQServerControl()
Returns the resource to manage this ActiveMQ Artemis server.- Throws:
IllegalStateException- if the server is not properly started.
-
registerActivateCallback
void registerActivateCallback(ActivateCallback callback)
-
unregisterActivateCallback
void unregisterActivateCallback(ActivateCallback callback)
-
registerActivationFailureListener
void registerActivationFailureListener(ActivationFailureListener listener)
Register a listener to detect problems during activation- Parameters:
listener-- See Also:
ActivationFailureListener
-
replay
void replay(Date start, Date end, String address, String target, String filter) throws Exception
- Throws:
Exception
-
unregisterActivationFailureListener
void unregisterActivationFailureListener(ActivationFailureListener listener)
Remove a previously registered failure listener- Parameters:
listener-
-
callActivationFailureListeners
void callActivationFailureListeners(Exception e)
Alert activation failure listeners of a failure.- Parameters:
e- the exception that caused the activation failure
-
registerPostQueueCreationCallback
void registerPostQueueCreationCallback(PostQueueCreationCallback callback)
- Parameters:
callback-PostQueueCreationCallback
-
unregisterPostQueueCreationCallback
void unregisterPostQueueCreationCallback(PostQueueCreationCallback callback)
- Parameters:
callback-PostQueueCreationCallback
-
callPostQueueCreationCallbacks
void callPostQueueCreationCallbacks(SimpleString queueName) throws Exception
- Parameters:
queueName-- Throws:
Exception
-
registerPostQueueDeletionCallback
void registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
- Parameters:
callback-PostQueueDeletionCallback
-
unregisterPostQueueDeletionCallback
void unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
- Parameters:
callback-PostQueueDeletionCallback
-
callPostQueueDeletionCallbacks
void callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception
- Parameters:
queueName-- Throws:
Exception
-
registerBrokerPlugin
void registerBrokerPlugin(ActiveMQServerBasePlugin plugin)
-
unRegisterBrokerPlugin
void unRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin)
-
registerBrokerPlugins
void registerBrokerPlugins(List<ActiveMQServerBasePlugin> plugins)
-
getBrokerPlugins
List<ActiveMQServerBasePlugin> getBrokerPlugins()
-
getBrokerConnectionPlugins
List<ActiveMQServerConnectionPlugin> getBrokerConnectionPlugins()
-
getBrokerSessionPlugins
List<ActiveMQServerSessionPlugin> getBrokerSessionPlugins()
-
getBrokerConsumerPlugins
List<ActiveMQServerConsumerPlugin> getBrokerConsumerPlugins()
-
getBrokerAddressPlugins
List<ActiveMQServerAddressPlugin> getBrokerAddressPlugins()
-
getBrokerQueuePlugins
List<ActiveMQServerQueuePlugin> getBrokerQueuePlugins()
-
getBrokerBindingPlugins
List<ActiveMQServerBindingPlugin> getBrokerBindingPlugins()
-
getBrokerMessagePlugins
List<ActiveMQServerMessagePlugin> getBrokerMessagePlugins()
-
getBrokerBridgePlugins
List<ActiveMQServerBridgePlugin> getBrokerBridgePlugins()
-
getBrokerCriticalPlugins
List<ActiveMQServerCriticalPlugin> getBrokerCriticalPlugins()
-
getBrokerFederationPlugins
List<ActiveMQServerFederationPlugin> getBrokerFederationPlugins()
-
getBrokerResourcePlugins
List<ActiveMQServerResourcePlugin> getBrokerResourcePlugins()
-
callBrokerPlugins
void callBrokerPlugins(ActiveMQPluginRunnable pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerConnectionPlugins
void callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerSessionPlugins
void callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerConsumerPlugins
void callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerAddressPlugins
void callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerQueuePlugins
void callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerBindingPlugins
void callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerMessagePlugins
void callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerMessagePluginsCanAccept
boolean callBrokerMessagePluginsCanAccept(ServerConsumer serverConsumer, MessageReference messageReference) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerBridgePlugins
void callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerCriticalPlugins
void callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerFederationPlugins
void callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
callBrokerResourcePlugins
void callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) throws ActiveMQException
- Throws:
ActiveMQException
-
hasBrokerPlugins
boolean hasBrokerPlugins()
-
hasBrokerConnectionPlugins
boolean hasBrokerConnectionPlugins()
-
hasBrokerSessionPlugins
boolean hasBrokerSessionPlugins()
-
hasBrokerConsumerPlugins
boolean hasBrokerConsumerPlugins()
-
hasBrokerAddressPlugins
boolean hasBrokerAddressPlugins()
-
hasBrokerQueuePlugins
boolean hasBrokerQueuePlugins()
-
hasBrokerBindingPlugins
boolean hasBrokerBindingPlugins()
-
hasBrokerMessagePlugins
boolean hasBrokerMessagePlugins()
-
hasBrokerBridgePlugins
boolean hasBrokerBridgePlugins()
-
hasBrokerCriticalPlugins
boolean hasBrokerCriticalPlugins()
-
hasBrokerFederationPlugins
boolean hasBrokerFederationPlugins()
-
hasBrokerResourcePlugins
boolean hasBrokerResourcePlugins()
-
checkQueueCreationLimit
void checkQueueCreationLimit(String username) throws Exception
- Throws:
Exception
-
createSession
ServerSession createSession(String name, String username, String password, int minLargeMessageSize, RemotingConnection remotingConnection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain, String validatedUser) throws Exception
- Throws:
Exception
-
createInternalSession
ServerSession createInternalSession(String name, int minLargeMessageSize, RemotingConnection remotingConnection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain) throws Exception
This is to be used in places where security is bypassed, like internal sessions, broker connections, etc...- Throws:
Exception
-
getSecurityStore
SecurityStore getSecurityStore()
-
getSessions
Set<ServerSession> getSessions()
-
getSecurityRepository
HierarchicalRepository<Set<Role>> getSecurityRepository()
-
getAddressSettingsRepository
HierarchicalRepository<AddressSettings> getAddressSettingsRepository()
-
newOperationContext
OperationContext newOperationContext()
-
getConnectionCount
int getConnectionCount()
-
getTotalConnectionCount
long getTotalConnectionCount()
-
getTotalMessageCount
long getTotalMessageCount()
-
getTotalMessagesAdded
long getTotalMessagesAdded()
-
getTotalMessagesAcknowledged
long getTotalMessagesAcknowledged()
-
getTotalConsumerCount
long getTotalConsumerCount()
-
getPostOffice
PostOffice getPostOffice()
-
clearAddressCache
void clearAddressCache()
-
getQueueFactory
QueueFactory getQueueFactory()
-
getResourceManager
ResourceManager getResourceManager()
-
getMetricsManager
MetricsManager getMetricsManager()
-
getSessions
List<ServerSession> getSessions(String connectionID)
-
lookupSession
ServerSession lookupSession(String metakey, String metavalue)
- Returns:
- a session containing the meta-key and meata-value
-
getClusterManager
ClusterManager getClusterManager()
-
getNodeID
SimpleString getNodeID()
-
isActive
boolean isActive()
-
getUptime
String getUptime()
-
getUptimeMillis
long getUptimeMillis()
-
isReplicaSync
boolean isReplicaSync()
Returns whether the initial replication synchronization process with the backup server is complete; applicable for either the live or backup server.
-
waitForActivation
boolean waitForActivation(long timeout, TimeUnit unit) throws InterruptedExceptionWait for server initialization.- Parameters:
timeout-unit-- Returns:
trueif the server was already initialized or if it was initialized within the timeout period,falseotherwise.- Throws:
InterruptedException- See Also:
CountDownLatch.await(long, java.util.concurrent.TimeUnit)
-
createSharedQueue
@Deprecated void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) throws Exception
Deprecated.Creates a transient queue. A queue that will exist as long as there are consumers. The queue will be deleted as soon as all the consumers are removed.Notice: the queue won't be deleted until the first consumer arrives.
- Parameters:
address-name-filterString-durable-- Throws:
ActiveMQInvalidTransientQueueUseException- if the shared queue already exists with a differentaddressorfilterStringNullPointerException- ifaddressisnullException
-
createSharedQueue
@Deprecated void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue) throws Exception
Deprecated.- Throws:
Exception
-
createSharedQueue
@Deprecated void createSharedQueue(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 autoDeleteTimeout, long autoDeleteMessageCount) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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.- Throws:
Exception
-
createQueue
@Deprecated 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 groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
@Deprecated 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 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.- Throws:
Exception
-
createQueue
@Deprecated 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 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.- Throws:
Exception
-
createQueue
@Deprecated Queue createQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary) throws Exception
Deprecated.- Throws:
Exception
-
deployQueue
@Deprecated Queue deployQueue(String address, String queue, String filter, boolean durable, boolean temporary) throws Exception
Deprecated.- Throws:
Exception
-
deployQueue
@Deprecated Queue deployQueue(SimpleString address, SimpleString queue, SimpleString filter, boolean durable, boolean temporary) throws Exception
Deprecated.- Throws:
Exception
-
createQueue
Queue createQueue(QueueConfiguration queueConfiguration) throws Exception
Overloaded version ofcreateQueue(QueueConfiguration, boolean)where thebooleanparameter is alwaysfalse(i.e. if the queue already exists then an exception will be thrown).- Throws:
Exception- See Also:
createQueue(QueueConfiguration, boolean)
-
createQueue
Queue createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) throws Exception
This 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
- Parameters:
queueConfiguration- the configuration to use when creating the queueignoreIfExists- whether or not to simply return without an exception if the queue exists- Returns:
- the
Queueinstance that was created - Throws:
Exception
-
createSharedQueue
void createSharedQueue(QueueConfiguration queueConfiguration) throws Exception
This method is essentially the same ascreateQueue(QueueConfiguration, boolean)with a few key exceptions.If
durableistruethen:transientwill be forced tofalsetemporarywill be forced tofalse
If
durableisfalsethen:transientwill be forced totruetemporarywill be forced totrue
In all instances
autoCreatedwill be forced tofalseandautoCreatedAddresswill be forced totrue. Thebooleanpassed tocreateQueue(QueueConfiguration, boolean)will always be true;- Throws:
ActiveMQInvalidTransientQueueUseException- if the shared queue already exists with a differentaddressorfilterStringException- See Also:
createQueue(QueueConfiguration, boolean)
-
createSharedQueue
@Deprecated void createSharedQueue(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) throws Exception
Deprecated.- Throws:
Exception
-
locateQueue
Queue locateQueue(SimpleString queueName)
-
bindingQuery
default BindingQueryResult bindingQuery(SimpleString address) throws Exception
- Throws:
Exception
-
bindingQuery
BindingQueryResult bindingQuery(SimpleString address, boolean newFQQN) throws Exception
- Throws:
Exception
-
queueQuery
QueueQueryResult queueQuery(SimpleString name) throws Exception
- Throws:
Exception
-
addressQuery
AddressQueryResult addressQuery(SimpleString name) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName, SecurityAuth session) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress) throws Exception
- Throws:
Exception
-
destroyQueue
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress, boolean checkMessageCount) throws Exception
- Throws:
Exception
-
destroyConnectionWithSessionMetadata
String destroyConnectionWithSessionMetadata(String metaKey, String metaValue) throws Exception
- Throws:
Exception
-
getScheduledPool
ScheduledExecutorService getScheduledPool()
-
getExecutorFactory
ExecutorFactory getExecutorFactory()
-
getIOExecutorFactory
ExecutorFactory getIOExecutorFactory()
-
setGroupingHandler
void setGroupingHandler(GroupingHandler groupingHandler)
-
getGroupingHandler
GroupingHandler getGroupingHandler()
-
getReplicationManager
ReplicationManager getReplicationManager()
-
getFederationManager
FederationManager getFederationManager()
-
deployDivert
Divert deployDivert(DivertConfiguration config) throws Exception
- Throws:
Exception
-
updateDivert
Divert updateDivert(DivertConfiguration config) throws Exception
- Throws:
Exception
-
destroyDivert
void destroyDivert(SimpleString name) throws Exception
- Throws:
Exception
-
getConnectorsService
ConnectorsService getConnectorsService()
-
deployBridge
boolean deployBridge(BridgeConfiguration config) throws Exception
- Throws:
Exception
-
deployFederation
void deployFederation(FederationConfiguration config) throws Exception
- Throws:
Exception
-
getSessionByID
ServerSession getSessionByID(String sessionID)
-
threadDump
void threadDump()
-
registerBrokerConnection
void registerBrokerConnection(BrokerConnection brokerConnection)
-
getBrokerConnections
Collection<BrokerConnection> getBrokerConnections()
-
isAddressBound
boolean isAddressBound(String address) throws Exception
return true if there is a binding for this address (i.e. if there is a created queue)- Parameters:
address-- Returns:
- Throws:
Exception
-
stop
void stop(boolean failoverOnServerShutdown, boolean isExit) throws Exception- Throws:
Exception
-
updateQueue
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
Deprecated.- Throws:
Exception
-
updateQueue
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
Deprecated.- Throws:
Exception
-
updateQueue
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception
Deprecated.- Throws:
Exception
-
updateQueue
@Deprecated 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.- Throws:
Exception
-
updateQueue
@Deprecated Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstQueue, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception
Deprecated.- Throws:
Exception
-
updateQueue
@Deprecated Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstQueue, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize) throws Exception
Deprecated.- Throws:
Exception
-
updateQueue
Queue updateQueue(QueueConfiguration queueConfiguration) throws Exception
Update 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
- Parameters:
queueConfiguration- theQueueConfigurationto use- Returns:
- the updated
Queueinstance - Throws:
Exception
-
updateQueue
Queue updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) throws Exception
- Parameters:
queueConfiguration- theQueueConfigurationto useforceUpdate- Iftrue, nonullcheck is performed and unset queueConfiguration values are reset tonull- Returns:
- the updated
Queueinstance - Throws:
Exception- See Also:
updateQueue(QueueConfiguration)
-
addProtocolManagerFactory
void addProtocolManagerFactory(ProtocolManagerFactory factory)
-
removeProtocolManagerFactory
void removeProtocolManagerFactory(ProtocolManagerFactory factory)
-
getReloadManager
ReloadManager getReloadManager()
-
createBackupServer
ActiveMQServer createBackupServer(Configuration configuration)
-
addScaledDownNode
void addScaledDownNode(SimpleString scaledDownNodeId)
-
hasScaledDown
boolean hasScaledDown(SimpleString scaledDownNodeId)
-
getActivation
Activation getActivation()
-
getHAPolicy
HAPolicy getHAPolicy()
-
setHAPolicy
void setHAPolicy(HAPolicy haPolicy)
-
setMBeanServer
void setMBeanServer(MBeanServer mBeanServer)
-
getMBeanServer
MBeanServer getMBeanServer()
-
setSecurityManager
void setSecurityManager(ActiveMQSecurityManager securityManager)
-
addExternalComponent
void addExternalComponent(ActiveMQComponent externalComponent, boolean start) throws Exception
Adding external components is allowed only if the state isn'tActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPING.
It atomically starts theexternalComponentwhile being added ifstart == true.
This atomicity is necessary to preventActiveMQComponent.stop()to stop the component right after adding it, but before starting it.- Throws:
IllegalStateException- if the state isActiveMQServer.SERVER_STATE.STOPPEDorActiveMQServer.SERVER_STATE.STOPPINGException
-
getExternalComponents
List<ActiveMQComponent> getExternalComponents()
-
addClientConnection
boolean addClientConnection(String clientId, boolean unique)
-
removeClientConnection
void removeClientConnection(String clientId)
-
getThreadPool
Executor getThreadPool()
-
getAddressInfo
AddressInfo getAddressInfo(SimpleString address)
-
updateAddressInfo
boolean updateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) throws Exception
Updates anAddressInfoon the broker with the specified routing types.- Parameters:
address- the name of theAddressInfoto updateroutingTypes- the routing types to update theAddressInfowith- Returns:
trueif theAddressInfowas updated,falseotherwise- Throws:
Exception
-
updateAddressInfo
@Deprecated boolean updateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) throws Exception
Deprecated.- Throws:
Exception
-
addAddressInfo
boolean addAddressInfo(AddressInfo addressInfo) throws Exception
Add theAddressInfoto the broker- Parameters:
addressInfo- theAddressInfoto add- Returns:
trueif theAddressInfowas added,falseotherwise- Throws:
Exception
-
addOrUpdateAddressInfo
AddressInfo addOrUpdateAddressInfo(AddressInfo addressInfo) throws Exception
A 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.- Parameters:
addressInfo- theAddressInfoto add or the info used to update the existingAddressInfo- Returns:
- the resulting
AddressInfo - Throws:
Exception
-
removeAddressInfo
void removeAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
Remove anAddressInfofrom the broker.- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis valid- Throws:
Exception
-
autoRemoveAddressInfo
void autoRemoveAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
Remove anAddressInfofrom the broker.- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis valid- Throws:
Exception
-
removeAddressInfo
void removeAddressInfo(SimpleString address, SecurityAuth auth, boolean force) throws Exception
Remove anAddressInfofrom the broker.- Parameters:
address- theAddressInfoto removeauth- authorization information;nullis validforce- It will disconnect everything from the address including queues and consumers- Throws:
Exception
-
getInternalNamingPrefix
String getInternalNamingPrefix()
-
getDiskStoreUsage
double getDiskStoreUsage()
-
getConnectionRouterManager
ConnectionRouterManager getConnectionRouterManager()
-
validateUser
String validateUser(String username, String password, RemotingConnection connection, String securityDomain) throws Exception
- Throws:
Exception
-
setProperties
default void setProperties(String fileUrltoBrokerProperties)
-
getStatus
default String getStatus()
-
-