public interface ActiveMQServer
extends org.apache.activemq.artemis.core.server.ActiveMQComponent
This is not part of our public API.
| 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 |
checkQueueCreationLimit(String username) |
ActiveMQServer |
createBackupServer(Configuration configuration) |
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 filter,
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 filter,
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 filter,
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 remotingConnection,
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 queueName,
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 queueName,
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 metaValue) |
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) |
Activation |
getActivation() |
ActiveMQServerControlImpl |
getActiveMQServerControl()
Returns the resource to manage this ActiveMQ Artemis server.
|
HierarchicalRepository<AddressSettings> |
getAddressSettingsRepository() |
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() |
org.apache.activemq.artemis.api.core.SimpleString |
getNodeID() |
NodeManager |
getNodeManager() |
PagingManager |
getPagingManager() |
PostOffice |
getPostOffice() |
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 sessionID) |
Set<ServerSession> |
getSessions() |
List<ServerSession> |
getSessions(String connectionID) |
StorageManager |
getStorageManager() |
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) |
boolean |
isActive() |
boolean |
isAddressBound(String address)
return true if there is a binding for this address (i.e.
|
boolean |
isReplicaSync()
Returns whether the initial replication synchronization process with the backup server is complete; applicable for
either the live or backup server.
|
Queue |
locateQueue(org.apache.activemq.artemis.api.core.SimpleString queueName) |
void |
lockActivation()
it will hold a lock for the activation.
|
ServerSession |
lookupSession(String metakey,
String metavalue) |
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 |
setGroupingHandler(GroupingHandler groupingHandler) |
void |
setHAPolicy(HAPolicy haPolicy) |
void |
setIdentity(String identity)
Sets the server identity.
|
void |
setJMSQueueCreator(QueueCreator queueCreator)
This is the queue creator responsible for automatic JMS Queue creations.
|
void |
setJMSQueueDeleter(QueueDeleter queueDeleter)
This is the queue deleter responsible for automatic JMS Queue deletions.
|
void |
setMBeanServer(MBeanServer mBeanServer) |
void |
stop(boolean failoverOnServerShutdown) |
void |
threadDump() |
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.
|
void setIdentity(String identity)
The identity will be exposed on logs. It may help to debug issues on the log traces and debugs.
This method was created mainly for testing but it may be used in scenarios where you need to have more than one Server inside the same VM.
String getIdentity()
String describe()
Configuration getConfiguration()
ServiceRegistry getServiceRegistry()
RemotingService getRemotingService()
StorageManager getStorageManager()
PagingManager getPagingManager()
ManagementService getManagementService()
ActiveMQSecurityManager getSecurityManager()
org.apache.activemq.artemis.core.version.Version getVersion()
NodeManager getNodeManager()
void unlockActivation()
void lockActivation()
ActiveMQServerControlImpl getActiveMQServerControl()
IllegalStateException - if the server is not properly started.void registerActivateCallback(ActivateCallback callback)
void unregisterActivateCallback(ActivateCallback callback)
void registerActivationFailureListener(ActivationFailureListener listener)
listener - @see org.apache.activemq.artemis.core.server.ActivationFailureListenervoid unregisterActivationFailureListener(ActivationFailureListener listener)
listener - void callActivationFailureListeners(Exception e)
e - the exception that caused the activation failurevoid registerPostQueueCreationCallback(PostQueueCreationCallback callback)
callback - PostQueueCreationCallbackvoid unregisterPostQueueCreationCallback(PostQueueCreationCallback callback)
callback - PostQueueCreationCallbackvoid callPostQueueCreationCallbacks(org.apache.activemq.artemis.api.core.SimpleString queueName)
throws Exception
queueName - Exceptionvoid registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback - PostQueueDeletionCallbackvoid unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback - PostQueueDeletionCallbackvoid callPostQueueDeletionCallbacks(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString queueName)
throws Exception
queueName - Exceptionvoid checkQueueCreationLimit(String username) throws Exception
ExceptionServerSession createSession(String name, String username, String password, int minLargeMessageSize, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, OperationContext context) throws Exception
ExceptionSecurityStore getSecurityStore()
Set<ServerSession> getSessions()
HierarchicalRepository<Set<org.apache.activemq.artemis.core.security.Role>> getSecurityRepository()
HierarchicalRepository<AddressSettings> getAddressSettingsRepository()
OperationContext newOperationContext()
int getConnectionCount()
long getTotalConnectionCount()
long getTotalMessageCount()
long getTotalMessagesAdded()
long getTotalMessagesAcknowledged()
long getTotalConsumerCount()
PostOffice getPostOffice()
QueueFactory getQueueFactory()
ResourceManager getResourceManager()
List<ServerSession> getSessions(String connectionID)
ServerSession lookupSession(String metakey, String metavalue)
ClusterManager getClusterManager()
org.apache.activemq.artemis.api.core.SimpleString getNodeID()
boolean isActive()
String getUptime()
long getUptimeMillis()
void setJMSQueueCreator(QueueCreator queueCreator)
queueCreator - QueueCreator getJMSDestinationCreator()
setJMSQueueCreator(QueueCreator)void setJMSQueueDeleter(QueueDeleter queueDeleter)
queueDeleter - QueueDeleter getJMSQueueDeleter()
setJMSQueueDeleter(QueueDeleter)boolean isReplicaSync()
boolean waitForActivation(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - unit - true if the server was already initialized or if it was initialized within the
timeout period, false otherwise.InterruptedExceptionCountDownLatch.await(long, java.util.concurrent.TimeUnit)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
Notice: the queue won't be deleted until the first consumer arrives.
address - name - filterString - durable - org.apache.activemq.artemis.api.core.ActiveMQInvalidTransientQueueUseException - if the shared queue already exists with a different address or filterStringNullPointerException - if address is nullExceptionQueue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filter, boolean durable, boolean temporary) throws Exception
ExceptionQueue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filter, org.apache.activemq.artemis.api.core.SimpleString user, boolean durable, boolean temporary) throws Exception
ExceptionQueue createQueue(org.apache.activemq.artemis.api.core.SimpleString address, org.apache.activemq.artemis.api.core.SimpleString queueName, org.apache.activemq.artemis.api.core.SimpleString filter, org.apache.activemq.artemis.api.core.SimpleString user, boolean durable, boolean temporary, boolean autoCreated) throws Exception
ExceptionQueue deployQueue(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
ExceptionQueue deployQueue(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, boolean autoCreated) throws Exception
ExceptionQueue locateQueue(org.apache.activemq.artemis.api.core.SimpleString queueName)
BindingQueryResult bindingQuery(org.apache.activemq.artemis.api.core.SimpleString address) throws Exception
Exceptionorg.apache.activemq.artemis.core.server.QueueQueryResult queueQuery(org.apache.activemq.artemis.api.core.SimpleString name)
throws Exception
Exceptionvoid destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName)
throws Exception
Exceptionvoid destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session)
throws Exception
Exceptionvoid destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount)
throws Exception
Exceptionvoid destroyQueue(org.apache.activemq.artemis.api.core.SimpleString queueName,
SecurityAuth session,
boolean checkConsumerCount,
boolean removeConsumers)
throws Exception
ExceptionString destroyConnectionWithSessionMetadata(String metaKey, String metaValue) throws Exception
ExceptionScheduledExecutorService getScheduledPool()
org.apache.activemq.artemis.utils.ExecutorFactory getExecutorFactory()
org.apache.activemq.artemis.utils.ExecutorFactory getIOExecutorFactory()
void setGroupingHandler(GroupingHandler groupingHandler)
GroupingHandler getGroupingHandler()
ReplicationManager getReplicationManager()
void deployDivert(DivertConfiguration config) throws Exception
Exceptionvoid destroyDivert(org.apache.activemq.artemis.api.core.SimpleString name)
throws Exception
ExceptionConnectorsService getConnectorsService()
void deployBridge(BridgeConfiguration config) throws Exception
ExceptionServerSession getSessionByID(String sessionID)
void threadDump()
boolean isAddressBound(String address) throws Exception
address - Exceptionvoid addProtocolManagerFactory(ProtocolManagerFactory factory)
void removeProtocolManagerFactory(ProtocolManagerFactory factory)
ReloadManager getReloadManager()
ActiveMQServer createBackupServer(Configuration configuration)
void addScaledDownNode(org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId)
boolean hasScaledDown(org.apache.activemq.artemis.api.core.SimpleString scaledDownNodeId)
Activation getActivation()
HAPolicy getHAPolicy()
void setHAPolicy(HAPolicy haPolicy)
void setMBeanServer(MBeanServer mBeanServer)
void addExternalComponent(org.apache.activemq.artemis.core.server.ActiveMQComponent externalComponent)
boolean addClientConnection(String clientId, boolean unique)
void removeClientConnection(String clientId)
Copyright © 2023 The Apache Software Foundation. All rights reserved.