public class ActiveMQServerImpl extends Object implements ActiveMQServer
| Modifier and Type | Class and Description |
|---|---|
class |
ActiveMQServerImpl.ShutdownOnCriticalErrorListener |
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERIC_IGNORED_FILTER
Deprecated.
Replaced by
Filter.GENERIC_IGNORED_FILTER |
| 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 |
addClientConnection(String clientId,
boolean unique) |
void |
addExternalComponent(org.apache.activemq.artemis.core.server.ActiveMQComponent externalComponent) |
void |
addProtocolManagerFactory(ProtocolManagerFactory factory) |
void |
addScaledDownNode(org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId) |
BindingQueryResult |
bindingQuery(org.apache.activemq.artemis.api.core.SimpleString address) |
void |
callActivationFailureListeners(Exception e)
Alert activation failure listeners of a failure.
|
void |
callPostQueueCreationCallbacks(org.apache.activemq.artemis.api.core.SimpleString queueName) |
void |
callPostQueueDeletionCallbacks(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.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) |
protected PagingManager |
createPagingManager() |
Queue |
createQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString queueName,
org.apache.activemq.artemis.api.core.SimpleString filterString,
boolean durable,
boolean temporary) |
Queue |
createQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString queueName,
org.apache.activemq.artemis.api.core.SimpleString filterString,
org.apache.activemq.artemis.api.core.SimpleString user,
boolean durable,
boolean temporary) |
Queue |
createQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString queueName,
org.apache.activemq.artemis.api.core.SimpleString filterString,
org.apache.activemq.artemis.api.core.SimpleString user,
boolean durable,
boolean temporary,
boolean autoCreated) |
ServerSession |
createSession(String name,
String username,
String password,
int minLargeMessageSize,
org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
boolean autoCreateQueues,
OperationContext context) |
void |
createSharedQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString name,
org.apache.activemq.artemis.api.core.SimpleString filterString,
org.apache.activemq.artemis.api.core.SimpleString user,
boolean durable)
Creates a transient queue.
|
void |
deployBridge(BridgeConfiguration config) |
void |
deployDivert(DivertConfiguration config) |
Queue |
deployQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString resourceName,
org.apache.activemq.artemis.api.core.SimpleString filterString,
boolean durable,
boolean temporary) |
Queue |
deployQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString resourceName,
org.apache.activemq.artemis.api.core.SimpleString filterString,
boolean durable,
boolean temporary,
boolean autoCreated) |
String |
describe() |
void |
destroyBridge(String name) |
String |
destroyConnectionWithSessionMetadata(String metaKey,
String parameterValue) |
void |
destroyDivert(org.apache.activemq.artemis.api.core.SimpleString name) |
void |
destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName) |
void |
destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session) |
void |
destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount) |
void |
destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers) |
protected void |
finalize() |
Activation |
getActivation() |
ActiveMQServerControlImpl |
getActiveMQServerControl()
Returns the resource to manage this ActiveMQ Artemis server.
|
HierarchicalRepository<AddressSettings> |
getAddressSettingsRepository() |
BackupManager |
getBackupManager() |
ClusterManager |
getClusterManager() |
Configuration |
getConfiguration() |
int |
getConnectionCount() |
ConnectorsService |
getConnectorsService() |
org.apache.activemq.artemis.utils.ExecutorFactory |
getExecutorFactory() |
GroupingHandler |
getGroupingHandler() |
HAPolicy |
getHAPolicy() |
String |
getIdentity() |
org.apache.activemq.artemis.utils.ExecutorFactory |
getIOExecutorFactory() |
QueueCreator |
getJMSDestinationCreator() |
QueueDeleter |
getJMSQueueDeleter() |
ManagementService |
getManagementService() |
FileStoreMonitor |
getMonitor() |
org.apache.activemq.artemis.api.core.SimpleString |
getNodeID() |
NodeManager |
getNodeManager() |
PagingManager |
getPagingManager() |
protected PagingStoreFactoryNIO |
getPagingStoreFactory() |
PostOffice |
getPostOffice() |
int |
getQueueCountForUser(String username) |
QueueFactory |
getQueueFactory() |
ReloadManager |
getReloadManager() |
RemotingService |
getRemotingService() |
ReplicationManager |
getReplicationManager() |
ResourceManager |
getResourceManager() |
ScheduledExecutorService |
getScheduledPool() |
ActiveMQSecurityManager |
getSecurityManager() |
HierarchicalRepository<Set<org.apache.activemq.artemis.core.security.Role>> |
getSecurityRepository() |
SecurityStore |
getSecurityStore() |
ServiceRegistry |
getServiceRegistry() |
ServerSession |
getSessionByID(String sessionName) |
Set<ServerSession> |
getSessions() |
List<ServerSession> |
getSessions(String connectionID) |
org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.SERVER_STATE |
getState() |
StorageManager |
getStorageManager() |
ExecutorService |
getThreadPool() |
long |
getTotalConnectionCount() |
long |
getTotalConsumerCount() |
long |
getTotalMessageCount() |
long |
getTotalMessagesAcknowledged() |
long |
getTotalMessagesAdded() |
String |
getUptime() |
long |
getUptimeMillis() |
org.apache.activemq.artemis.core.version.Version |
getVersion() |
boolean |
hasScaledDown(org.apache.activemq.artemis.api.core.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,
org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean xa,
String defaultAddress,
SessionCallback callback,
OperationContext context,
boolean autoCreateJMSQueues) |
void |
interrupBackupThread(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(org.apache.activemq.artemis.api.core.SimpleString queueName) |
void |
lockActivation()
it will hold a lock for the activation.
|
ServerSession |
lookupSession(String key,
String value) |
OperationContext |
newOperationContext() |
org.apache.activemq.artemis.core.server.QueueQueryResult |
queueQuery(org.apache.activemq.artemis.api.core.SimpleString name) |
void |
registerActivateCallback(ActivateCallback callback) |
void |
registerActivationFailureListener(ActivationFailureListener listener)
Register a listener to detect problems during activation
|
void |
registerPostQueueCreationCallback(PostQueueCreationCallback callback) |
void |
registerPostQueueDeletionCallback(PostQueueDeletionCallback callback) |
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 |
setJMSQueueCreator(QueueCreator jmsQueueCreator)
This is the queue creator responsible for automatic JMS Queue creations.
|
void |
setJMSQueueDeleter(QueueDeleter jmsQueueDeleter)
This is the queue deleter responsible for automatic JMS Queue deletions.
|
void |
setMBeanServer(MBeanServer mbeanServer) |
void |
setState(org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.SERVER_STATE state) |
void |
start() |
void |
stop() |
void |
stop(boolean failoverOnServerShutdown) |
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 |
unregisterPostQueueCreationCallback(PostQueueCreationCallback callback) |
void |
unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback) |
boolean |
waitForActivation(long timeout,
TimeUnit unit)
Wait for server initialization.
|
@Deprecated public static final String GENERIC_IGNORED_FILTER
Filter.GENERIC_IGNORED_FILTERpublic 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 ActiveMQServerprotected NodeManager createNodeManager(File directory, boolean replicatingBackup)
public OperationContext newOperationContext()
newOperationContext in interface ActiveMQServerpublic final void start()
throws Exception
start in interface org.apache.activemq.artemis.core.server.ActiveMQComponentExceptionpublic void unlockActivation()
ActiveMQServerunlockActivation in interface ActiveMQServerpublic void lockActivation()
ActiveMQServerlockActivation in interface ActiveMQServerprotected final void finalize()
throws Throwable
public void setState(org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.SERVER_STATE state)
public org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.SERVER_STATE getState()
public void interrupBackupThread(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(org.apache.activemq.artemis.core.server.ActiveMQComponent externalComponent)
addExternalComponent in interface ActiveMQServerpublic ExecutorService getThreadPool()
public void setActivation(SharedNothingLiveActivation activation)
public final void stopTheServer(boolean criticalIOError)
public final void stop()
throws Exception
stop in interface org.apache.activemq.artemis.core.server.ActiveMQComponentExceptionpublic void addActivationParam(String key, Object val)
addActivationParam in interface ActiveMQServerpublic boolean isAddressBound(String address) throws Exception
ActiveMQServerisAddressBound in interface ActiveMQServerExceptionpublic BindingQueryResult bindingQuery(org.apache.activemq.artemis.api.core.SimpleString address) throws Exception
bindingQuery in interface ActiveMQServerExceptionpublic org.apache.activemq.artemis.core.server.QueueQueryResult queueQuery(org.apache.activemq.artemis.api.core.SimpleString name)
queueQuery in interface ActiveMQServerpublic void threadDump()
threadDump in interface ActiveMQServerpublic final void stop(boolean failoverOnServerShutdown)
throws Exception
stop in interface ActiveMQServerExceptionpublic QueueCreator getJMSDestinationCreator()
getJMSDestinationCreator in interface ActiveMQServerActiveMQServer.setJMSQueueCreator(QueueCreator)public void setJMSQueueCreator(QueueCreator jmsQueueCreator)
ActiveMQServersetJMSQueueCreator in interface ActiveMQServerpublic QueueDeleter getJMSQueueDeleter()
getJMSQueueDeleter in interface ActiveMQServerActiveMQServer.setJMSQueueDeleter(QueueDeleter)public void setJMSQueueDeleter(QueueDeleter jmsQueueDeleter)
ActiveMQServersetJMSQueueDeleter in interface ActiveMQServerpublic 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<org.apache.activemq.artemis.core.security.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 org.apache.activemq.artemis.core.version.Version getVersion()
getVersion in interface ActiveMQServerpublic boolean isStarted()
isStarted in interface org.apache.activemq.artemis.core.server.ActiveMQComponentpublic ClusterManager getClusterManager()
getClusterManager in interface ActiveMQServerpublic BackupManager getBackupManager()
public ServerSession createSession(String name, String username, String password, int minLargeMessageSize, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context) 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, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, OperationContext context, boolean autoCreateJMSQueues) 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 org.apache.activemq.artemis.api.core.SimpleString getNodeID()
getNodeID in interface ActiveMQServerpublic Queue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filterString, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerExceptionpublic Queue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filterString, org.apache.activemq.artemis.api.core.SimpleString user, boolean durable, boolean temporary) throws Exception
createQueue in interface ActiveMQServerExceptionpublic Queue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filterString, org.apache.activemq.artemis.api.core.SimpleString user, boolean durable, boolean temporary, boolean autoCreated) throws Exception
createQueue in interface ActiveMQServerExceptionpublic void createSharedQueue(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString name,
org.apache.activemq.artemis.api.core.SimpleString filterString,
org.apache.activemq.artemis.api.core.SimpleString user,
boolean durable)
throws Exception
ActiveMQServerNotice: the queue won't be deleted until the first consumer arrives.
createSharedQueue in interface ActiveMQServerorg.apache.activemq.artemis.api.core.ActiveMQInvalidTransientQueueUseException - if the shared queue already exists with a different address or filterStringNullPointerException - if address is nullExceptionpublic Queue locateQueue(org.apache.activemq.artemis.api.core.SimpleString queueName)
locateQueue in interface ActiveMQServerpublic Queue deployQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString resourceName, org.apache.activemq.artemis.api.core.SimpleString filterString, boolean durable, boolean temporary) throws Exception
deployQueue in interface ActiveMQServerExceptionpublic Queue deployQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString resourceName, org.apache.activemq.artemis.api.core.SimpleString filterString, boolean durable, boolean temporary, boolean autoCreated) throws Exception
deployQueue in interface ActiveMQServerExceptionpublic void destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName)
throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session)
throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount)
throws Exception
destroyQueue in interface ActiveMQServerExceptionpublic void destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers)
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(org.apache.activemq.artemis.api.core.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(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString queueName)
throws Exception
callPostQueueDeletionCallbacks in interface ActiveMQServerExceptionpublic org.apache.activemq.artemis.utils.ExecutorFactory getExecutorFactory()
getExecutorFactory in interface ActiveMQServerpublic org.apache.activemq.artemis.utils.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(org.apache.activemq.artemis.api.core.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 - protected PagingManager createPagingManager()
protected PagingStoreFactoryNIO getPagingStoreFactory()
public ServiceRegistry getServiceRegistry()
getServiceRegistry in interface ActiveMQServerpublic void injectMonitor(FileStoreMonitor storeMonitor) throws Exception
Exceptionpublic FileStoreMonitor getMonitor()
public void checkJournalDirectory()
public void addProtocolManagerFactory(ProtocolManagerFactory factory)
addProtocolManagerFactory in interface ActiveMQServerpublic void removeProtocolManagerFactory(ProtocolManagerFactory factory)
removeProtocolManagerFactory in interface ActiveMQServerpublic ActiveMQServer createBackupServer(Configuration configuration)
createBackupServer in interface ActiveMQServerpublic void addScaledDownNode(org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId)
addScaledDownNode in interface ActiveMQServerpublic boolean hasScaledDown(org.apache.activemq.artemis.api.core.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 ActiveMQServerCopyright © 2023 The Apache Software Foundation. All rights reserved.