public interface ActiveMQServer extends ActiveMQComponent
This is not part of our public API.
isStarted, start, stopvoid 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()
NetworkHealthCheck getNetworkHealthCheck()
Version getVersion()
NodeManager getNodeManager()
ReplicationEndpoint getReplicationEndpoint()
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(SimpleString queueName) throws Exception
queueName - Exceptionvoid registerPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback - PostQueueDeletionCallbackvoid unregisterPostQueueDeletionCallback(PostQueueDeletionCallback callback)
callback - PostQueueDeletionCallbackvoid callPostQueueDeletionCallbacks(SimpleString address, SimpleString queueName) throws Exception
queueName - Exceptionvoid checkQueueCreationLimit(String username) throws Exception
ExceptionServerSession createSession(String name, String username, String password, int minLargeMessageSize, 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<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()
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(SimpleString address, SimpleString name, SimpleString filterString, SimpleString user, boolean durable) throws Exception
Notice: the queue won't be deleted until the first consumer arrives.
address - name - filterString - durable - ActiveMQInvalidTransientQueueUseException - if the shared queue already exists with a different address or filterStringNullPointerException - if address is nullExceptionQueue createQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable, boolean temporary) throws Exception
ExceptionQueue createQueue(SimpleString address, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary) throws Exception
ExceptionQueue createQueue(SimpleString address, SimpleString queueName, SimpleString filter, SimpleString user, boolean durable, boolean temporary, boolean autoCreated) throws Exception
ExceptionQueue deployQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary) throws Exception
ExceptionQueue deployQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temporary, boolean autoCreated) throws Exception
ExceptionQueue locateQueue(SimpleString queueName)
BindingQueryResult bindingQuery(SimpleString address) throws Exception
ExceptionQueueQueryResult queueQuery(SimpleString name) throws Exception
Exceptionvoid destroyQueue(SimpleString queueName) throws Exception
Exceptionvoid destroyQueue(SimpleString queueName, SecurityAuth session) throws Exception
Exceptionvoid destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount) throws Exception
Exceptionvoid destroyQueue(SimpleString queueName, SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers) throws Exception
ExceptionString destroyConnectionWithSessionMetadata(String metaKey, String metaValue) throws Exception
ExceptionScheduledExecutorService getScheduledPool()
ExecutorFactory getExecutorFactory()
ExecutorFactory getIOExecutorFactory()
void setGroupingHandler(GroupingHandler groupingHandler)
GroupingHandler getGroupingHandler()
ReplicationManager getReplicationManager()
void deployDivert(DivertConfiguration config) throws Exception
Exceptionvoid destroyDivert(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(SimpleString scaledDownNodeId)
boolean hasScaledDown(SimpleString scaledDownNodeId)
Activation getActivation()
HAPolicy getHAPolicy()
void setHAPolicy(HAPolicy haPolicy)
void setMBeanServer(MBeanServer mBeanServer)
void addExternalComponent(ActiveMQComponent externalComponent)
boolean addClientConnection(String clientId, boolean unique)
void removeClientConnection(String clientId)
IOCriticalErrorListener getCriticalIOErrorListener()
Copyright © 2018 JBoss by Red Hat. All rights reserved.