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) |
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 autoDeleteAddress) |
void |
destroyQueue(SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers,
boolean autoDeleteAddress,
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) |
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, wait
bindingQuery, locateQueue
asyncStop
public static final String INTERNAL_NAMING_PREFIX
@Deprecated public static final String GENERIC_IGNORED_FILTER
Filter.GENERIC_IGNORED_FILTER
protected 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 ActiveMQServer
public NetworkHealthCheck getNetworkHealthCheck()
getNetworkHealthCheck
in interface ActiveMQServer
public Runnable getAfterActivationCreated()
public ActiveMQServerImpl setAfterActivationCreated(Runnable afterActivationCreated)
afterActivationCreated
- protected NodeManager createNodeManager(File directory, boolean replicatingBackup)
public OperationContext newOperationContext()
newOperationContext
in interface ActiveMQServer
public final void start() throws Exception
start
in interface ActiveMQComponent
Exception
public void reloadNetworkHealthCheck()
public CriticalAnalyzer getCriticalAnalyzer()
getCriticalAnalyzer
in interface ActiveMQServer
public ReplicationEndpoint getReplicationEndpoint()
getReplicationEndpoint
in interface ActiveMQServer
public void unlockActivation()
ActiveMQServer
unlockActivation
in interface ActiveMQServer
public void lockActivation()
ActiveMQServer
lockActivation
in interface ActiveMQServer
public void setState(ActiveMQServer.SERVER_STATE state)
setState
in interface ActiveMQServer
public ActiveMQServer.SERVER_STATE getState()
getState
in interface ActiveMQServer
public void interruptActivationThread(NodeManager nodeManagerInUse) throws InterruptedException
InterruptedException
public Activation getActivation()
getActivation
in interface ActiveMQServer
public HAPolicy getHAPolicy()
getHAPolicy
in interface ActiveMQServer
public void setHAPolicy(HAPolicy haPolicy)
setHAPolicy
in interface ActiveMQServer
public void setMBeanServer(MBeanServer mbeanServer)
setMBeanServer
in interface ActiveMQServer
public MBeanServer getMBeanServer()
getMBeanServer
in interface ActiveMQServer
public void setSecurityManager(ActiveMQSecurityManager securityManager)
setSecurityManager
in interface ActiveMQServer
public void addExternalComponent(ActiveMQComponent externalComponent, boolean start) throws Exception
ActiveMQServer
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.addExternalComponent
in interface ActiveMQServer
Exception
public ExecutorService getThreadPool()
getThreadPool
in interface ActiveMQServer
public void setActivation(SharedNothingLiveActivation activation)
public final void stopTheServer(boolean criticalIOError)
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public void stop(boolean isShutdown) throws Exception
stop
in interface ServiceComponent
Exception
public void addActivationParam(String key, Object val)
addActivationParam
in interface ActiveMQServer
public boolean isAddressBound(String address) throws Exception
ActiveMQServer
isAddressBound
in interface ActiveMQServer
Exception
public BindingQueryResult bindingQuery(SimpleString address, boolean newFQQN) throws Exception
bindingQuery
in interface ActiveMQServer
Exception
public QueueQueryResult queueQuery(SimpleString name)
queueQuery
in interface ActiveMQServer
public AddressQueryResult addressQuery(SimpleString name) throws Exception
addressQuery
in interface ActiveMQServer
Exception
public void registerBrokerConnection(BrokerConnection brokerConnection)
registerBrokerConnection
in interface ActiveMQServer
public void startBrokerConnection(String name) throws Exception
startBrokerConnection
in interface ActiveMQServer
Exception
protected BrokerConnection getBrokerConnection(String name)
public void stopBrokerConnection(String name) throws Exception
stopBrokerConnection
in interface ActiveMQServer
Exception
public Collection<BrokerConnection> getBrokerConnections()
getBrokerConnections
in interface ActiveMQServer
public void threadDump()
threadDump
in interface ActiveMQServer
public final void fail(boolean failoverOnServerShutdown) throws Exception
fail
in interface ActiveMQServer
Exception
public final void stop(boolean failoverOnServerShutdown, boolean isExit) throws Exception
stop
in interface ActiveMQServer
Exception
public boolean isReplicaSync()
ActiveMQServer
isReplicaSync
in interface ActiveMQServer
public void stop(boolean failoverOnServerShutdown, boolean criticalIOError, boolean restarting)
public boolean checkLiveIsNotColocated(String nodeId)
public String describe()
describe
in interface ActiveMQServer
public String destroyConnectionWithSessionMetadata(String metaKey, String parameterValue) throws Exception
destroyConnectionWithSessionMetadata
in interface ActiveMQServer
Exception
public void setIdentity(String identity)
ActiveMQServer
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.
setIdentity
in interface ActiveMQServer
public String getIdentity()
getIdentity
in interface ActiveMQServer
public ScheduledExecutorService getScheduledPool()
getScheduledPool
in interface ActiveMQServer
public Configuration getConfiguration()
getConfiguration
in interface ActiveMQServer
public PagingManager getPagingManager()
getPagingManager
in interface ActiveMQServer
public RemotingService getRemotingService()
getRemotingService
in interface ActiveMQServer
public StorageManager getStorageManager()
getStorageManager
in interface ActiveMQServer
public ActiveMQSecurityManager getSecurityManager()
getSecurityManager
in interface ActiveMQServer
public ManagementService getManagementService()
getManagementService
in interface ActiveMQServer
public HierarchicalRepository<Set<Role>> getSecurityRepository()
getSecurityRepository
in interface ActiveMQServer
public NodeManager getNodeManager()
getNodeManager
in interface ActiveMQServer
public HierarchicalRepository<AddressSettings> getAddressSettingsRepository()
getAddressSettingsRepository
in interface ActiveMQServer
public ResourceManager getResourceManager()
getResourceManager
in interface ActiveMQServer
public MetricsManager getMetricsManager()
getMetricsManager
in interface ActiveMQServer
public Version getVersion()
getVersion
in interface ActiveMQServer
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public ClusterManager getClusterManager()
getClusterManager
in interface ActiveMQServer
public 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 ActiveMQServer
Exception
public ServerSession createInternalSession(String name, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context, Map<SimpleString,RoutingType> prefixes, String securityDomain) throws Exception
ActiveMQServer
createInternalSession
in interface ActiveMQServer
Exception
public void checkQueueCreationLimit(String username) throws Exception
checkQueueCreationLimit
in interface ActiveMQServer
Exception
public int getQueueCountForUser(String username) throws Exception
Exception
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) throws Exception
Exception
public SecurityStore getSecurityStore()
getSecurityStore
in interface ActiveMQServer
public void removeSession(String name) throws Exception
removeSession
in interface ActiveMQServer
Exception
public ServerSession lookupSession(String key, String value)
lookupSession
in interface ActiveMQServer
public List<ServerSession> getSessions(String connectionID)
getSessions
in interface ActiveMQServer
public Set<ServerSession> getSessions()
getSessions
in interface ActiveMQServer
public boolean isActive()
isActive
in interface ActiveMQServer
public boolean waitForActivation(long timeout, TimeUnit unit) throws InterruptedException
ActiveMQServer
waitForActivation
in interface ActiveMQServer
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)
public ActiveMQServerControlImpl getActiveMQServerControl()
ActiveMQServer
getActiveMQServerControl
in interface ActiveMQServer
public int getConnectionCount()
getConnectionCount
in interface ActiveMQServer
public long getTotalConnectionCount()
getTotalConnectionCount
in interface ActiveMQServer
public long getTotalMessageCount()
getTotalMessageCount
in interface ActiveMQServer
public long getTotalMessagesAdded()
getTotalMessagesAdded
in interface ActiveMQServer
public long getTotalMessagesAcknowledged()
getTotalMessagesAcknowledged
in interface ActiveMQServer
public long getTotalConsumerCount()
getTotalConsumerCount
in interface ActiveMQServer
public PostOffice getPostOffice()
getPostOffice
in interface ActiveMQServer
public QueueFactory getQueueFactory()
getQueueFactory
in interface ActiveMQServer
public 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 ActiveMQServer
Exception
@Deprecated public Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue
in interface ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@Deprecated public Queue createQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue
in interface ActiveMQServer
Exception
@Deprecated public void createSharedQueue(SimpleString address, RoutingType routingType, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) throws Exception
ActiveMQServer
Notice: the queue won't be deleted until the first consumer arrives.
createSharedQueue
in interface ActiveMQServer
ActiveMQInvalidTransientQueueUseException
- if the shared queue already exists with a different address
or filterString
NullPointerException
- if address
is null
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
public void createSharedQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServer
ActiveMQServer.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 ActiveMQServer
ActiveMQInvalidTransientQueueUseException
- if the shared queue already exists with a different address
or filterString
Exception
ActiveMQServer.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 ActiveMQServer
Exception
@Deprecated public Queue deployQueue(String address, String resourceName, String filterString, boolean durable, boolean temporary) throws Exception
deployQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName, SecurityAuth session) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress, boolean checkMessageCount) throws Exception
destroyQueue
in interface ActiveMQServer
Exception
public void clearAddressCache()
clearAddressCache
in interface ActiveMQServer
public void registerActivateCallback(ActivateCallback callback)
registerActivateCallback
in interface ActiveMQServer
public void unregisterActivateCallback(ActivateCallback callback)
unregisterActivateCallback
in interface ActiveMQServer
public void registerActivationFailureListener(ActivationFailureListener listener)
ActiveMQServer
registerActivationFailureListener
in interface ActiveMQServer
listener
- @see org.apache.activemq.artemis.core.server.ActivationFailureListenerpublic void unregisterActivationFailureListener(ActivationFailureListener listener)
ActiveMQServer
unregisterActivationFailureListener
in interface ActiveMQServer
public void callActivationFailureListeners(Exception e)
ActiveMQServer
callActivationFailureListeners
in interface ActiveMQServer
e
- the exception that caused the activation failurepublic void registerPostQueueCreationCallback(PostQueueCreationCallback callback)
registerPostQueueCreationCallback
in interface ActiveMQServer
callback
- PostQueueCreationCallback
public void unregisterPostQueueCreationCallback(PostQueueCreationCallback callback)
unregisterPostQueueCreationCallback
in interface ActiveMQServer
callback
- PostQueueCreationCallback
public void callPostQueueCreationCallbacks(SimpleString queueName) throws Exception
callPostQueueCreationCallbacks
in interface ActiveMQServer
Exception
public void registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
registerPostQueueDeletionCallback
in interface ActiveMQServer
callback
- PostQueueDeletionCallback
public void unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
unregisterPostQueueDeletionCallback
in interface ActiveMQServer
callback
- PostQueueDeletionCallback
public void callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception
callPostQueueDeletionCallbacks
in interface ActiveMQServer
Exception
public void registerBrokerPlugins(List<ActiveMQServerBasePlugin> plugins)
registerBrokerPlugins
in interface ActiveMQServer
public void registerBrokerPlugin(ActiveMQServerBasePlugin plugin)
registerBrokerPlugin
in interface ActiveMQServer
public void unRegisterBrokerPlugin(ActiveMQServerBasePlugin plugin)
unRegisterBrokerPlugin
in interface ActiveMQServer
public List<ActiveMQServerBasePlugin> getBrokerPlugins()
getBrokerPlugins
in interface ActiveMQServer
public List<ActiveMQServerConnectionPlugin> getBrokerConnectionPlugins()
getBrokerConnectionPlugins
in interface ActiveMQServer
public List<ActiveMQServerSessionPlugin> getBrokerSessionPlugins()
getBrokerSessionPlugins
in interface ActiveMQServer
public List<ActiveMQServerConsumerPlugin> getBrokerConsumerPlugins()
getBrokerConsumerPlugins
in interface ActiveMQServer
public List<ActiveMQServerAddressPlugin> getBrokerAddressPlugins()
getBrokerAddressPlugins
in interface ActiveMQServer
public List<ActiveMQServerQueuePlugin> getBrokerQueuePlugins()
getBrokerQueuePlugins
in interface ActiveMQServer
public List<ActiveMQServerBindingPlugin> getBrokerBindingPlugins()
getBrokerBindingPlugins
in interface ActiveMQServer
public List<ActiveMQServerMessagePlugin> getBrokerMessagePlugins()
getBrokerMessagePlugins
in interface ActiveMQServer
public List<ActiveMQServerBridgePlugin> getBrokerBridgePlugins()
getBrokerBridgePlugins
in interface ActiveMQServer
public List<ActiveMQServerCriticalPlugin> getBrokerCriticalPlugins()
getBrokerCriticalPlugins
in interface ActiveMQServer
public List<ActiveMQServerFederationPlugin> getBrokerFederationPlugins()
getBrokerFederationPlugins
in interface ActiveMQServer
public List<ActiveMQServerResourcePlugin> getBrokerResourcePlugins()
getBrokerResourcePlugins
in interface ActiveMQServer
public void callBrokerPlugins(ActiveMQPluginRunnable pluginRun) throws ActiveMQException
callBrokerPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerConnectionPlugins(ActiveMQPluginRunnable<ActiveMQServerConnectionPlugin> pluginRun) throws ActiveMQException
callBrokerConnectionPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerSessionPlugins(ActiveMQPluginRunnable<ActiveMQServerSessionPlugin> pluginRun) throws ActiveMQException
callBrokerSessionPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerConsumerPlugins(ActiveMQPluginRunnable<ActiveMQServerConsumerPlugin> pluginRun) throws ActiveMQException
callBrokerConsumerPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerAddressPlugins(ActiveMQPluginRunnable<ActiveMQServerAddressPlugin> pluginRun) throws ActiveMQException
callBrokerAddressPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerQueuePlugins(ActiveMQPluginRunnable<ActiveMQServerQueuePlugin> pluginRun) throws ActiveMQException
callBrokerQueuePlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerBindingPlugins(ActiveMQPluginRunnable<ActiveMQServerBindingPlugin> pluginRun) throws ActiveMQException
callBrokerBindingPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerMessagePlugins(ActiveMQPluginRunnable<ActiveMQServerMessagePlugin> pluginRun) throws ActiveMQException
callBrokerMessagePlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerBridgePlugins(ActiveMQPluginRunnable<ActiveMQServerBridgePlugin> pluginRun) throws ActiveMQException
callBrokerBridgePlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerCriticalPlugins(ActiveMQPluginRunnable<ActiveMQServerCriticalPlugin> pluginRun) throws ActiveMQException
callBrokerCriticalPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerFederationPlugins(ActiveMQPluginRunnable<ActiveMQServerFederationPlugin> pluginRun) throws ActiveMQException
callBrokerFederationPlugins
in interface ActiveMQServer
ActiveMQException
public void callBrokerResourcePlugins(ActiveMQPluginRunnable<ActiveMQServerResourcePlugin> pluginRun) throws ActiveMQException
callBrokerResourcePlugins
in interface ActiveMQServer
ActiveMQException
public boolean hasBrokerPlugins()
hasBrokerPlugins
in interface ActiveMQServer
public boolean hasBrokerConnectionPlugins()
hasBrokerConnectionPlugins
in interface ActiveMQServer
public boolean hasBrokerSessionPlugins()
hasBrokerSessionPlugins
in interface ActiveMQServer
public boolean hasBrokerConsumerPlugins()
hasBrokerConsumerPlugins
in interface ActiveMQServer
public boolean hasBrokerAddressPlugins()
hasBrokerAddressPlugins
in interface ActiveMQServer
public boolean hasBrokerQueuePlugins()
hasBrokerQueuePlugins
in interface ActiveMQServer
public boolean hasBrokerBindingPlugins()
hasBrokerBindingPlugins
in interface ActiveMQServer
public boolean hasBrokerMessagePlugins()
hasBrokerMessagePlugins
in interface ActiveMQServer
public boolean hasBrokerBridgePlugins()
hasBrokerBridgePlugins
in interface ActiveMQServer
public boolean hasBrokerCriticalPlugins()
hasBrokerCriticalPlugins
in interface ActiveMQServer
public boolean hasBrokerFederationPlugins()
hasBrokerFederationPlugins
in interface ActiveMQServer
public boolean hasBrokerResourcePlugins()
hasBrokerResourcePlugins
in interface ActiveMQServer
public ExecutorFactory getExecutorFactory()
getExecutorFactory
in interface ActiveMQServer
public ExecutorFactory getIOExecutorFactory()
getIOExecutorFactory
in interface ActiveMQServer
public void setGroupingHandler(GroupingHandler groupingHandler)
setGroupingHandler
in interface ActiveMQServer
public GroupingHandler getGroupingHandler()
getGroupingHandler
in interface ActiveMQServer
public ReplicationManager getReplicationManager()
getReplicationManager
in interface ActiveMQServer
public ConnectorsService getConnectorsService()
getConnectorsService
in interface ActiveMQServer
public FederationManager getFederationManager()
getFederationManager
in interface ActiveMQServer
public Divert deployDivert(DivertConfiguration config) throws Exception
deployDivert
in interface ActiveMQServer
Exception
public Divert updateDivert(DivertConfiguration config) throws Exception
updateDivert
in interface ActiveMQServer
Exception
public void destroyDivert(SimpleString name) throws Exception
destroyDivert
in interface ActiveMQServer
Exception
public void deployBridge(BridgeConfiguration config) throws Exception
deployBridge
in interface ActiveMQServer
Exception
public void destroyBridge(String name) throws Exception
destroyBridge
in interface ActiveMQServer
Exception
public void deployFederation(FederationConfiguration config) throws Exception
deployFederation
in interface ActiveMQServer
Exception
public void undeployFederation(String name) throws Exception
undeployFederation
in interface ActiveMQServer
Exception
public ServerSession getSessionByID(String sessionName)
getSessionByID
in interface ActiveMQServer
public void replaceQueueFactory(QueueFactory factory)
factory
- public PagingManager createPagingManager() throws Exception
createPagingManager
in interface ActiveMQServer
Exception
protected PagingStoreFactory getPagingStoreFactory() throws Exception
Exception
protected StorageManager createStorageManager()
public ServiceRegistry getServiceRegistry()
getServiceRegistry
in interface ActiveMQServer
public void installMirrorController(MirrorController mirrorController)
installMirrorController
in interface ActiveMQServer
public void scanAddresses(MirrorController mirrorController) throws Exception
ActiveMQServer
scanAddresses
in interface ActiveMQServer
Exception
public MirrorController getMirrorController()
getMirrorController
in interface ActiveMQServer
public void removeMirrorControl()
removeMirrorControl
in interface ActiveMQServer
public void injectMonitor(FileStoreMonitor storeMonitor) throws Exception
Exception
public FileStoreMonitor getMonitor()
public void completeActivation(boolean replicated) throws Exception
Exception
public double getDiskStoreUsage()
getDiskStoreUsage
in interface ActiveMQServer
public boolean updateAddressInfo(SimpleString address, EnumSet<RoutingType> routingTypes) throws Exception
ActiveMQServer
AddressInfo
on the broker with the specified routing types.updateAddressInfo
in interface ActiveMQServer
address
- the name of the AddressInfo
to updateroutingTypes
- the routing types to update the AddressInfo
withtrue
if the AddressInfo
was updated, false
otherwiseException
public boolean updateAddressInfo(SimpleString address, Collection<RoutingType> routingTypes) throws Exception
updateAddressInfo
in interface ActiveMQServer
Exception
public boolean addAddressInfo(AddressInfo addressInfo) throws Exception
ActiveMQServer
AddressInfo
to the brokeraddAddressInfo
in interface ActiveMQServer
addressInfo
- the AddressInfo
to addtrue
if the AddressInfo
was added, false
otherwiseException
public AddressInfo addOrUpdateAddressInfo(AddressInfo addressInfo) throws Exception
ActiveMQServer
addAddressInfo
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 ActiveMQServer
addressInfo
- the AddressInfo
to add or the info used to update the existing AddressInfo
AddressInfo
Exception
public void removeAddressInfo(SimpleString address, SecurityAuth auth) throws Exception
ActiveMQServer
AddressInfo
from the broker.removeAddressInfo
in interface ActiveMQServer
address
- the AddressInfo
to removeauth
- authorization information; null
is validException
public void removeAddressInfo(SimpleString address, SecurityAuth auth, boolean force) throws Exception
ActiveMQServer
AddressInfo
from the broker.removeAddressInfo
in interface ActiveMQServer
address
- the AddressInfo
to removeauth
- authorization information; null
is validforce
- It will disconnect everything from the address including queues and consumersException
public String getInternalNamingPrefix()
getInternalNamingPrefix
in interface ActiveMQServer
public 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
Exception
public Queue createQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServer
ActiveMQServer.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 ActiveMQServer
Exception
ActiveMQServer.createQueue(QueueConfiguration, boolean)
public Queue createQueue(QueueConfiguration queueConfiguration, boolean ignoreIfExists) throws Exception
ActiveMQServer
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
createQueue
in interface ActiveMQServer
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
public 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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
updateQueue
in interface ActiveMQServer
Exception
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
updateQueue
in interface ActiveMQServer
Exception
@Deprecated public Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception
updateQueue
in interface ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
@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 ActiveMQServer
Exception
public Queue updateQueue(QueueConfiguration queueConfiguration) throws Exception
ActiveMQServer
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
updateQueue
in interface ActiveMQServer
queueConfiguration
- the QueueConfiguration
to useQueue
instanceException
public Queue updateQueue(QueueConfiguration queueConfiguration, boolean forceUpdate) throws Exception
updateQueue
in interface ActiveMQServer
queueConfiguration
- the QueueConfiguration
to useforceUpdate
- If true
, no null
check is performed and unset queueConfiguration values are reset to null
Queue
instanceException
ActiveMQServer.updateQueue(QueueConfiguration)
public void checkJournalDirectory()
public void addProtocolManagerFactory(ProtocolManagerFactory factory)
addProtocolManagerFactory
in interface ActiveMQServer
public void removeProtocolManagerFactory(ProtocolManagerFactory factory)
removeProtocolManagerFactory
in interface ActiveMQServer
public ActiveMQServer createBackupServer(Configuration configuration)
createBackupServer
in interface ActiveMQServer
public void addScaledDownNode(SimpleString scaledDownNodeId)
addScaledDownNode
in interface ActiveMQServer
public boolean hasScaledDown(SimpleString scaledDownNodeId)
hasScaledDown
in interface ActiveMQServer
public String getUptime()
getUptime
in interface ActiveMQServer
public long getUptimeMillis()
getUptimeMillis
in interface ActiveMQServer
public boolean addClientConnection(String clientId, boolean unique)
addClientConnection
in interface ActiveMQServer
public void removeClientConnection(String clientId)
removeClientConnection
in interface ActiveMQServer
public Set<ActivateCallback> getActivateCallbacks()
public List<ActiveMQComponent> getExternalComponents()
getExternalComponents
in interface ActiveMQServer
Copyright © 2021 JBoss by Red Hat. All rights reserved.