public interface ActiveMQServer extends ServiceComponent
This is not part of our public API.
Modifier and Type | Interface and Description |
---|---|
static class |
ActiveMQServer.SERVER_STATE |
Modifier and Type | Method and Description |
---|---|
void |
addActivationParam(String key,
Object val) |
boolean |
addAddressInfo(AddressInfo addressInfo)
Add the
AddressInfo to the broker |
boolean |
addClientConnection(String clientId,
boolean unique) |
void |
addExternalComponent(ActiveMQComponent externalComponent,
boolean start)
Adding external components is allowed only if the state
isn't
ActiveMQServer.SERVER_STATE.STOPPED or ActiveMQServer.SERVER_STATE.STOPPING .It atomically starts the externalComponent while being added if start == true .This atomicity is necessary to prevent ActiveMQComponent.stop() to stop the component right after adding it, but before
starting it. |
AddressInfo |
addOrUpdateAddressInfo(AddressInfo addressInfo)
A convenience method to combine the functionality of
addAddressInfo and updateAddressInfo . |
void |
addProtocolManagerFactory(ProtocolManagerFactory factory) |
AddressQueryResult |
addressQuery(SimpleString name) |
void |
addScaledDownNode(SimpleString scaledDownNodeId) |
default BindingQueryResult |
bindingQuery(SimpleString address) |
BindingQueryResult |
bindingQuery(SimpleString address,
boolean newFQQN) |
void |
callActivationFailureListeners(Exception e)
Alert activation failure listeners of a failure.
|
void |
callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) |
void |
callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) |
void |
callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) |
void |
callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) |
void |
callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) |
void |
callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) |
void |
callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) |
void |
callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) |
void |
callBrokerPlugins(ActiveMQPluginRunnable pluginRun) |
void |
callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) |
void |
callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) |
void |
callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) |
void |
callPostQueueCreationCallbacks(SimpleString queueName) |
void |
callPostQueueDeletionCallbacks(SimpleString address,
SimpleString queueName) |
void |
checkQueueCreationLimit(String username) |
void |
clearAddressCache() |
ActiveMQServer |
createBackupServer(Configuration configuration) |
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)
This is to be used in places where security is bypassed, like internal sessions, broker connections, etc...
|
PagingManager |
createPagingManager() |
Queue |
createQueue(AddressInfo addressInfo,
SimpleString queueName,
SimpleString filter,
SimpleString user,
boolean durable,
boolean temporary,
boolean autoCreated,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
boolean autoCreateAddress)
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)
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)
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)
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)
Deprecated.
|
Queue |
createQueue(QueueConfiguration queueConfiguration)
Overloaded version of
createQueue(QueueConfiguration, boolean) where the boolean
parameter is always false (i.e. |
Queue |
createQueue(QueueConfiguration queueConfiguration,
boolean ignoreIfExists)
This method creates a queue based on the
QueueConfiguration input. |
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filter,
boolean durable,
boolean temporary)
Deprecated.
|
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filter,
boolean durable,
boolean temporary,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean autoCreateAddress)
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)
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)
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)
Deprecated.
|
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString user,
SimpleString filterString,
boolean durable,
boolean temporary)
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)
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)
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)
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)
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)
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)
Deprecated.
|
Queue |
createQueue(SimpleString address,
SimpleString queueName,
SimpleString filter,
boolean durable,
boolean temporary)
Deprecated.
|
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) |
void |
createSharedQueue(QueueConfiguration queueConfiguration)
This method is essentially the same as
createQueue(QueueConfiguration, boolean) with a few key exceptions. |
void |
createSharedQueue(SimpleString address,
RoutingType routingType,
SimpleString name,
SimpleString filterString,
SimpleString user,
boolean durable)
Deprecated.
|
void |
createSharedQueue(SimpleString address,
RoutingType routingType,
SimpleString name,
SimpleString filterString,
SimpleString user,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean lastValue)
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)
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)
Deprecated.
|
void |
deployBridge(BridgeConfiguration config) |
Divert |
deployDivert(DivertConfiguration config) |
void |
deployFederation(FederationConfiguration config) |
Queue |
deployQueue(SimpleString address,
SimpleString queue,
SimpleString filter,
boolean durable,
boolean temporary)
Deprecated.
|
Queue |
deployQueue(String address,
String queue,
String filter,
boolean durable,
boolean temporary)
Deprecated.
|
String |
describe() |
void |
destroyBridge(String name) |
String |
destroyConnectionWithSessionMetadata(String metaKey,
String metaValue) |
void |
destroyDivert(SimpleString name) |
void |
destroyQueue(SimpleString queueName) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean autoDeleteAddress) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean autoDeleteAddress,
boolean checkMessageCount) |
void |
fail(boolean failoverOnServerShutdown) |
Activation |
getActivation() |
ActiveMQServerControlImpl |
getActiveMQServerControl()
Returns the resource to manage this ActiveMQ Artemis server.
|
AddressInfo |
getAddressInfo(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() |
ClusterManager |
getClusterManager() |
Configuration |
getConfiguration() |
int |
getConnectionCount() |
ConnectorsService |
getConnectorsService() |
CriticalAnalyzer |
getCriticalAnalyzer() |
double |
getDiskStoreUsage() |
ExecutorFactory |
getExecutorFactory() |
List<ActiveMQComponent> |
getExternalComponents() |
FederationManager |
getFederationManager() |
GroupingHandler |
getGroupingHandler() |
HAPolicy |
getHAPolicy() |
String |
getIdentity() |
String |
getInternalNamingPrefix() |
ExecutorFactory |
getIOExecutorFactory() |
ManagementService |
getManagementService() |
MBeanServer |
getMBeanServer() |
MetricsManager |
getMetricsManager() |
MirrorController |
getMirrorController() |
NetworkHealthCheck |
getNetworkHealthCheck() |
SimpleString |
getNodeID() |
NodeManager |
getNodeManager() |
PagingManager |
getPagingManager() |
PostOffice |
getPostOffice() |
QueueFactory |
getQueueFactory() |
ReloadManager |
getReloadManager() |
RemotingService |
getRemotingService() |
ReplicationEndpoint |
getReplicationEndpoint() |
ReplicationManager |
getReplicationManager() |
ResourceManager |
getResourceManager() |
ScheduledExecutorService |
getScheduledPool() |
ActiveMQSecurityManager |
getSecurityManager() |
HierarchicalRepository<Set<Role>> |
getSecurityRepository() |
SecurityStore |
getSecurityStore() |
ServiceRegistry |
getServiceRegistry() |
ServerSession |
getSessionByID(String sessionID) |
Set<ServerSession> |
getSessions() |
List<ServerSession> |
getSessions(String connectionID) |
ActiveMQServer.SERVER_STATE |
getState() |
StorageManager |
getStorageManager() |
Executor |
getThreadPool() |
long |
getTotalConnectionCount() |
long |
getTotalConsumerCount() |
long |
getTotalMessageCount() |
long |
getTotalMessagesAcknowledged() |
long |
getTotalMessagesAdded() |
String |
getUptime() |
long |
getUptimeMillis() |
Version |
getVersion() |
boolean |
hasBrokerAddressPlugins() |
boolean |
hasBrokerBindingPlugins() |
boolean |
hasBrokerBridgePlugins() |
boolean |
hasBrokerConnectionPlugins() |
boolean |
hasBrokerConsumerPlugins() |
boolean |
hasBrokerCriticalPlugins() |
boolean |
hasBrokerFederationPlugins() |
boolean |
hasBrokerMessagePlugins() |
boolean |
hasBrokerPlugins() |
boolean |
hasBrokerQueuePlugins() |
boolean |
hasBrokerResourcePlugins() |
boolean |
hasBrokerSessionPlugins() |
boolean |
hasScaledDown(SimpleString scaledDownNodeId) |
void |
installMirrorController(MirrorController mirrorController) |
boolean |
isActive() |
boolean |
isAddressBound(String address)
return true if there is a binding for this address (i.e.
|
boolean |
isReplicaSync()
Returns whether the initial replication synchronization process with the backup server is complete; applicable for
either the live or backup server.
|
Queue |
locateQueue(SimpleString queueName) |
default Queue |
locateQueue(String queueName) |
void |
lockActivation()
it will hold a lock for the activation.
|
ServerSession |
lookupSession(String metakey,
String metavalue) |
OperationContext |
newOperationContext() |
QueueQueryResult |
queueQuery(SimpleString name) |
void |
registerActivateCallback(ActivateCallback callback) |
void |
registerActivationFailureListener(ActivationFailureListener listener)
Register a listener to detect problems during activation
|
void |
registerBrokerConnection(BrokerConnection brokerConnection) |
void |
registerBrokerPlugin(ActiveMQServerBasePlugin plugin) |
void |
registerBrokerPlugins(List<ActiveMQServerBasePlugin> plugins) |
void |
registerPostQueueCreationCallback(PostQueueCreationCallback callback) |
void |
registerPostQueueDeletionCallback(PostQueueDeletionCallback callback) |
void |
removeAddressInfo(SimpleString address,
SecurityAuth auth)
Remove an
AddressInfo from the broker. |
void |
removeAddressInfo(SimpleString address,
SecurityAuth auth,
boolean force)
Remove an
AddressInfo from the broker. |
void |
removeClientConnection(String clientId) |
void |
removeMirrorControl() |
void |
removeProtocolManagerFactory(ProtocolManagerFactory factory) |
void |
removeSession(String name) |
void |
scanAddresses(MirrorController mirrorController)
This method will scan all queues and addresses.
|
void |
setGroupingHandler(GroupingHandler groupingHandler) |
void |
setHAPolicy(HAPolicy haPolicy) |
void |
setIdentity(String identity)
Sets the server identity.
|
void |
setMBeanServer(MBeanServer mBeanServer) |
void |
setSecurityManager(ActiveMQSecurityManager securityManager) |
void |
setState(ActiveMQServer.SERVER_STATE state) |
void |
startBrokerConnection(String name) |
void |
stop(boolean failoverOnServerShutdown,
boolean isExit) |
void |
stopBrokerConnection(String name) |
void |
threadDump() |
void |
undeployFederation(String name) |
void |
unlockActivation()
it will release hold a lock for the activation.
|
void |
unregisterActivateCallback(ActivateCallback callback) |
void |
unregisterActivationFailureListener(ActivationFailureListener listener)
Remove a previously registered failure listener
|
void |
unRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin) |
void |
unregisterPostQueueCreationCallback(PostQueueCreationCallback callback) |
void |
unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback) |
boolean |
updateAddressInfo(SimpleString address,
Collection<RoutingType> routingTypes)
Deprecated.
|
boolean |
updateAddressInfo(SimpleString address,
EnumSet<RoutingType> routingTypes)
Updates an
AddressInfo on the broker with the specified routing types. |
Divert |
updateDivert(DivertConfiguration config) |
Queue |
updateQueue(QueueConfiguration queueConfiguration)
Update the queue named in the
QueueConfiguration with the corresponding properties. |
Queue |
updateQueue(QueueConfiguration queueConfiguration,
boolean forceUpdate) |
Queue |
updateQueue(String name,
RoutingType routingType,
Integer maxConsumers,
Boolean purgeOnNoConsumers)
Deprecated.
|
Queue |
updateQueue(String name,
RoutingType routingType,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive)
Deprecated.
|
Queue |
updateQueue(String name,
RoutingType routingType,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive,
String user)
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)
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)
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)
Deprecated.
|
boolean |
waitForActivation(long timeout,
TimeUnit unit)
Wait for server initialization.
|
stop
asyncStop, isStarted, start, stop
void setState(ActiveMQServer.SERVER_STATE state)
ActiveMQServer.SERVER_STATE getState()
void setIdentity(String 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.
String getIdentity()
String describe()
Configuration getConfiguration()
void installMirrorController(MirrorController mirrorController)
void scanAddresses(MirrorController mirrorController) throws Exception
Exception
MirrorController getMirrorController()
void removeMirrorControl()
ServiceRegistry getServiceRegistry()
RemotingService getRemotingService()
StorageManager getStorageManager()
PagingManager getPagingManager()
PagingManager createPagingManager() throws Exception
Exception
ManagementService getManagementService()
ActiveMQSecurityManager getSecurityManager()
NetworkHealthCheck getNetworkHealthCheck()
Version getVersion()
NodeManager getNodeManager()
CriticalAnalyzer getCriticalAnalyzer()
ReplicationEndpoint getReplicationEndpoint()
void unlockActivation()
void lockActivation()
ActiveMQServerControlImpl getActiveMQServerControl()
IllegalStateException
- if the server is not properly started.void registerActivateCallback(ActivateCallback callback)
void unregisterActivateCallback(ActivateCallback callback)
void registerActivationFailureListener(ActivationFailureListener listener)
listener
- @see org.apache.activemq.artemis.core.server.ActivationFailureListenervoid unregisterActivationFailureListener(ActivationFailureListener listener)
listener
- void callActivationFailureListeners(Exception e)
e
- the exception that caused the activation failurevoid registerPostQueueCreationCallback(PostQueueCreationCallback callback)
callback
- PostQueueCreationCallback
void unregisterPostQueueCreationCallback(PostQueueCreationCallback callback)
callback
- PostQueueCreationCallback
void callPostQueueCreationCallbacks(SimpleString queueName) throws Exception
queueName
- Exception
void registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback
- PostQueueDeletionCallback
void unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback
- PostQueueDeletionCallback
void callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception
queueName
- Exception
void registerBrokerPlugin(ActiveMQServerBasePlugin plugin)
void unRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin)
void registerBrokerPlugins(List<ActiveMQServerBasePlugin> plugins)
List<ActiveMQServerBasePlugin> getBrokerPlugins()
List<ActiveMQServerConnectionPlugin> getBrokerConnectionPlugins()
List<ActiveMQServerSessionPlugin> getBrokerSessionPlugins()
List<ActiveMQServerConsumerPlugin> getBrokerConsumerPlugins()
List<ActiveMQServerAddressPlugin> getBrokerAddressPlugins()
List<ActiveMQServerQueuePlugin> getBrokerQueuePlugins()
List<ActiveMQServerBindingPlugin> getBrokerBindingPlugins()
List<ActiveMQServerMessagePlugin> getBrokerMessagePlugins()
List<ActiveMQServerBridgePlugin> getBrokerBridgePlugins()
List<ActiveMQServerCriticalPlugin> getBrokerCriticalPlugins()
List<ActiveMQServerFederationPlugin> getBrokerFederationPlugins()
List<ActiveMQServerResourcePlugin> getBrokerResourcePlugins()
void callBrokerPlugins(ActiveMQPluginRunnable pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) throws ActiveMQException
ActiveMQException
void callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) throws ActiveMQException
ActiveMQException
boolean hasBrokerPlugins()
boolean hasBrokerConnectionPlugins()
boolean hasBrokerSessionPlugins()
boolean hasBrokerConsumerPlugins()
boolean hasBrokerAddressPlugins()
boolean hasBrokerQueuePlugins()
boolean hasBrokerBindingPlugins()
boolean hasBrokerMessagePlugins()
boolean hasBrokerBridgePlugins()
boolean hasBrokerCriticalPlugins()
boolean hasBrokerFederationPlugins()
boolean hasBrokerResourcePlugins()
void checkQueueCreationLimit(String username) throws Exception
Exception
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) throws Exception
Exception
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
Exception
SecurityStore getSecurityStore()
Set<ServerSession> getSessions()
HierarchicalRepository<Set<Role>> getSecurityRepository()
HierarchicalRepository<AddressSettings> getAddressSettingsRepository()
OperationContext newOperationContext()
int getConnectionCount()
long getTotalConnectionCount()
long getTotalMessageCount()
long getTotalMessagesAdded()
long getTotalMessagesAcknowledged()
long getTotalConsumerCount()
PostOffice getPostOffice()
void clearAddressCache()
QueueFactory getQueueFactory()
ResourceManager getResourceManager()
MetricsManager getMetricsManager()
List<ServerSession> getSessions(String connectionID)
ServerSession lookupSession(String metakey, String metavalue)
ClusterManager getClusterManager()
SimpleString getNodeID()
boolean isActive()
String getUptime()
long getUptimeMillis()
boolean isReplicaSync()
boolean waitForActivation(long timeout, TimeUnit unit) throws InterruptedException
timeout
- unit
- true
if the server was already initialized or if it was initialized within the
timeout period, false
otherwise.InterruptedException
CountDownLatch.await(long, java.util.concurrent.TimeUnit)
@Deprecated void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) throws Exception
Notice: the queue won't be deleted until the first consumer arrives.
address
- name
- filterString
- durable
- ActiveMQInvalidTransientQueueUseException
- if the shared queue already exists with a different address
or filterString
NullPointerException
- if address
is null
Exception
@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
Exception
@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
Exception
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary) throws Exception
Exception
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception
Exception
@Deprecated Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@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
Exception
@Deprecated Queue createQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary) throws Exception
Exception
@Deprecated Queue deployQueue(String address, String queue, String filter, boolean durable, boolean temporary) throws Exception
Exception
@Deprecated Queue deployQueue(SimpleString address, SimpleString queue, SimpleString filter, boolean durable, boolean temporary) throws Exception
Exception
Queue createQueue(QueueConfiguration queueConfiguration) throws Exception
createQueue(QueueConfiguration, boolean)
where the boolean
parameter is always false
(i.e. if the queue already exists then an exception will be thrown).Exception
createQueue(QueueConfiguration, boolean)
Queue createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) throws Exception
QueueConfiguration
input. See QueueConfiguration
for more
details on configuration specifics.
Some dynamic defaults will be enforced via address-settings for the corresponding unset properties:
maxConsumers
exclusive
groupRebalance
groupBuckets
groupFirstKey
lastValue
lastValueKey
nonDestructive
consumersBeforeDispatch
delayBeforeDispatch
ringSize
routingType
purgeOnNoConsumers
autoCreateAddress
autoDelete
(only set if queue was auto-created)
autoDeleteDelay
autoDeleteMessageCount
queueConfiguration
- the configuration to use when creating the queueignoreIfExists
- whether or not to simply return without an exception if the queue existsQueue
instance that was createdException
void createSharedQueue(QueueConfiguration queueConfiguration) throws Exception
createQueue(QueueConfiguration, boolean)
with a few key exceptions.
If durable
is true
then:
transient
will be forced to false
temporary
will be forced to false
If durable
is false
then:
transient
will be forced to true
temporary
will be forced to true
In all instances autoCreated
will be forced to false
and autoCreatedAddress
will be forced
to true
.
The boolean
passed to createQueue(QueueConfiguration, boolean)
will always be true;
ActiveMQInvalidTransientQueueUseException
- if the shared queue already exists with a different address
or filterString
Exception
createQueue(QueueConfiguration, boolean)
@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
Exception
Queue locateQueue(SimpleString queueName)
default BindingQueryResult bindingQuery(SimpleString address) throws Exception
Exception
BindingQueryResult bindingQuery(SimpleString address, boolean newFQQN) throws Exception
Exception
QueueQueryResult queueQuery(SimpleString name) throws Exception
Exception
AddressQueryResult addressQuery(SimpleString name) throws Exception
Exception
void destroyQueue(SimpleString queueName) throws Exception
Exception
void destroyQueue(SimpleString queueName, SecurityAuth session) throws Exception
Exception
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception
Exception
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception
Exception
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) throws Exception
Exception
void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress, boolean checkMessageCount) throws Exception
Exception
String destroyConnectionWithSessionMetadata(String metaKey, String metaValue) throws Exception
Exception
ScheduledExecutorService getScheduledPool()
ExecutorFactory getExecutorFactory()
ExecutorFactory getIOExecutorFactory()
void setGroupingHandler(GroupingHandler groupingHandler)
GroupingHandler getGroupingHandler()
ReplicationManager getReplicationManager()
FederationManager getFederationManager()
Divert deployDivert(DivertConfiguration config) throws Exception
Exception
Divert updateDivert(DivertConfiguration config) throws Exception
Exception
void destroyDivert(SimpleString name) throws Exception
Exception
ConnectorsService getConnectorsService()
void deployBridge(BridgeConfiguration config) throws Exception
Exception
void deployFederation(FederationConfiguration config) throws Exception
Exception
ServerSession getSessionByID(String sessionID)
void threadDump()
void registerBrokerConnection(BrokerConnection brokerConnection)
Collection<BrokerConnection> getBrokerConnections()
boolean isAddressBound(String address) throws Exception
address
- Exception
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
Exception
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
Exception
@Deprecated Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception
Exception
@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
Exception
@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
Exception
@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
Exception
Queue updateQueue(QueueConfiguration queueConfiguration) throws Exception
QueueConfiguration
with the corresponding properties. Set only the
properties that you wish to change from their existing values. Only the following properties can actually be
updated:
routingType
filter
maxConsumers
purgeOnNoConsumers
exclusive
nonDestructive
groupRebalance
groupFirstKey
groupBuckets
consumersBeforeDispatch
delayBeforeDispatch
configurationManaged
user
ringSize
queueConfiguration
- the QueueConfiguration
to useQueue
instanceException
Queue updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) throws Exception
queueConfiguration
- the QueueConfiguration
to useforceUpdate
- If true
, no null
check is performed and unset queueConfiguration values are reset to null
Queue
instanceException
updateQueue(QueueConfiguration)
void addProtocolManagerFactory(ProtocolManagerFactory factory)
void removeProtocolManagerFactory(ProtocolManagerFactory factory)
ReloadManager getReloadManager()
ActiveMQServer createBackupServer(Configuration configuration)
void addScaledDownNode(SimpleString scaledDownNodeId)
boolean hasScaledDown(SimpleString scaledDownNodeId)
Activation getActivation()
HAPolicy getHAPolicy()
void setHAPolicy(HAPolicy haPolicy)
void setMBeanServer(MBeanServer mBeanServer)
MBeanServer getMBeanServer()
void setSecurityManager(ActiveMQSecurityManager securityManager)
void addExternalComponent(ActiveMQComponent externalComponent, boolean start) throws Exception
ActiveMQServer.SERVER_STATE.STOPPED
or ActiveMQServer.SERVER_STATE.STOPPING
.externalComponent
while being added if start == true
.ActiveMQComponent.stop()
to stop the component right after adding it, but before
starting it.Exception
List<ActiveMQComponent> getExternalComponents()
boolean addClientConnection(String clientId, boolean unique)
void removeClientConnection(String clientId)
Executor getThreadPool()
AddressInfo getAddressInfo(SimpleString address)
boolean updateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) throws Exception
AddressInfo
on the broker with the specified routing types.address
- the name of the AddressInfo
to updateroutingTypes
- the routing types to update the AddressInfo
withtrue
if the AddressInfo
was updated, false
otherwiseException
@Deprecated boolean updateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) throws Exception
Exception
boolean addAddressInfo(AddressInfo addressInfo) throws Exception
AddressInfo
to the brokeraddressInfo
- the AddressInfo
to addtrue
if the AddressInfo
was added, false
otherwiseException
AddressInfo addOrUpdateAddressInfo(AddressInfo addressInfo) throws Exception
addAddressInfo
and updateAddressInfo
. It will
add the AddressInfo
object to the broker if it doesn't exist or update it if it does.addressInfo
- the AddressInfo
to add or the info used to update the existing AddressInfo
AddressInfo
Exception
void removeAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
AddressInfo
from the broker.address
- the AddressInfo
to removeauth
- authorization information; null
is validException
void removeAddressInfo(SimpleString address, SecurityAuth auth, boolean force) throws Exception
AddressInfo
from the broker.address
- the AddressInfo
to removeauth
- authorization information; null
is validforce
- It will disconnect everything from the address including queues and consumersException
String getInternalNamingPrefix()
double getDiskStoreUsage()
Copyright © 2021 JBoss by Red Hat. All rights reserved.