public class ActiveMQServerImpl extends Object implements ActiveMQServer
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveMQServerImpl.DefaultCriticalErrorListener |
ActiveMQServer.SERVER_STATE| Modifier and Type | Field and Description |
|---|---|
protected ExecutorFactory |
executorFactory |
static String |
GENERIC_IGNORED_FILTER
Deprecated.
Replaced by
Filter.GENERIC_IGNORED_FILTER |
static String |
INTERNAL_NAMING_PREFIX |
protected IOCriticalErrorListener |
ioCriticalErrorListener |
protected ExecutorFactory |
ioExecutorFactory
This is a thread pool for io tasks only.
|
protected ScheduledExecutorService |
scheduledPool |
| Constructor and Description |
|---|
ActiveMQServerImpl() |
ActiveMQServerImpl(Configuration configuration) |
ActiveMQServerImpl(Configuration configuration,
ActiveMQSecurityManager securityManager) |
ActiveMQServerImpl(Configuration configuration,
ActiveMQServer parentServer) |
ActiveMQServerImpl(Configuration configuration,
MBeanServer mbeanServer) |
ActiveMQServerImpl(Configuration configuration,
MBeanServer mbeanServer,
ActiveMQSecurityManager securityManager) |
ActiveMQServerImpl(Configuration configuration,
MBeanServer mbeanServer,
ActiveMQSecurityManager securityManager,
ActiveMQServer parentServer) |
ActiveMQServerImpl(Configuration configuration,
MBeanServer mbeanServer,
ActiveMQSecurityManager securityManager,
ActiveMQServer parentServer,
ServiceRegistry serviceRegistry) |
| 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) |
void |
autoRemoveAddressInfo(SimpleString address,
SecurityAuth auth)
Remove an
AddressInfo from the broker. |
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 |
checkJournalDirectory()
Check if journal directory exists or create it (if configured to do so)
|
boolean |
checkLiveIsNotColocated(String nodeId) |
void |
checkQueueCreationLimit(String username) |
void |
clearAddressCache() |
void |
completeActivation(boolean replicated) |
ActiveMQServer |
createBackupServer(Configuration configuration) |
ServerSession |
createInternalSession(String name,
int minLargeMessageSize,
RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
boolean autoCreateQueues,
OperationContext context,
Map<SimpleString,RoutingType> prefixes,
String securityDomain)
This is to be used in places where security is bypassed, like internal sessions, broker connections, etc...
|
protected NodeManager |
createNodeManager(File directory,
boolean replicatingBackup) |
PagingManager |
createPagingManager() |
Queue |
createQueue(AddressInfo addrInfo,
SimpleString queueName,
SimpleString filterString,
SimpleString user,
boolean durable,
boolean temporary,
boolean ignoreIfExists,
boolean transientQueue,
boolean autoCreated,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean groupRebalance,
int groupBuckets,
SimpleString groupFirstKey,
boolean lastValue,
SimpleString lastValueKey,
boolean nonDestructive,
int consumersBeforeDispatch,
long delayBeforeDispatch,
boolean autoDelete,
long autoDeleteDelay,
long autoDeleteMessageCount,
boolean autoCreateAddress,
boolean configurationManaged,
long ringSize)
Deprecated.
|
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
ActiveMQServer.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 filterString,
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 filterString,
SimpleString user,
boolean durable,
boolean temporary,
boolean ignoreIfExists,
boolean transientQueue,
boolean autoCreated,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean groupRebalance,
int groupBuckets,
boolean lastValue,
SimpleString lastValueKey,
boolean nonDestructive,
int consumersBeforeDispatch,
long delayBeforeDispatch,
boolean autoDelete,
long autoDeleteDelay,
long autoDeleteMessageCount,
boolean autoCreateAddress)
Deprecated.
|
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filterString,
SimpleString user,
boolean durable,
boolean temporary,
boolean ignoreIfExists,
boolean transientQueue,
boolean autoCreated,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean groupRebalance,
int groupBuckets,
SimpleString groupFirstKey,
boolean lastValue,
SimpleString lastValueKey,
boolean nonDestructive,
int consumersBeforeDispatch,
long delayBeforeDispatch,
boolean autoDelete,
long autoDeleteDelay,
long autoDeleteMessageCount,
boolean autoCreateAddress)
Deprecated.
|
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filterString,
SimpleString user,
boolean durable,
boolean temporary,
boolean ignoreIfExists,
boolean transientQueue,
boolean autoCreated,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean groupRebalance,
int groupBuckets,
SimpleString groupFirstKey,
boolean lastValue,
SimpleString lastValueKey,
boolean nonDestructive,
int consumersBeforeDispatch,
long delayBeforeDispatch,
boolean autoDelete,
long autoDeleteDelay,
long autoDeleteMessageCount,
boolean autoCreateAddress,
long ringSize)
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 filterString,
boolean durable,
boolean temporary)
Deprecated.
|
ServerSession |
createSession(String name,
String username,
String password,
int minLargeMessageSize,
RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
boolean autoCreateQueues,
OperationContext context,
Map<SimpleString,RoutingType> prefixes,
String securityDomain) |
void |
createSharedQueue(QueueConfiguration queueConfiguration)
This method is essentially the same as
ActiveMQServer.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 autoDeleteDelay,
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.
|
protected StorageManager |
createStorageManager()
This method is protected as it may be used as a hook for creating a custom storage manager (on tests for instance)
|
void |
deployBridge(BridgeConfiguration config) |
Divert |
deployDivert(DivertConfiguration config) |
void |
deployFederation(FederationConfiguration config) |
Queue |
deployQueue(SimpleString address,
SimpleString resourceName,
SimpleString filterString,
boolean durable,
boolean temporary)
Deprecated.
|
Queue |
deployQueue(String address,
String resourceName,
String filterString,
boolean durable,
boolean temporary)
Deprecated.
|
String |
describe() |
void |
destroyBridge(String name) |
String |
destroyConnectionWithSessionMetadata(String metaKey,
String parameterValue) |
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 forceAutoDeleteAddress) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean forceAutoDeleteAddress,
boolean checkMessageCount) |
void |
fail(boolean failoverOnServerShutdown) |
Set<ActivateCallback> |
getActivateCallbacks() |
Activation |
getActivation() |
ActiveMQServerControlImpl |
getActiveMQServerControl()
Returns the resource to manage this ActiveMQ Artemis server.
|
AddressInfo |
getAddressInfo(SimpleString address) |
HierarchicalRepository<AddressSettings> |
getAddressSettingsRepository() |
Runnable |
getAfterActivationCreated()
A Callback for tests
|
BackupManager |
getBackupManager() |
List<ActiveMQServerAddressPlugin> |
getBrokerAddressPlugins() |
List<ActiveMQServerBindingPlugin> |
getBrokerBindingPlugins() |
List<ActiveMQServerBridgePlugin> |
getBrokerBridgePlugins() |
protected BrokerConnection |
getBrokerConnection(String name) |
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() |
FileStoreMonitor |
getMonitor() |
NetworkHealthCheck |
getNetworkHealthCheck() |
SimpleString |
getNodeID() |
NodeManager |
getNodeManager() |
PagingManager |
getPagingManager() |
protected PagingStoreFactory |
getPagingStoreFactory() |
PostOffice |
getPostOffice() |
int |
getQueueCountForUser(String username) |
QueueFactory |
getQueueFactory() |
ReloadManager |
getReloadManager() |
RemotingService |
getRemotingService() |
ReplicationEndpoint |
getReplicationEndpoint() |
ReplicationManager |
getReplicationManager() |
ResourceManager |
getResourceManager() |
String |
getRuntimeTempQueueNamespace(boolean temporary) |
ScheduledExecutorService |
getScheduledPool() |
ActiveMQSecurityManager |
getSecurityManager() |
HierarchicalRepository<Set<Role>> |
getSecurityRepository() |
SecurityStore |
getSecurityStore() |
ServiceRegistry |
getServiceRegistry() |
ServerSession |
getSessionByID(String sessionName) |
Set<ServerSession> |
getSessions() |
List<ServerSession> |
getSessions(String connectionID) |
ActiveMQServer.SERVER_STATE |
getState() |
StorageManager |
getStorageManager() |
ExecutorService |
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) |
protected void |
initializeCriticalAnalyzer() |
void |
injectMonitor(FileStoreMonitor storeMonitor)
This method exists for a possibility of test cases replacing the FileStoreMonitor for an extension that would for instance pretend a disk full on certain tests.
|
void |
installMirrorController(MirrorController mirrorController) |
protected ServerSessionImpl |
internalCreateSession(String name,
String username,
String password,
String validatedUser,
int minLargeMessageSize,
RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
OperationContext context,
boolean autoCreateQueues,
Map<SimpleString,RoutingType> prefixes,
String securityDomain) |
void |
interruptActivationThread(NodeManager nodeManagerInUse) |
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.
|
boolean |
isStarted() |
Queue |
locateQueue(SimpleString queueName) |
void |
lockActivation()
it will hold a lock for the activation.
|
ServerSession |
lookupSession(String key,
String value) |
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 |
reloadNetworkHealthCheck() |
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 |
replaceQueueFactory(QueueFactory factory)
For tests only, don't use this method as it's not part of the API
|
void |
resetNodeManager() |
void |
scanAddresses(MirrorController mirrorController)
This method will scan all queues and addresses.
|
void |
setActivation(SharedNothingLiveActivation activation) |
ActiveMQServerImpl |
setAfterActivationCreated(Runnable afterActivationCreated)
A Callback for tests
|
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 |
start() |
void |
startBrokerConnection(String name) |
void |
stop() |
void |
stop(boolean isShutdown) |
void |
stop(boolean failoverOnServerShutdown,
boolean isExit) |
void |
stop(boolean failoverOnServerShutdown,
boolean criticalIOError,
boolean restarting) |
void |
stopBrokerConnection(String name) |
void |
stopTheServer(boolean criticalIOError)
Stops the server in a different thread.
|
void |
threadDump() |
String |
toString() |
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) |
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 groupFirstKey,
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 groupFirstKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
String user,
Long ringSize)
Deprecated.
|
boolean |
waitForActivation(long timeout,
TimeUnit unit)
Wait for server initialization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbindingQuery, locateQueueasyncStoppublic static final String INTERNAL_NAMING_PREFIX
@Deprecated public static final String GENERIC_IGNORED_FILTER
Filter.GENERIC_IGNORED_FILTERprotected volatile ScheduledExecutorService scheduledPool
protected volatile ExecutorFactory executorFactory
protected volatile ExecutorFactory ioExecutorFactory
protected final IOCriticalErrorListener ioCriticalErrorListener
public ActiveMQServerImpl()
public ActiveMQServerImpl(Configuration configuration)
public ActiveMQServerImpl(Configuration configuration, ActiveMQServer parentServer)
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer)
public ActiveMQServerImpl(Configuration configuration, ActiveMQSecurityManager securityManager)
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager)
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer)
public ActiveMQServerImpl(Configuration configuration, MBeanServer mbeanServer, ActiveMQSecurityManager securityManager, ActiveMQServer parentServer, ServiceRegistry serviceRegistry)
public ReloadManager getReloadManager()
getReloadManager in interface ActiveMQServerpublic NetworkHealthCheck getNetworkHealthCheck()
getNetworkHealthCheck in interface ActiveMQServerpublic Runnable getAfterActivationCreated()
public ActiveMQServerImpl setAfterActivationCreated(Runnable afterActivationCreated)
afterActivationCreated - protected NodeManager createNodeManager(File directory, boolean replicatingBackup)
public OperationContext newOperationContext()
newOperationContext in interface ActiveMQServerpublic final void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic void reloadNetworkHealthCheck()
public CriticalAnalyzer getCriticalAnalyzer()
getCriticalAnalyzer in interface ActiveMQServerprotected void initializeCriticalAnalyzer()
throws Exception
Exceptionpublic ReplicationEndpoint getReplicationEndpoint()
getReplicationEndpoint in interface ActiveMQServerpublic void unlockActivation()
ActiveMQServerunlockActivation in interface ActiveMQServerpublic void lockActivation()
ActiveMQServerlockActivation in interface ActiveMQServerpublic void setState(ActiveMQServer.SERVER_STATE state)
setState in interface ActiveMQServerpublic ActiveMQServer.SERVER_STATE getState()
getState in interface ActiveMQServerpublic void interruptActivationThread(NodeManager nodeManagerInUse) throws InterruptedException
InterruptedExceptionpublic Activation getActivation()
getActivation in interface ActiveMQServerpublic HAPolicy getHAPolicy()
getHAPolicy in interface ActiveMQServerpublic void setHAPolicy(HAPolicy haPolicy)
setHAPolicy in interface ActiveMQServerpublic void setMBeanServer(MBeanServer mbeanServer)
setMBeanServer in interface ActiveMQServerpublic MBeanServer getMBeanServer()
getMBeanServer in interface ActiveMQServerpublic void setSecurityManager(ActiveMQSecurityManager securityManager)
setSecurityManager in interface ActiveMQServerpublic void addExternalComponent(ActiveMQComponent externalComponent, boolean start) throws Exception
ActiveMQServerActiveMQServer.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.addExternalComponent in interface ActiveMQServerExceptionpublic ExecutorService getThreadPool()
getThreadPool in interface ActiveMQServerpublic void setActivation(SharedNothingLiveActivation activation)
public final void stopTheServer(boolean criticalIOError)
public void stop()
throws Exception
stop in interface ActiveMQComponentExceptionpublic void stop(boolean isShutdown)
throws Exception
stop in interface ServiceComponentExceptionpublic void addActivationParam(String key, Object val)
addActivationParam in interface ActiveMQServerpublic boolean isAddressBound(String address) throws Exception
ActiveMQServerisAddressBound in interface ActiveMQServerExceptionpublic BindingQueryResult bindingQuery(SimpleString address, boolean newFQQN) throws Exception
bindingQuery in interface ActiveMQServerExceptionpublic QueueQueryResult queueQuery(SimpleString name)
queueQuery in interface ActiveMQServerpublic AddressQueryResult addressQuery(SimpleString name) throws Exception
addressQuery in interface ActiveMQServerExceptionpublic void registerBrokerConnection(BrokerConnection brokerConnection)
registerBrokerConnection in interface ActiveMQServerpublic void startBrokerConnection(String name) throws Exception
startBrokerConnection in interface ActiveMQServerExceptionprotected BrokerConnection getBrokerConnection(String name)
public void stopBrokerConnection(String name) throws Exception
stopBrokerConnection in interface ActiveMQServerExceptionpublic Collection<BrokerConnection> getBrokerConnections()
getBrokerConnections in interface ActiveMQServerpublic void threadDump()
threadDump in interface ActiveMQServerpublic final void fail(boolean failoverOnServerShutdown)
throws Exception
fail in interface ActiveMQServerExceptionpublic final void stop(boolean failoverOnServerShutdown,
boolean isExit)
throws Exception
stop in interface ActiveMQServerExceptionpublic boolean isReplicaSync()
ActiveMQServerisReplicaSync in interface ActiveMQServerpublic void stop(boolean failoverOnServerShutdown,
boolean criticalIOError,
boolean restarting)
public boolean checkLiveIsNotColocated(String nodeId)
public String describe()
describe in interface ActiveMQServerpublic String destroyConnectionWithSessionMetadata(String metaKey, String parameterValue) throws Exception
destroyConnectionWithSessionMetadata in interface ActiveMQServerExceptionpublic void setIdentity(String identity)
ActiveMQServerThe 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.
setIdentity in interface ActiveMQServerpublic String getIdentity()
getIdentity in interface ActiveMQServerpublic ScheduledExecutorService getScheduledPool()
getScheduledPool in interface ActiveMQServerpublic Configuration getConfiguration()
getConfiguration in interface ActiveMQServerpublic PagingManager getPagingManager()
getPagingManager in interface ActiveMQServerpublic RemotingService getRemotingService()
getRemotingService in interface ActiveMQServerpublic StorageManager getStorageManager()
getStorageManager in interface ActiveMQServerpublic ActiveMQSecurityManager getSecurityManager()
getSecurityManager in interface ActiveMQServerpublic ManagementService getManagementService()
getManagementService in interface ActiveMQServerpublic HierarchicalRepository<Set<Role>> getSecurityRepository()
getSecurityRepository in interface ActiveMQServerpublic NodeManager getNodeManager()
getNodeManager in interface ActiveMQServerpublic HierarchicalRepository<AddressSettings> getAddressSettingsRepository()
getAddressSettingsRepository in interface ActiveMQServerpublic ResourceManager getResourceManager()
getResourceManager in interface ActiveMQServerpublic MetricsManager getMetricsManager()
getMetricsManager in interface ActiveMQServerpublic Version getVersion()
getVersion in interface ActiveMQServerpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic ClusterManager getClusterManager()
getClusterManager in interface ActiveMQServerpublic BackupManager getBackupManager()
public ServerSession createSession(String name, String username, String password, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain) throws Exception
createSession in interface ActiveMQServerExceptionpublic ServerSession createInternalSession(String name, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain) throws Exception
ActiveMQServercreateInternalSession in interface ActiveMQServerExceptionpublic void checkQueueCreationLimit(String username) throws Exception
checkQueueCreationLimit in interface ActiveMQServerExceptionpublic int getQueueCountForUser(String username) throws Exception
Exceptionprotected ServerSessionImpl internalCreateSession(String name, String username, String password, String validatedUser, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, OperationContext context, boolean autoCreateQueues, Map<SimpleString,RoutingType> prefixes, String securityDomain) throws Exception
Exceptionpublic SecurityStore getSecurityStore()
getSecurityStore in interface ActiveMQServerpublic void removeSession(String name) throws Exception
removeSession in interface ActiveMQServerExceptionpublic ServerSession lookupSession(String key, String value)
lookupSession in interface ActiveMQServerpublic List<ServerSession> getSessions(String connectionID)
getSessions in interface ActiveMQServerpublic Set<ServerSession> getSessions()
getSessions in interface ActiveMQServerpublic boolean isActive()
isActive in interface ActiveMQServerpublic boolean waitForActivation(long timeout,
TimeUnit unit)
throws InterruptedException
ActiveMQServerwaitForActivation in interface ActiveMQServertrue if the server was already initialized or if it was initialized within the
timeout period, false otherwise.InterruptedExceptionCountDownLatch.await(long, java.util.concurrent.TimeUnit)public ActiveMQServerControlImpl getActiveMQServerControl()
ActiveMQServergetActiveMQServerControl in interface ActiveMQServerpublic int getConnectionCount()
getConnectionCount in interface ActiveMQServerpublic long getTotalConnectionCount()
getTotalConnectionCount in interface ActiveMQServerpublic long getTotalMessageCount()
getTotalMessageCount in interface ActiveMQServerpublic long getTotalMessagesAdded()
getTotalMessagesAdded in interface ActiveMQServerpublic long getTotalMessagesAcknowledged()
getTotalMessagesAcknowledged in interface ActiveMQServerpublic long getTotalConsumerCount()
getTotalConsumerCount in interface ActiveMQServerpublic PostOffice getPostOffice()
getPostOffice in interface ActiveMQServerpublic QueueFactory getQueueFactory()
getQueueFactory in interface ActiveMQServerpublic SimpleString getNodeID()
getNodeID in interface ActiveMQServer@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(AddressInfo addressInfo, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, SimpleString groupFirstKey, Boolean lastValue, SimpleString lastValueKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, Boolean autoDelete, Long autoDeleteDelay, Long autoDeleteMessageCount, boolean autoCreateAddress, Long ringSize) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) throws Exception
ActiveMQServerNotice: the queue won't be deleted until the first consumer arrives.
createSharedQueue in interface ActiveMQServerActiveMQInvalidTransientQueueUseException - if the shared queue already exists with a different address or filterStringNullPointerException - if address is nullException@Deprecated public void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean lastValue) throws Exception
createSharedQueue in interface ActiveMQServerException@Deprecated public 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 autoDeleteDelay, long autoDeleteMessageCount) throws Exception
createSharedQueue in interface ActiveMQServerException@Deprecated public 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
createSharedQueue in interface ActiveMQServerExceptionpublic void createSharedQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServerActiveMQServer.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 ActiveMQServer.createQueue(QueueConfiguration, boolean) will always be true;
createSharedQueue in interface ActiveMQServerActiveMQInvalidTransientQueueUseException - if the shared queue already exists with a different address or filterStringExceptionActiveMQServer.createQueue(QueueConfiguration, boolean)public Queue locateQueue(SimpleString queueName)
locateQueue in interface ActiveMQServer@Deprecated public Queue deployQueue(SimpleString address, SimpleString resourceName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
deployQueue in interface ActiveMQServerException@Deprecated public Queue deployQueue(String address, String resourceName, String filterString, boolean durable, boolean temporary) throws Exception
deployQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName, SecurityAuth session) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean forceAutoDeleteAddress, boolean checkMessageCount) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void clearAddressCache()
clearAddressCache in interface ActiveMQServerpublic void registerActivateCallback(ActivateCallback callback)
registerActivateCallback in interface ActiveMQServerpublic void unregisterActivateCallback(ActivateCallback callback)
unregisterActivateCallback in interface ActiveMQServerpublic void registerActivationFailureListener(ActivationFailureListener listener)
ActiveMQServerregisterActivationFailureListener in interface ActiveMQServerlistener - @see org.apache.activemq.artemis.core.server.ActivationFailureListenerpublic void unregisterActivationFailureListener(ActivationFailureListener listener)
ActiveMQServerunregisterActivationFailureListener in interface ActiveMQServerpublic void callActivationFailureListeners(Exception e)
ActiveMQServercallActivationFailureListeners in interface ActiveMQServere - the exception that caused the activation failurepublic void registerPostQueueCreationCallback(PostQueueCreationCallback callback)
registerPostQueueCreationCallback in interface ActiveMQServercallback - PostQueueCreationCallbackpublic void unregisterPostQueueCreationCallback(PostQueueCreationCallback callback)
unregisterPostQueueCreationCallback in interface ActiveMQServercallback - PostQueueCreationCallbackpublic void callPostQueueCreationCallbacks(SimpleString queueName) throws Exception
callPostQueueCreationCallbacks in interface ActiveMQServerExceptionpublic void registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
registerPostQueueDeletionCallback in interface ActiveMQServercallback - PostQueueDeletionCallbackpublic void unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
unregisterPostQueueDeletionCallback in interface ActiveMQServercallback - PostQueueDeletionCallbackpublic void callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception
callPostQueueDeletionCallbacks in interface ActiveMQServerExceptionpublic void registerBrokerPlugins(List<ActiveMQServerBasePlugin> plugins)
registerBrokerPlugins in interface ActiveMQServerpublic void registerBrokerPlugin(ActiveMQServerBasePlugin plugin)
registerBrokerPlugin in interface ActiveMQServerpublic void unRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin)
unRegisterBrokerPlugin in interface ActiveMQServerpublic List<ActiveMQServerBasePlugin> getBrokerPlugins()
getBrokerPlugins in interface ActiveMQServerpublic List<ActiveMQServerConnectionPlugin> getBrokerConnectionPlugins()
getBrokerConnectionPlugins in interface ActiveMQServerpublic List<ActiveMQServerSessionPlugin> getBrokerSessionPlugins()
getBrokerSessionPlugins in interface ActiveMQServerpublic List<ActiveMQServerConsumerPlugin> getBrokerConsumerPlugins()
getBrokerConsumerPlugins in interface ActiveMQServerpublic List<ActiveMQServerAddressPlugin> getBrokerAddressPlugins()
getBrokerAddressPlugins in interface ActiveMQServerpublic List<ActiveMQServerQueuePlugin> getBrokerQueuePlugins()
getBrokerQueuePlugins in interface ActiveMQServerpublic List<ActiveMQServerBindingPlugin> getBrokerBindingPlugins()
getBrokerBindingPlugins in interface ActiveMQServerpublic List<ActiveMQServerMessagePlugin> getBrokerMessagePlugins()
getBrokerMessagePlugins in interface ActiveMQServerpublic List<ActiveMQServerBridgePlugin> getBrokerBridgePlugins()
getBrokerBridgePlugins in interface ActiveMQServerpublic List<ActiveMQServerCriticalPlugin> getBrokerCriticalPlugins()
getBrokerCriticalPlugins in interface ActiveMQServerpublic List<ActiveMQServerFederationPlugin> getBrokerFederationPlugins()
getBrokerFederationPlugins in interface ActiveMQServerpublic List<ActiveMQServerResourcePlugin> getBrokerResourcePlugins()
getBrokerResourcePlugins in interface ActiveMQServerpublic void callBrokerPlugins(ActiveMQPluginRunnable pluginRun) throws ActiveMQException
callBrokerPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) throws ActiveMQException
callBrokerConnectionPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) throws ActiveMQException
callBrokerSessionPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) throws ActiveMQException
callBrokerConsumerPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) throws ActiveMQException
callBrokerAddressPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) throws ActiveMQException
callBrokerQueuePlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) throws ActiveMQException
callBrokerBindingPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) throws ActiveMQException
callBrokerMessagePlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) throws ActiveMQException
callBrokerBridgePlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) throws ActiveMQException
callBrokerCriticalPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) throws ActiveMQException
callBrokerFederationPlugins in interface ActiveMQServerActiveMQExceptionpublic void callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) throws ActiveMQException
callBrokerResourcePlugins in interface ActiveMQServerActiveMQExceptionpublic boolean hasBrokerPlugins()
hasBrokerPlugins in interface ActiveMQServerpublic boolean hasBrokerConnectionPlugins()
hasBrokerConnectionPlugins in interface ActiveMQServerpublic boolean hasBrokerSessionPlugins()
hasBrokerSessionPlugins in interface ActiveMQServerpublic boolean hasBrokerConsumerPlugins()
hasBrokerConsumerPlugins in interface ActiveMQServerpublic boolean hasBrokerAddressPlugins()
hasBrokerAddressPlugins in interface ActiveMQServerpublic boolean hasBrokerQueuePlugins()
hasBrokerQueuePlugins in interface ActiveMQServerpublic boolean hasBrokerBindingPlugins()
hasBrokerBindingPlugins in interface ActiveMQServerpublic boolean hasBrokerMessagePlugins()
hasBrokerMessagePlugins in interface ActiveMQServerpublic boolean hasBrokerBridgePlugins()
hasBrokerBridgePlugins in interface ActiveMQServerpublic boolean hasBrokerCriticalPlugins()
hasBrokerCriticalPlugins in interface ActiveMQServerpublic boolean hasBrokerFederationPlugins()
hasBrokerFederationPlugins in interface ActiveMQServerpublic boolean hasBrokerResourcePlugins()
hasBrokerResourcePlugins in interface ActiveMQServerpublic ExecutorFactory getExecutorFactory()
getExecutorFactory in interface ActiveMQServerpublic ExecutorFactory getIOExecutorFactory()
getIOExecutorFactory in interface ActiveMQServerpublic void setGroupingHandler(GroupingHandler groupingHandler)
setGroupingHandler in interface ActiveMQServerpublic GroupingHandler getGroupingHandler()
getGroupingHandler in interface ActiveMQServerpublic ReplicationManager getReplicationManager()
getReplicationManager in interface ActiveMQServerpublic ConnectorsService getConnectorsService()
getConnectorsService in interface ActiveMQServerpublic FederationManager getFederationManager()
getFederationManager in interface ActiveMQServerpublic Divert deployDivert(DivertConfiguration config) throws Exception
deployDivert in interface ActiveMQServerExceptionpublic Divert updateDivert(DivertConfiguration config) throws Exception
updateDivert in interface ActiveMQServerExceptionpublic void destroyDivert(SimpleString name) throws Exception
destroyDivert in interface ActiveMQServerExceptionpublic void deployBridge(BridgeConfiguration config) throws Exception
deployBridge in interface ActiveMQServerExceptionpublic void destroyBridge(String name) throws Exception
destroyBridge in interface ActiveMQServerExceptionpublic void deployFederation(FederationConfiguration config) throws Exception
deployFederation in interface ActiveMQServerExceptionpublic void undeployFederation(String name) throws Exception
undeployFederation in interface ActiveMQServerExceptionpublic ServerSession getSessionByID(String sessionName)
getSessionByID in interface ActiveMQServerpublic void replaceQueueFactory(QueueFactory factory)
factory - public PagingManager createPagingManager() throws Exception
createPagingManager in interface ActiveMQServerExceptionprotected PagingStoreFactory getPagingStoreFactory() throws Exception
Exceptionprotected StorageManager createStorageManager()
public ServiceRegistry getServiceRegistry()
getServiceRegistry in interface ActiveMQServerpublic void installMirrorController(MirrorController mirrorController)
installMirrorController in interface ActiveMQServerpublic void scanAddresses(MirrorController mirrorController) throws Exception
ActiveMQServerscanAddresses in interface ActiveMQServerExceptionpublic MirrorController getMirrorController()
getMirrorController in interface ActiveMQServerpublic void removeMirrorControl()
removeMirrorControl in interface ActiveMQServerpublic void injectMonitor(FileStoreMonitor storeMonitor) throws Exception
Exceptionpublic FileStoreMonitor getMonitor()
public void completeActivation(boolean replicated)
throws Exception
Exceptionpublic double getDiskStoreUsage()
getDiskStoreUsage in interface ActiveMQServerpublic boolean updateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) throws Exception
ActiveMQServerAddressInfo on the broker with the specified routing types.updateAddressInfo in interface ActiveMQServeraddress - the name of the AddressInfo to updateroutingTypes - the routing types to update the AddressInfo withtrue if the AddressInfo was updated, false otherwiseExceptionpublic boolean updateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) throws Exception
updateAddressInfo in interface ActiveMQServerExceptionpublic boolean addAddressInfo(AddressInfo addressInfo) throws Exception
ActiveMQServerAddressInfo to the brokeraddAddressInfo in interface ActiveMQServeraddressInfo - the AddressInfo to addtrue if the AddressInfo was added, false otherwiseExceptionpublic AddressInfo addOrUpdateAddressInfo(AddressInfo addressInfo) throws Exception
ActiveMQServeraddAddressInfo and updateAddressInfo. It will
add the AddressInfo object to the broker if it doesn't exist or update it if it does.addOrUpdateAddressInfo in interface ActiveMQServeraddressInfo - the AddressInfo to add or the info used to update the existing AddressInfoAddressInfoExceptionpublic void removeAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
ActiveMQServerAddressInfo from the broker.removeAddressInfo in interface ActiveMQServeraddress - the AddressInfo to removeauth - authorization information; null is validExceptionpublic void autoRemoveAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
ActiveMQServerAddressInfo from the broker.autoRemoveAddressInfo in interface ActiveMQServeraddress - the AddressInfo to removeauth - authorization information; null is validExceptionpublic void removeAddressInfo(SimpleString address, SecurityAuth auth, boolean force) throws Exception
ActiveMQServerAddressInfo from the broker.removeAddressInfo in interface ActiveMQServeraddress - the AddressInfo to removeauth - authorization information; null is validforce - It will disconnect everything from the address including queues and consumersExceptionpublic String getInternalNamingPrefix()
getInternalNamingPrefix in interface ActiveMQServerpublic AddressInfo getAddressInfo(SimpleString address)
getAddressInfo in interface ActiveMQServer@Deprecated public Queue createQueue(AddressInfo addrInfo, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, boolean configurationManaged, long ringSize) throws Exception
Exceptionpublic Queue createQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServerActiveMQServer.createQueue(QueueConfiguration, boolean) where the boolean
parameter is always false (i.e. if the queue already exists then an exception will be thrown).createQueue in interface ActiveMQServerExceptionActiveMQServer.createQueue(QueueConfiguration, boolean)public Queue createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) throws Exception
ActiveMQServerQueueConfiguration 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
createQueue in interface ActiveMQServerqueueConfiguration - the configuration to use when creating the queueignoreIfExists - whether or not to simply return without an exception if the queue existsQueue instance that was createdExceptionpublic String getRuntimeTempQueueNamespace(boolean temporary)
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, SimpleString user, boolean durable, boolean temporary, boolean ignoreIfExists, boolean transientQueue, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, SimpleString groupFirstKey, boolean lastValue, SimpleString lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) throws Exception
createQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
updateQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
updateQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception
updateQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception
updateQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception
updateQueue in interface ActiveMQServerException@Deprecated public Queue updateQueue(String name, RoutingType routingType, String filterString, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize) throws Exception
updateQueue in interface ActiveMQServerExceptionpublic Queue updateQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServerQueueConfiguration 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
updateQueue in interface ActiveMQServerqueueConfiguration - the QueueConfiguration to useQueue instanceExceptionpublic Queue updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) throws Exception
updateQueue in interface ActiveMQServerqueueConfiguration - the QueueConfiguration to useforceUpdate - If true, no null check is performed and unset queueConfiguration values are reset to nullQueue instanceExceptionActiveMQServer.updateQueue(QueueConfiguration)public void checkJournalDirectory()
public void addProtocolManagerFactory(ProtocolManagerFactory factory)
addProtocolManagerFactory in interface ActiveMQServerpublic void removeProtocolManagerFactory(ProtocolManagerFactory factory)
removeProtocolManagerFactory in interface ActiveMQServerpublic ActiveMQServer createBackupServer(Configuration configuration)
createBackupServer in interface ActiveMQServerpublic void addScaledDownNode(SimpleString scaledDownNodeId)
addScaledDownNode in interface ActiveMQServerpublic boolean hasScaledDown(SimpleString scaledDownNodeId)
hasScaledDown in interface ActiveMQServerpublic String getUptime()
getUptime in interface ActiveMQServerpublic long getUptimeMillis()
getUptimeMillis in interface ActiveMQServerpublic boolean addClientConnection(String clientId, boolean unique)
addClientConnection in interface ActiveMQServerpublic void removeClientConnection(String clientId)
removeClientConnection in interface ActiveMQServerpublic Set<ActivateCallback> getActivateCallbacks()
public List<ActiveMQComponent> getExternalComponents()
getExternalComponents in interface ActiveMQServerCopyright © 2025 JBoss by Red Hat. All rights reserved.