public class ActiveMQServerImpl extends Object implements ActiveMQServer
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveMQServerImpl.ShutdownOnCriticalErrorListener |
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 ExecutorFactory |
ioExecutorFactory
This is a thread pool for io tasks only.
|
protected ScheduledExecutorService |
scheduledPool |
protected ActiveMQServerImpl.ShutdownOnCriticalErrorListener |
shutdownOnCriticalIO |
| 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) |
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) |
void |
callActivationFailureListeners(Exception e)
Alert activation failure listeners of a failure.
|
void |
callBrokerPlugins(ActiveMQPluginRunnable 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 |
completeActivation() |
ActiveMQServer |
createBackupServer(Configuration configuration) |
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 lastValue,
boolean autoCreateAddress) |
Queue |
createQueue(AddressInfo addressInfo,
SimpleString queueName,
SimpleString filter,
SimpleString user,
boolean durable,
boolean temporary,
boolean autoCreated,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
boolean autoCreateAddress) |
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) |
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filterString,
boolean durable,
boolean temporary) |
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString filter,
boolean durable,
boolean temporary,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean autoCreateAddress) |
Queue |
createQueue(SimpleString address,
RoutingType routingType,
SimpleString queueName,
SimpleString user,
SimpleString filterString,
boolean durable,
boolean temporary) |
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) |
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 lastValue,
boolean autoCreateAddress) |
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) |
void |
createSharedQueue(SimpleString address,
RoutingType routingType,
SimpleString name,
SimpleString filterString,
SimpleString user,
boolean durable)
Creates a transient queue.
|
void |
createSharedQueue(SimpleString address,
RoutingType routingType,
SimpleString name,
SimpleString filterString,
SimpleString user,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
boolean exclusive,
boolean lastValue) |
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) |
void |
deployDivert(DivertConfiguration 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 |
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() |
BackupManager |
getBackupManager() |
List<ActiveMQServerPlugin> |
getBrokerPlugins() |
ClusterManager |
getClusterManager() |
Configuration |
getConfiguration() |
int |
getConnectionCount() |
ConnectorsService |
getConnectorsService() |
CriticalAnalyzer |
getCriticalAnalyzer() |
ExecutorFactory |
getExecutorFactory() |
List<ActiveMQComponent> |
getExternalComponents() |
GroupingHandler |
getGroupingHandler() |
HAPolicy |
getHAPolicy() |
String |
getIdentity() |
String |
getInternalNamingPrefix() |
ExecutorFactory |
getIOExecutorFactory() |
ManagementService |
getManagementService() |
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() |
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 |
hasBrokerPlugins() |
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.
|
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 autoCreateJMSQueues,
Map<SimpleString,RoutingType> prefixes) |
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 |
registerBrokerPlugin(ActiveMQServerPlugin plugin) |
void |
registerBrokerPlugins(List<ActiveMQServerPlugin> plugins) |
void |
registerPostQueueCreationCallback(PostQueueCreationCallback callback) |
void |
registerPostQueueDeletionCallback(PostQueueDeletionCallback callback) |
void |
removeAddressInfo(SimpleString address,
SecurityAuth auth)
Remove an
AddressInfo from the broker. |
void |
removeAddressInfo(SimpleString address,
SecurityAuth auth,
boolean force)
Remove an
AddressInfo from the broker. |
void |
removeClientConnection(String clientId) |
void |
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 |
setActivation(SharedNothingLiveActivation activation) |
void |
setGroupingHandler(GroupingHandler groupingHandler) |
void |
setHAPolicy(HAPolicy haPolicy) |
void |
setIdentity(String identity)
Sets the server identity.
|
void |
setMBeanServer(MBeanServer mbeanServer) |
void |
setState(ActiveMQServer.SERVER_STATE state) |
void |
start() |
void |
stop() |
void |
stop(boolean isShutdown) |
void |
stop(boolean failoverOnServerShutdown,
boolean isExit) |
void |
stopTheServer(boolean criticalIOError)
Stops the server in a different thread.
|
void |
threadDump() |
String |
toString() |
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(ActiveMQServerPlugin 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. |
Queue |
updateQueue(String name,
RoutingType routingType,
Integer maxConsumers,
Boolean purgeOnNoConsumers) |
Queue |
updateQueue(String name,
RoutingType routingType,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive) |
boolean |
waitForActivation(long timeout,
TimeUnit unit)
Wait for server initialization.
|
public 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 ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO
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 ActiveMQServerprotected NodeManager createNodeManager(File directory, boolean replicatingBackup)
public OperationContext newOperationContext()
newOperationContext in interface ActiveMQServerpublic final void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic CriticalAnalyzer getCriticalAnalyzer()
getCriticalAnalyzer in interface ActiveMQServerpublic 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 void addExternalComponent(ActiveMQComponent externalComponent)
addExternalComponent in interface ActiveMQServerpublic 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) 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 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 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 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) throws Exception
createSession 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 autoCreateJMSQueues, Map<SimpleString,RoutingType> prefixes) 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 ActiveMQServerpublic Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerExceptionpublic Queue createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString user, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerExceptionpublic 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, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, Integer maxConsumers, Boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerExceptionpublic 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 ActiveMQServerExceptionpublic 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 ActiveMQServerExceptionpublic 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, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerExceptionpublic 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 nullExceptionpublic 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 ActiveMQServerExceptionpublic 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 autoDeleteAddress) throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic 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<ActiveMQServerPlugin> plugins)
registerBrokerPlugins in interface ActiveMQServerpublic void registerBrokerPlugin(ActiveMQServerPlugin plugin)
registerBrokerPlugin in interface ActiveMQServerpublic void unRegisterBrokerPlugin(ActiveMQServerPlugin plugin)
unRegisterBrokerPlugin in interface ActiveMQServerpublic List<ActiveMQServerPlugin> getBrokerPlugins()
getBrokerPlugins in interface ActiveMQServerpublic void callBrokerPlugins(ActiveMQPluginRunnable pluginRun) throws ActiveMQException
callBrokerPlugins in interface ActiveMQServerActiveMQExceptionpublic boolean hasBrokerPlugins()
hasBrokerPlugins 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 void deployDivert(DivertConfiguration config) throws Exception
deployDivert 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 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 injectMonitor(FileStoreMonitor storeMonitor) throws Exception
Exceptionpublic FileStoreMonitor getMonitor()
public 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 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 ActiveMQServerpublic 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 lastValue, boolean autoCreateAddress) throws Exception
Exceptionpublic 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 lastValue, boolean autoCreateAddress) throws Exception
createQueue in interface ActiveMQServerExceptionpublic Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
updateQueue in interface ActiveMQServerExceptionpublic Queue updateQueue(String name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
updateQueue in interface ActiveMQServerExceptionpublic 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 © 2019 JBoss by Red Hat. All rights reserved.