Class ActiveMQServerControlImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.activemq.artemis.core.management.impl.AbstractControl
-
- org.apache.activemq.artemis.core.management.impl.ActiveMQServerControlImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,ActiveMQServerControl,NotificationListener
public class ActiveMQServerControlImpl extends AbstractControl implements ActiveMQServerControl, NotificationEmitter, NotificationListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActiveMQServerControlImpl.QueueTextFormatter
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManager
-
Fields inherited from interface org.apache.activemq.artemis.api.core.management.ActiveMQServerControl
ADDRESS_MEMORY_USAGE_DESCRIPTION, ADDRESS_MEMORY_USAGE_PERCENTAGE_DESCRIPTION, CONNECTION_COUNT_DESCRIPTION, DISK_STORE_USAGE_DESCRIPTION, TOTAL_CONNECTION_COUNT_DESCRIPTION
-
-
Constructor Summary
Constructors Constructor Description ActiveMQServerControlImpl(PostOffice postOffice, Configuration configuration, ResourceManager resourceManager, RemotingService remotingService, ActiveMQServer messagingServer, MessageCounterManager messageCounterManager, StorageManager storageManager, NotificationBroadcasterSupport broadcaster)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean lastValueQueue, int deliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics)adds a new address setting for a specific addressvoidaddAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses)adds a new address setting for a specific addressvoidaddAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount)adds a new address setting for a specific addressvoidaddAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount, boolean autoCreateDeadLetterResources, String deadLetterQueuePrefix, String deadLetterQueueSuffix, boolean autoCreateExpiryResources, String expiryQueuePrefix, String expiryQueueSuffix)adds a new address setting for a specific addressvoidaddAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount, boolean autoCreateDeadLetterResources, String deadLetterQueuePrefix, String deadLetterQueueSuffix, boolean autoCreateExpiryResources, String expiryQueuePrefix, String expiryQueueSuffix, long minExpiryDelay, long maxExpiryDelay, boolean enableMetrics)adds a new address setting for a specific addressvoidaddConnector(String name, String url)voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles)voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles)voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles, String createAddressRoles, String deleteAddressRoles)voidaddUser(String username, String password, String roles, boolean plaintext)Add a user (only applicable when using the JAAS PropertiesLoginModule)voidbuildSessionJSON(JsonArrayBuilder array, ServerSession sess)booleancloseConnectionsForAddress(String ipAddress)Closes all the connections of clients connected to this server which matches the specified IP address.booleancloseConnectionsForUser(String userName)Closes all the connections of sessions with a matching user name.booleancloseConnectionWithID(String ID)Closes the connection with the given id.booleancloseConsumerConnectionsForAddress(String address)Closes all the connections of clients connected to this server which matches the specified IP address.booleancloseConsumerWithID(String sessionID, String ID)Closes the consumer with the given id.booleancloseSessionWithID(String connectionID, String ID)Closes the session with the given id.booleancommitPreparedTransaction(String transactionAsBase64)Heuristically commits a prepared transaction.StringcreateAddress(String name, String routingTypes)voidcreateBridge(String bridgeConfigurationAsJson)Create a bridge.voidcreateBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password)voidcreateBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password)voidcreateBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, String transformerPropertiesAsJSON, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password)voidcreateBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, Map<String,String> transformerProperties, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password)voidcreateConnectorService(String name, String factoryClass, Map<String,Object> parameters)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String routingType)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String transformerPropertiesAsJSON, String routingType)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, Map<String,String> transformerProperties, String routingType)StringcreateQueue(String queueConfigurationAsJson)Create a queue.StringcreateQueue(String queueConfigurationAsJson, boolean ignoreIfExists)Create a queue.voidcreateQueue(String address, String name)Create a durable queue.voidcreateQueue(String address, String name, boolean durable)Create a queue.voidcreateQueue(String address, String name, boolean durable, String routingType)Create a queue.voidcreateQueue(String address, String name, String routingType)Create a durable queue.voidcreateQueue(String address, String name, String filterStr, boolean durable)Create a queue.voidcreateQueue(String address, String name, String filterStr, boolean durable, String routingType)Create a queue.StringcreateQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress)Create a queue.StringcreateQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoCreateAddress)Create a queue.StringcreateQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress)Create a queue.StringcreateQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, String groupFirstKey, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress)Create a queue.StringcreateQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, String groupFirstKey, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize)Create a queue.voiddeleteAddress(String name)voiddeleteAddress(String name, boolean force)voiddeployQueue(String address, String name, String filterString)Deprecated.voiddeployQueue(String address, String name, String filterStr, boolean durable)Deprecated.voiddestroyBridge(String name)voiddestroyConnectorService(String name)voiddestroyDivert(String name)voiddestroyQueue(String name)Destroys the queue corresponding to the specified name.voiddestroyQueue(String name, boolean removeConsumers)Destroys the queue corresponding to the specified name.voiddestroyQueue(String name, boolean removeConsumers, boolean forceAutoDeleteAddress)Destroys the queue corresponding to the specified name and delete it's address if there are no other queuesvoiddisableMessageCounters()Disables message counters for this server.voidenableMessageCounters()Enables message counters for this server.protected MBeanAttributeInfo[]fillMBeanAttributeInfo()protected MBeanOperationInfo[]fillMBeanOperationInfo()voidforceFailover()booleanfreezeReplication()Object[]getAcceptors()Returns the acceptors configured for this server.StringgetAcceptorsAsJSON()Returns the acceptors configured for this server using JSON serialization.longgetActivationSequence()Returns the current activation sequence number of this server.intgetAddressCount()Returns the number of addresses created on this server.StringgetAddressInfo(String address)longgetAddressMemoryUsage()Returns the memory used by all the addresses on broker for in-memory messagesintgetAddressMemoryUsagePercentage()Returns the memory used by all the addresses on broker as a percentage of the global-max-sizeString[]getAddressNames()Returns the names of the addresses created on this server.StringgetAddressSettingsAsJSON(String address)returns the address settings as a JSON stringlonggetAuthenticationCacheSize()Returns the runtime size of the authentication cachelonggetAuthorizationCacheSize()Returns the runtime size of the authorization cacheStringgetBindingsDirectory()Returns the file system directory used to store bindings.String[]getBridgeNames()String[]getClusterConnectionNames()Returns the names of the cluster-connections deployed on this server.intgetConnectionCount()Returns the number of clients connected to this server.longgetConnectionTTLOverride()Returns the connection time to live.Object[]getConnectors()Returns the connectors configured for this server.StringgetConnectorsAsJSON()Returns the connectors configured for this server using JSON serialization.String[]getConnectorServices()intgetDiskScanPeriod()Returns how often the server checks for disk space usage.doublegetDiskStoreUsage()Returns the percentage of total disk store useString[]getDivertNames()longgetGlobalMaxSize()Returns the global max bytes limit for in-memory messages.StringgetHAPolicy()intgetIDCacheSize()Returns the size of the cache for pre-creating message IDs.String[]getIncomingInterceptorClassNames()Returns the list of interceptors used by this server for incoming messages.String[]getInterceptorClassNames()intgetJournalBufferSize()Returns the size of the internal buffer on the journal.intgetJournalBufferTimeout()Returns the timeout (in nanoseconds) used to flush internal buffers on the journal.intgetJournalCompactMinFiles()Returns the minimal number of journal files before compacting.intgetJournalCompactPercentage()Return the percentage of live data before compacting the journal.StringgetJournalDirectory()Returns the file system directory used to store journal log.intgetJournalFileSize()Returns the size (in bytes) of each journal files.intgetJournalMaxIO()Returns the maximum number of write requests that can be in the AIO queue at any given time.intgetJournalMinFiles()Returns the number of journal files to pre-create.intgetJournalPoolFiles()Number of files that would be acceptable to keep on a poolStringgetJournalType()Returns the type of journal used by this server (eitherNIOorASYNCIO).StringgetLargeMessagesDirectory()Returns the file system directory used to store large messages.StringgetManagementAddress()Returns the management address of this server.StringgetManagementNotificationAddress()Returns the management notification address of this server.intgetMaxDiskUsage()Returns the disk use max limit.intgetMessageCounterMaxDayCount()Returns the maximum number of days kept in memory for message counter.longgetMessageCounterSamplePeriod()Returns the sample period (in milliseconds) to take message counter snapshot.longgetMessageExpiryScanPeriod()Returns the frequency (in milliseconds) to scan messages to detect which messages have expired.longgetMessageExpiryThreadPriority()Deprecated.StringgetNodeID()Returns the node ID of this server.MBeanNotificationInfo[]getNotificationInfo()String[]getOutgoingInterceptorClassNames()Returns the list of interceptors used by this server for outgoing messages.StringgetPagingDirectory()Returns the file system directory used to store paging files.intgetQueueCount()Returns the number of queues created on this server.String[]getQueueNames()Returns the names of the queues created on this server.String[]getQueueNames(String routingType)Returns the names of the queues created on this server with the given routing-type.Object[]getRoles(String addressMatch)StringgetRolesAsJSON(String addressMatch)intgetScheduledThreadPoolMaxSize()Returns the maximum number of threads in the scheduled thread pool.longgetSecurityInvalidationInterval()Returns the interval time (in milliseconds) to invalidate security credentials.intgetThreadPoolMaxSize()Returns the maximum number of threads in the thread pool.longgetTotalConnectionCount()Returns the number of clients which have connected to this server since it was started.longgetTotalConsumerCount()Returns the number of messages sent to this server since it was started.longgetTotalMessageCount()Returns the number of messages in all queues on the server.longgetTotalMessagesAcknowledged()Returns the number of messages sent to this server since it was started.longgetTotalMessagesAdded()Returns the number of messages sent to this server since it was started.longgetTransactionTimeout()Returns the timeout (in milliseconds) after which transactions is removed from the resource manager after it was created.longgetTransactionTimeoutScanPeriod()Returns the frequency (in milliseconds) to scan transactions to detect which transactions have timed out.StringgetUptime()Returns the uptime of this server.longgetUptimeMillis()Returns the uptime of this server.StringgetVersion()Returns this server's version.booleanisActive()booleanisAsyncConnectionExecutionEnabled()Returns whether code coming from connection is executed asynchronously or not.booleanisBackup()Returnstrueif this server is a backup,falseif it is a live server.booleanisClustered()Returns whether this server is clustered.booleanisCreateBindingsDir()Returns whether the bindings directory is created on this server startup.booleanisCreateJournalDir()Returns whether the journal directory is created on this server startup.booleanisFailoverOnServerShutdown()returns if clients failover on a server shutdownbooleanisJournalSyncNonTransactional()Returns whether the journal is synchronized when receiving non-transactional data.booleanisJournalSyncTransactional()Returns whether the journal is synchronized when receiving transactional data.booleanisMessageCounterEnabled()Returns whether message counter is enabled for this server.booleanisPersistDeliveryCountBeforeDelivery()Returns whether delivery count is persisted before messages are delivered to the consumers.booleanisPersistenceEnabled()Returns whether this server is using persistence and store data.booleanisPersistIDCache()Returns whether message ID cache is persisted.booleanisReplicaSync()Returns whether the initial replication synchronization process with the backup server is complete; applicable for either the live or backup server.booleanisSecurityEnabled()Returns whether security is enabled for this server.booleanisSharedStore()Returns whether this server shares its data store with a corresponding live or backup server.booleanisStarted()Return whether this server is started.booleanisWildcardRoutingEnabled()Returns whether wildcard routing is supported by this server.StringlistAddresses(String separator)StringlistAddresses(String options, int page, int pageSize)StringlistAllConsumersAsJSON()Lists all the consumers connected to this server.StringlistAllSessionsAsJSON()Lists details about all sessions.StringlistBindingsForAddress(String address)StringlistBrokerConnections()String[]listConnectionIDs()Lists all the IDs of the connections connected to this server.StringlistConnections(String options, int page, int pageSize)StringlistConnectionsAsJSON()Lists all the connections connected to this server.StringlistConsumers(String options, int page, int pageSize)StringlistConsumersAsJSON(String connectionID)Lists all the consumers which belongs to the connection specified by the connectionID.String[]listHeuristicCommittedTransactions()List transactions which have been heuristically committed.String[]listHeuristicRolledBackTransactions()List transactions which have been heuristically rolled back.StringlistNetworkTopology()StringlistPreparedTransactionDetailsAsHTML()Deprecated.StringlistPreparedTransactionDetailsAsHTML(TransactionDetailFactory factory)Deprecated.StringlistPreparedTransactionDetailsAsJSON()List all the prepared transaction, sorted by date, oldest first, with details, in text format.StringlistPreparedTransactionDetailsAsJSON(TransactionDetailFactory factory)String[]listPreparedTransactions()List all the prepared transaction, sorted by date, oldest first.StringlistProducers(String options, int page, int pageSize)StringlistProducersInfoAsJSON()StringlistQueues(String options, int page, int pageSize)String[]listRemoteAddresses()Lists the addresses of all the clients connected to this address.String[]listRemoteAddresses(String ipAddress)Lists the addresses of the clients connected to this address which matches the specified IP address.String[]listSessions(String connectionID)Lists all the sessions IDs for the specified connection ID.StringlistSessions(String options, int page, int pageSize)StringlistSessionsAsJSON(String connectionID)Lists details about all the sessions for the specified connection ID.String[]listTargetAddresses(String sessionID)StringlistUser(String username)List the information about a user or all users if no username is supplied (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).voidonNotification(Notification notification)voidreloadConfigurationFile()voidremoveAddressSettings(String addressMatch)voidremoveConnector(String name)voidremoveNotificationListener(NotificationListener listener)voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)voidremoveSecuritySettings(String addressMatch)voidremoveUser(String username)Remove a user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).voidreplay(String address, String target, String filter)voidreplay(String startScan, String endScan, String address, String target, String filter)voidresetAllMessageCounterHistories()Reset histories for all message counters.voidresetAllMessageCounters()Reset all message counters.voidresetUser(String username, String password, String roles)Set new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).voidresetUser(String username, String password, String roles, boolean plaintext)Set new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).booleanrollbackPreparedTransaction(String transactionAsBase64)Heuristically rolls back a prepared transaction.voidscaleDown(String connector)voidsendQueueInfoToQueue(String queueName, String address)voidsetFailoverOnServerShutdown(boolean failoverOnServerShutdown)do any clients failover on a server shutdownvoidsetMessageCounterMaxDayCount(int count)Sets the maximum number of days kept in memory for message counter.voidsetMessageCounterSamplePeriod(long newPeriod)Sets the sample period to take message counter snapshot.voidstartBrokerConnection(String name)voidstopBrokerConnection(String name)StringupdateAddress(String name, String routingTypes)voidupdateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String,String> transformerProperties, String routingType)update a divertvoidupdateDuplicateIdCache(String address, Object[] ids)StringupdateQueue(String queueConfigurationAsJson)Update a queue.StringupdateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers)Deprecated.StringupdateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive)Deprecated.StringupdateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user)Update a queueStringupdateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user)Update a queueStringupdateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user)Update a queueStringupdateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize)Update a queue-
Methods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvoke
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.api.core.management.ActiveMQServerControl
listDivertNames
-
-
-
-
Constructor Detail
-
ActiveMQServerControlImpl
public ActiveMQServerControlImpl(PostOffice postOffice, Configuration configuration, ResourceManager resourceManager, RemotingService remotingService, ActiveMQServer messagingServer, MessageCounterManager messageCounterManager, StorageManager storageManager, NotificationBroadcasterSupport broadcaster) throws Exception
- Throws:
Exception
-
-
Method Detail
-
isStarted
public boolean isStarted()
Description copied from interface:ActiveMQServerControlReturn whether this server is started.- Specified by:
isStartedin interfaceActiveMQServerControl
-
getVersion
public String getVersion()
Description copied from interface:ActiveMQServerControlReturns this server's version.- Specified by:
getVersionin interfaceActiveMQServerControl
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceActiveMQServerControl
-
isBackup
public boolean isBackup()
Description copied from interface:ActiveMQServerControlReturnstrueif this server is a backup,falseif it is a live server.
If a backup server has been activated, returnsfalse.- Specified by:
isBackupin interfaceActiveMQServerControl
-
isSharedStore
public boolean isSharedStore()
Description copied from interface:ActiveMQServerControlReturns whether this server shares its data store with a corresponding live or backup server.- Specified by:
isSharedStorein interfaceActiveMQServerControl
-
getBindingsDirectory
public String getBindingsDirectory()
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store bindings.- Specified by:
getBindingsDirectoryin interfaceActiveMQServerControl
-
getInterceptorClassNames
public String[] getInterceptorClassNames()
-
getIncomingInterceptorClassNames
public String[] getIncomingInterceptorClassNames()
Description copied from interface:ActiveMQServerControlReturns the list of interceptors used by this server for incoming messages.- Specified by:
getIncomingInterceptorClassNamesin interfaceActiveMQServerControl- See Also:
Interceptor
-
getOutgoingInterceptorClassNames
public String[] getOutgoingInterceptorClassNames()
Description copied from interface:ActiveMQServerControlReturns the list of interceptors used by this server for outgoing messages.- Specified by:
getOutgoingInterceptorClassNamesin interfaceActiveMQServerControl- See Also:
Interceptor
-
getJournalPoolFiles
public int getJournalPoolFiles()
Description copied from interface:ActiveMQServerControlNumber of files that would be acceptable to keep on a pool- Specified by:
getJournalPoolFilesin interfaceActiveMQServerControl
-
getJournalBufferSize
public int getJournalBufferSize()
Description copied from interface:ActiveMQServerControlReturns the size of the internal buffer on the journal.- Specified by:
getJournalBufferSizein interfaceActiveMQServerControl
-
getJournalBufferTimeout
public int getJournalBufferTimeout()
Description copied from interface:ActiveMQServerControlReturns the timeout (in nanoseconds) used to flush internal buffers on the journal.- Specified by:
getJournalBufferTimeoutin interfaceActiveMQServerControl
-
setFailoverOnServerShutdown
public void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
Description copied from interface:ActiveMQServerControldo any clients failover on a server shutdown- Specified by:
setFailoverOnServerShutdownin interfaceActiveMQServerControl
-
isFailoverOnServerShutdown
public boolean isFailoverOnServerShutdown()
Description copied from interface:ActiveMQServerControlreturns if clients failover on a server shutdown- Specified by:
isFailoverOnServerShutdownin interfaceActiveMQServerControl
-
getJournalMaxIO
public int getJournalMaxIO()
Description copied from interface:ActiveMQServerControlReturns the maximum number of write requests that can be in the AIO queue at any given time.- Specified by:
getJournalMaxIOin interfaceActiveMQServerControl
-
getJournalDirectory
public String getJournalDirectory()
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store journal log.- Specified by:
getJournalDirectoryin interfaceActiveMQServerControl
-
getJournalFileSize
public int getJournalFileSize()
Description copied from interface:ActiveMQServerControlReturns the size (in bytes) of each journal files.- Specified by:
getJournalFileSizein interfaceActiveMQServerControl
-
getJournalMinFiles
public int getJournalMinFiles()
Description copied from interface:ActiveMQServerControlReturns the number of journal files to pre-create.- Specified by:
getJournalMinFilesin interfaceActiveMQServerControl
-
getJournalCompactMinFiles
public int getJournalCompactMinFiles()
Description copied from interface:ActiveMQServerControlReturns the minimal number of journal files before compacting.- Specified by:
getJournalCompactMinFilesin interfaceActiveMQServerControl
-
getJournalCompactPercentage
public int getJournalCompactPercentage()
Description copied from interface:ActiveMQServerControlReturn the percentage of live data before compacting the journal.- Specified by:
getJournalCompactPercentagein interfaceActiveMQServerControl
-
isPersistenceEnabled
public boolean isPersistenceEnabled()
Description copied from interface:ActiveMQServerControlReturns whether this server is using persistence and store data.- Specified by:
isPersistenceEnabledin interfaceActiveMQServerControl
-
getJournalType
public String getJournalType()
Description copied from interface:ActiveMQServerControlReturns the type of journal used by this server (eitherNIOorASYNCIO).- Specified by:
getJournalTypein interfaceActiveMQServerControl
-
getPagingDirectory
public String getPagingDirectory()
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store paging files.- Specified by:
getPagingDirectoryin interfaceActiveMQServerControl
-
getScheduledThreadPoolMaxSize
public int getScheduledThreadPoolMaxSize()
Description copied from interface:ActiveMQServerControlReturns the maximum number of threads in the scheduled thread pool.- Specified by:
getScheduledThreadPoolMaxSizein interfaceActiveMQServerControl
-
getThreadPoolMaxSize
public int getThreadPoolMaxSize()
Description copied from interface:ActiveMQServerControlReturns the maximum number of threads in the thread pool.- Specified by:
getThreadPoolMaxSizein interfaceActiveMQServerControl
-
getSecurityInvalidationInterval
public long getSecurityInvalidationInterval()
Description copied from interface:ActiveMQServerControlReturns the interval time (in milliseconds) to invalidate security credentials.- Specified by:
getSecurityInvalidationIntervalin interfaceActiveMQServerControl
-
isClustered
public boolean isClustered()
Description copied from interface:ActiveMQServerControlReturns whether this server is clustered.- Specified by:
isClusteredin interfaceActiveMQServerControl
-
isCreateBindingsDir
public boolean isCreateBindingsDir()
Description copied from interface:ActiveMQServerControlReturns whether the bindings directory is created on this server startup.- Specified by:
isCreateBindingsDirin interfaceActiveMQServerControl
-
isCreateJournalDir
public boolean isCreateJournalDir()
Description copied from interface:ActiveMQServerControlReturns whether the journal directory is created on this server startup.- Specified by:
isCreateJournalDirin interfaceActiveMQServerControl
-
isJournalSyncNonTransactional
public boolean isJournalSyncNonTransactional()
Description copied from interface:ActiveMQServerControlReturns whether the journal is synchronized when receiving non-transactional data.- Specified by:
isJournalSyncNonTransactionalin interfaceActiveMQServerControl
-
isJournalSyncTransactional
public boolean isJournalSyncTransactional()
Description copied from interface:ActiveMQServerControlReturns whether the journal is synchronized when receiving transactional data.- Specified by:
isJournalSyncTransactionalin interfaceActiveMQServerControl
-
isSecurityEnabled
public boolean isSecurityEnabled()
Description copied from interface:ActiveMQServerControlReturns whether security is enabled for this server.- Specified by:
isSecurityEnabledin interfaceActiveMQServerControl
-
isAsyncConnectionExecutionEnabled
public boolean isAsyncConnectionExecutionEnabled()
Description copied from interface:ActiveMQServerControlReturns whether code coming from connection is executed asynchronously or not.- Specified by:
isAsyncConnectionExecutionEnabledin interfaceActiveMQServerControl
-
getDiskScanPeriod
public int getDiskScanPeriod()
Description copied from interface:ActiveMQServerControlReturns how often the server checks for disk space usage.- Specified by:
getDiskScanPeriodin interfaceActiveMQServerControl
-
getMaxDiskUsage
public int getMaxDiskUsage()
Description copied from interface:ActiveMQServerControlReturns the disk use max limit.- Specified by:
getMaxDiskUsagein interfaceActiveMQServerControl
-
getGlobalMaxSize
public long getGlobalMaxSize()
Description copied from interface:ActiveMQServerControlReturns the global max bytes limit for in-memory messages.- Specified by:
getGlobalMaxSizein interfaceActiveMQServerControl
-
getAddressMemoryUsage
public long getAddressMemoryUsage()
Description copied from interface:ActiveMQServerControlReturns the memory used by all the addresses on broker for in-memory messages- Specified by:
getAddressMemoryUsagein interfaceActiveMQServerControl
-
getDiskStoreUsage
public double getDiskStoreUsage()
Description copied from interface:ActiveMQServerControlReturns the percentage of total disk store use- Specified by:
getDiskStoreUsagein interfaceActiveMQServerControl
-
getAddressMemoryUsagePercentage
public int getAddressMemoryUsagePercentage()
Description copied from interface:ActiveMQServerControlReturns the memory used by all the addresses on broker as a percentage of the global-max-size- Specified by:
getAddressMemoryUsagePercentagein interfaceActiveMQServerControl
-
getHAPolicy
public String getHAPolicy()
- Specified by:
getHAPolicyin interfaceActiveMQServerControl
-
getAuthenticationCacheSize
public long getAuthenticationCacheSize()
Description copied from interface:ActiveMQServerControlReturns the runtime size of the authentication cache- Specified by:
getAuthenticationCacheSizein interfaceActiveMQServerControl
-
getAuthorizationCacheSize
public long getAuthorizationCacheSize()
Description copied from interface:ActiveMQServerControlReturns the runtime size of the authorization cache- Specified by:
getAuthorizationCacheSizein interfaceActiveMQServerControl
-
freezeReplication
public boolean freezeReplication()
- Specified by:
freezeReplicationin interfaceActiveMQServerControl
-
createAddress
public String createAddress(String name, String routingTypes) throws Exception
- Specified by:
createAddressin interfaceActiveMQServerControl- Throws:
Exception
-
updateAddress
public String updateAddress(String name, String routingTypes) throws Exception
- Specified by:
updateAddressin interfaceActiveMQServerControl- Throws:
Exception
-
deleteAddress
public void deleteAddress(String name) throws Exception
- Specified by:
deleteAddressin interfaceActiveMQServerControl- Throws:
Exception
-
deleteAddress
public void deleteAddress(String name, boolean force) throws Exception
- Specified by:
deleteAddressin interfaceActiveMQServerControl- Throws:
Exception
-
deployQueue
@Deprecated public void deployQueue(String address, String name, String filterString) throws Exception
Deprecated.Description copied from interface:ActiveMQServerControlDeploy a durable queue.
Ifaddressisnullit will be defaulted toname.
This method will do nothing if the queue with the given name already exists on the server.- Specified by:
deployQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuefilterString- of the queue- Throws:
Exception
-
deployQueue
@Deprecated public void deployQueue(String address, String name, String filterStr, boolean durable) throws Exception
Deprecated.Description copied from interface:ActiveMQServerControlDeploy a queue.
Ifaddressisnullit will be defaulted toname.
This method will do nothing if the queue with the given name already exists on the server.- Specified by:
deployQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuefilterStr- of the queuedurable- whether the queue is durable- Throws:
Exception
-
createQueue
public void createQueue(String address, String name) throws Exception
Description copied from interface:ActiveMQServerControlCreate a durable queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queue- Throws:
Exception
-
createQueue
public void createQueue(String address, String name, String routingType) throws Exception
Description copied from interface:ActiveMQServerControlCreate a durable queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queueroutingType- The routing type used for this address, MULTICAST or ANYCAST- Throws:
Exception
-
createQueue
public void createQueue(String address, String name, boolean durable) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuedurable- whether the queue is durable- Throws:
Exception
-
createQueue
public void createQueue(String address, String name, boolean durable, String routingType) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuedurable- whether the queue is durableroutingType- The routing type used for this address, MULTICAST or ANYCAST- Throws:
Exception
-
createQueue
public void createQueue(String address, String name, String filterStr, boolean durable) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuefilterStr- of the queuedurable- whether the queue is durable- Throws:
Exception
-
createQueue
public void createQueue(String address, String name, String filterStr, boolean durable, String routingType) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toname- name of the queuefilterStr- of the queuedurable- whether the queue is durableroutingType- The routing type used for this address, MULTICAST or ANYCAST- Throws:
Exception
-
createQueue
public String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toroutingType- the routing type used for this address,MULTICASTorANYCASTname- name of the queuefilterStr- filter of the queuedurable- is the queue durable?maxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsautoCreateAddress- create an address with default values should a matching address not be found- Returns:
- a textual summary of the queue
- Throws:
Exception
-
createQueue
public String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoCreateAddress) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toroutingType- the routing type used for this address,MULTICASTorANYCASTname- name of the queuefilterStr- filter of the queuedurable- is the queue durable?maxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumerlastValue- use last-value semanticsconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metautoCreateAddress- create an address with default values should a matching address not be found- Returns:
- a textual summary of the queue
- Throws:
Exception
-
createQueue
public String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toroutingType- the routing type used for this address,MULTICASTorANYCASTname- name of the queuefilterStr- filter of the queuedurable- is the queue durable?maxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumerlastValue- use last-value semanticsconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metautoCreateAddress- create an address with default values should a matching address not be found- Returns:
- a textual summary of the queue
- Throws:
Exception
-
createQueue
public String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, String groupFirstKey, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toroutingType- the routing type used for this address,MULTICASTorANYCASTname- name of the queuefilterStr- filter of the queuedurable- is the queue durable?maxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumerlastValue- use last-value semanticsconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metautoCreateAddress- create an address with default values should a matching address not be found- Returns:
- a textual summary of the queue
- Throws:
Exception
-
createQueue
public String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean exclusive, boolean groupRebalance, int groupBuckets, String groupFirstKey, boolean lastValue, String lastValueKey, boolean nonDestructive, int consumersBeforeDispatch, long delayBeforeDispatch, boolean autoDelete, long autoDeleteDelay, long autoDeleteMessageCount, boolean autoCreateAddress, long ringSize) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
Ifaddressisnullit will be defaulted toname.
This method throws aActiveMQQueueExistsException) exception if the queue already exits.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
address- address to bind the queue toroutingType- the routing type used for this address,MULTICASTorANYCASTname- name of the queuefilterStr- filter of the queuedurable- is the queue durable?maxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumerlastValue- use last-value semanticsconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metautoCreateAddress- create an address with default values should a matching address not be foundringSize- the size this queue should maintain according to ring semantics- Returns:
- a textual summary of the queue
- Throws:
Exception
-
createQueue
public String createQueue(String queueConfigurationAsJson) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
This method throws aActiveMQQueueExistsException) exception if the queue already exists.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
queueConfigurationAsJson- the configuration of the queue in JSON format- Returns:
- the configuration of the created queue in JSON format
- Throws:
Exception
-
createQueue
public String createQueue(String queueConfigurationAsJson, boolean ignoreIfExists) throws Exception
Description copied from interface:ActiveMQServerControlCreate a queue.
This method throws aActiveMQQueueExistsException) exception if the queue already exists andignoreIfExistsisfalse.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
queueConfigurationAsJson- the configuration of the queue in JSON formatignoreIfExists- whether or not to simply return without an exception if the queue exists- Returns:
- the configuration of the created queue in JSON format
- Throws:
Exception
-
updateQueue
public String updateQueue(String queueConfigurationAsJson) throws Exception
Description copied from interface:ActiveMQServerControlUpdate a queue.- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
queueConfigurationAsJson- the configuration of the queue in JSON format- Returns:
- the configuration of the created queue in JSON format
- Throws:
Exception
-
updateQueue
@Deprecated public String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception
Deprecated.Description copied from interface:ActiveMQServerControlUpdate a queue.- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTmaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnects- Returns:
- a textual summary of the queue
- Throws:
Exception
-
updateQueue
@Deprecated public String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
Deprecated.Description copied from interface:ActiveMQServerControlUpdate a queue.- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTmaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumer- Returns:
- a textual summary of the queue
- Throws:
Exception
-
updateQueue
public String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception
Description copied from interface:ActiveMQServerControlUpdate a queue- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTmaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumeruser- the user associated with this queue- Returns:
- Throws:
Exception
-
updateQueue
public String updateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception
Description copied from interface:ActiveMQServerControlUpdate a queue- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTfilter- the filter to use on the queuemaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumergroupRebalance- if the queue should rebalance groups when a consumer is addedgroupBuckets- number of buckets that should be used for message groups, -1 (default) is unlimited, and groups by raw key insteadnonDestructive- If the queue is non-destructiveconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metuser- the user associated with this queue- Returns:
- Throws:
Exception
-
updateQueue
public String updateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user) throws Exception
Description copied from interface:ActiveMQServerControlUpdate a queue- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTfilter- the filter to use on the queuemaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumergroupRebalance- if the queue should rebalance groups when a consumer is addedgroupBuckets- number of buckets that should be used for message groups, -1 (default) is unlimited, and groups by raw key insteadgroupFirstKey- key used to mark a message is first in a group for a consumernonDestructive- If the queue is non-destructiveconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metuser- the user associated with this queue- Returns:
- Throws:
Exception
-
updateQueue
public String updateQueue(String name, String routingType, String filter, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean groupRebalance, Integer groupBuckets, String groupFirstKey, Boolean nonDestructive, Integer consumersBeforeDispatch, Long delayBeforeDispatch, String user, Long ringSize) throws Exception
Description copied from interface:ActiveMQServerControlUpdate a queue- Specified by:
updateQueuein interfaceActiveMQServerControl- Parameters:
name- name of the queueroutingType- the routing type used for this address,MULTICASTorANYCASTfilter- the filter to use on the queuemaxConsumers- the maximum number of consumers allowed on this queue at any one timepurgeOnNoConsumers- delete this queue when the last consumer disconnectsexclusive- if the queue should route exclusively to one consumergroupRebalance- if the queue should rebalance groups when a consumer is addedgroupBuckets- number of buckets that should be used for message groups, -1 (default) is unlimited, and groups by raw key insteadgroupFirstKey- key used to mark a message is first in a group for a consumernonDestructive- If the queue is non-destructiveconsumersBeforeDispatch- number of consumers needed before dispatch can startdelayBeforeDispatch- delay to wait before dispatching if number of consumers before dispatch is not metuser- the user associated with this queueringSize- the size this queue should maintain according to ring semantics- Returns:
- Throws:
Exception
-
getQueueCount
public int getQueueCount()
Description copied from interface:ActiveMQServerControlReturns the number of queues created on this server.- Specified by:
getQueueCountin interfaceActiveMQServerControl
-
getQueueNames
public String[] getQueueNames()
Description copied from interface:ActiveMQServerControlReturns the names of the queues created on this server.- Specified by:
getQueueNamesin interfaceActiveMQServerControl
-
getQueueNames
public String[] getQueueNames(String routingType)
Description copied from interface:ActiveMQServerControlReturns the names of the queues created on this server with the given routing-type.- Specified by:
getQueueNamesin interfaceActiveMQServerControl
-
getClusterConnectionNames
public String[] getClusterConnectionNames()
Description copied from interface:ActiveMQServerControlReturns the names of the cluster-connections deployed on this server.- Specified by:
getClusterConnectionNamesin interfaceActiveMQServerControl
-
getUptime
public String getUptime()
Description copied from interface:ActiveMQServerControlReturns the uptime of this server.- Specified by:
getUptimein interfaceActiveMQServerControl
-
getUptimeMillis
public long getUptimeMillis()
Description copied from interface:ActiveMQServerControlReturns the uptime of this server.- Specified by:
getUptimeMillisin interfaceActiveMQServerControl
-
isReplicaSync
public boolean isReplicaSync()
Description copied from interface:ActiveMQServerControlReturns whether the initial replication synchronization process with the backup server is complete; applicable for either the live or backup server.- Specified by:
isReplicaSyncin interfaceActiveMQServerControl
-
getAddressCount
public int getAddressCount()
Description copied from interface:ActiveMQServerControlReturns the number of addresses created on this server.- Specified by:
getAddressCountin interfaceActiveMQServerControl
-
getAddressNames
public String[] getAddressNames()
Description copied from interface:ActiveMQServerControlReturns the names of the addresses created on this server.- Specified by:
getAddressNamesin interfaceActiveMQServerControl
-
destroyQueue
public void destroyQueue(String name, boolean removeConsumers, boolean forceAutoDeleteAddress) throws Exception
Description copied from interface:ActiveMQServerControlDestroys the queue corresponding to the specified name and delete it's address if there are no other queues- Specified by:
destroyQueuein interfaceActiveMQServerControl- Throws:
Exception
-
destroyQueue
public void destroyQueue(String name, boolean removeConsumers) throws Exception
Description copied from interface:ActiveMQServerControlDestroys the queue corresponding to the specified name.- Specified by:
destroyQueuein interfaceActiveMQServerControl- Throws:
Exception
-
destroyQueue
public void destroyQueue(String name) throws Exception
Description copied from interface:ActiveMQServerControlDestroys the queue corresponding to the specified name.- Specified by:
destroyQueuein interfaceActiveMQServerControl- Throws:
Exception
-
getAddressInfo
public String getAddressInfo(String address) throws ActiveMQAddressDoesNotExistException
- Specified by:
getAddressInfoin interfaceActiveMQServerControl- Throws:
ActiveMQAddressDoesNotExistException
-
listBindingsForAddress
public String listBindingsForAddress(String address) throws Exception
- Specified by:
listBindingsForAddressin interfaceActiveMQServerControl- Throws:
Exception
-
listAddresses
public String listAddresses(String separator) throws Exception
- Specified by:
listAddressesin interfaceActiveMQServerControl- Throws:
Exception
-
getConnectionCount
public int getConnectionCount()
Description copied from interface:ActiveMQServerControlReturns the number of clients connected to this server.- Specified by:
getConnectionCountin interfaceActiveMQServerControl
-
getTotalConnectionCount
public long getTotalConnectionCount()
Description copied from interface:ActiveMQServerControlReturns the number of clients which have connected to this server since it was started.- Specified by:
getTotalConnectionCountin interfaceActiveMQServerControl
-
getTotalMessageCount
public long getTotalMessageCount()
Description copied from interface:ActiveMQServerControlReturns the number of messages in all queues on the server.- Specified by:
getTotalMessageCountin interfaceActiveMQServerControl
-
getTotalMessagesAdded
public long getTotalMessagesAdded()
Description copied from interface:ActiveMQServerControlReturns the number of messages sent to this server since it was started.- Specified by:
getTotalMessagesAddedin interfaceActiveMQServerControl
-
getTotalMessagesAcknowledged
public long getTotalMessagesAcknowledged()
Description copied from interface:ActiveMQServerControlReturns the number of messages sent to this server since it was started.- Specified by:
getTotalMessagesAcknowledgedin interfaceActiveMQServerControl
-
getTotalConsumerCount
public long getTotalConsumerCount()
Description copied from interface:ActiveMQServerControlReturns the number of messages sent to this server since it was started.- Specified by:
getTotalConsumerCountin interfaceActiveMQServerControl
-
enableMessageCounters
public void enableMessageCounters()
Description copied from interface:ActiveMQServerControlEnables message counters for this server.- Specified by:
enableMessageCountersin interfaceActiveMQServerControl
-
disableMessageCounters
public void disableMessageCounters()
Description copied from interface:ActiveMQServerControlDisables message counters for this server.- Specified by:
disableMessageCountersin interfaceActiveMQServerControl
-
resetAllMessageCounters
public void resetAllMessageCounters()
Description copied from interface:ActiveMQServerControlReset all message counters.- Specified by:
resetAllMessageCountersin interfaceActiveMQServerControl
-
resetAllMessageCounterHistories
public void resetAllMessageCounterHistories()
Description copied from interface:ActiveMQServerControlReset histories for all message counters.- Specified by:
resetAllMessageCounterHistoriesin interfaceActiveMQServerControl
-
isMessageCounterEnabled
public boolean isMessageCounterEnabled()
Description copied from interface:ActiveMQServerControlReturns whether message counter is enabled for this server.- Specified by:
isMessageCounterEnabledin interfaceActiveMQServerControl
-
getMessageCounterSamplePeriod
public long getMessageCounterSamplePeriod()
Description copied from interface:ActiveMQServerControlReturns the sample period (in milliseconds) to take message counter snapshot.- Specified by:
getMessageCounterSamplePeriodin interfaceActiveMQServerControl
-
setMessageCounterSamplePeriod
public void setMessageCounterSamplePeriod(long newPeriod)
Description copied from interface:ActiveMQServerControlSets the sample period to take message counter snapshot.- Specified by:
setMessageCounterSamplePeriodin interfaceActiveMQServerControl- Parameters:
newPeriod- value must be greater than 1000ms
-
getMessageCounterMaxDayCount
public int getMessageCounterMaxDayCount()
Description copied from interface:ActiveMQServerControlReturns the maximum number of days kept in memory for message counter.- Specified by:
getMessageCounterMaxDayCountin interfaceActiveMQServerControl
-
setMessageCounterMaxDayCount
public void setMessageCounterMaxDayCount(int count)
Description copied from interface:ActiveMQServerControlSets the maximum number of days kept in memory for message counter.- Specified by:
setMessageCounterMaxDayCountin interfaceActiveMQServerControl- Parameters:
count- value must be greater than 0
-
listPreparedTransactions
public String[] listPreparedTransactions()
Description copied from interface:ActiveMQServerControlList all the prepared transaction, sorted by date, oldest first.
The Strings are Base-64 representation of the transaction XID and can be used to heuristically commit or rollback the transactions.- Specified by:
listPreparedTransactionsin interfaceActiveMQServerControl- See Also:
ActiveMQServerControl.commitPreparedTransaction(String),ActiveMQServerControl.rollbackPreparedTransaction(String)
-
listPreparedTransactionDetailsAsJSON
public String listPreparedTransactionDetailsAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlList all the prepared transaction, sorted by date, oldest first, with details, in text format.- Specified by:
listPreparedTransactionDetailsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listPreparedTransactionDetailsAsJSON
public String listPreparedTransactionDetailsAsJSON(TransactionDetailFactory factory) throws Exception
- Throws:
Exception
-
listPreparedTransactionDetailsAsHTML
@Deprecated public String listPreparedTransactionDetailsAsHTML() throws Exception
Deprecated.Description copied from interface:ActiveMQServerControlList all the prepared transaction, sorted by date, oldest first, with details, in HTML format- Specified by:
listPreparedTransactionDetailsAsHTMLin interfaceActiveMQServerControl- Throws:
Exception
-
listPreparedTransactionDetailsAsHTML
@Deprecated public String listPreparedTransactionDetailsAsHTML(TransactionDetailFactory factory) throws Exception
Deprecated.- Throws:
Exception
-
listHeuristicCommittedTransactions
public String[] listHeuristicCommittedTransactions()
Description copied from interface:ActiveMQServerControlList transactions which have been heuristically committed.- Specified by:
listHeuristicCommittedTransactionsin interfaceActiveMQServerControl
-
listHeuristicRolledBackTransactions
public String[] listHeuristicRolledBackTransactions()
Description copied from interface:ActiveMQServerControlList transactions which have been heuristically rolled back.- Specified by:
listHeuristicRolledBackTransactionsin interfaceActiveMQServerControl
-
commitPreparedTransaction
public boolean commitPreparedTransaction(String transactionAsBase64) throws Exception
Description copied from interface:ActiveMQServerControlHeuristically commits a prepared transaction.- Specified by:
commitPreparedTransactionin interfaceActiveMQServerControl- Parameters:
transactionAsBase64- base 64 representation of a prepare transaction- Returns:
trueif the transaction was successfully committed,falseelse- Throws:
Exception- See Also:
ActiveMQServerControl.listPreparedTransactions()
-
rollbackPreparedTransaction
public boolean rollbackPreparedTransaction(String transactionAsBase64) throws Exception
Description copied from interface:ActiveMQServerControlHeuristically rolls back a prepared transaction.- Specified by:
rollbackPreparedTransactionin interfaceActiveMQServerControl- Parameters:
transactionAsBase64- base 64 representation of a prepare transaction- Returns:
trueif the transaction was successfully rolled back,falseelse- Throws:
Exception- See Also:
ActiveMQServerControl.listPreparedTransactions()
-
listRemoteAddresses
public String[] listRemoteAddresses()
Description copied from interface:ActiveMQServerControlLists the addresses of all the clients connected to this address.- Specified by:
listRemoteAddressesin interfaceActiveMQServerControl
-
listRemoteAddresses
public String[] listRemoteAddresses(String ipAddress)
Description copied from interface:ActiveMQServerControlLists the addresses of the clients connected to this address which matches the specified IP address.- Specified by:
listRemoteAddressesin interfaceActiveMQServerControl
-
closeConnectionsForAddress
public boolean closeConnectionsForAddress(String ipAddress)
Description copied from interface:ActiveMQServerControlCloses all the connections of clients connected to this server which matches the specified IP address.- Specified by:
closeConnectionsForAddressin interfaceActiveMQServerControl
-
closeConsumerConnectionsForAddress
public boolean closeConsumerConnectionsForAddress(String address)
Description copied from interface:ActiveMQServerControlCloses all the connections of clients connected to this server which matches the specified IP address.- Specified by:
closeConsumerConnectionsForAddressin interfaceActiveMQServerControl
-
closeConnectionsForUser
public boolean closeConnectionsForUser(String userName)
Description copied from interface:ActiveMQServerControlCloses all the connections of sessions with a matching user name.- Specified by:
closeConnectionsForUserin interfaceActiveMQServerControl
-
closeConnectionWithID
public boolean closeConnectionWithID(String ID)
Description copied from interface:ActiveMQServerControlCloses the connection with the given id.- Specified by:
closeConnectionWithIDin interfaceActiveMQServerControl
-
closeSessionWithID
public boolean closeSessionWithID(String connectionID, String ID) throws Exception
Description copied from interface:ActiveMQServerControlCloses the session with the given id.- Specified by:
closeSessionWithIDin interfaceActiveMQServerControl- Throws:
Exception
-
closeConsumerWithID
public boolean closeConsumerWithID(String sessionID, String ID) throws Exception
Description copied from interface:ActiveMQServerControlCloses the consumer with the given id.- Specified by:
closeConsumerWithIDin interfaceActiveMQServerControl- Throws:
Exception
-
listConnectionIDs
public String[] listConnectionIDs()
Description copied from interface:ActiveMQServerControlLists all the IDs of the connections connected to this server.- Specified by:
listConnectionIDsin interfaceActiveMQServerControl
-
listSessions
public String[] listSessions(String connectionID)
Description copied from interface:ActiveMQServerControlLists all the sessions IDs for the specified connection ID.- Specified by:
listSessionsin interfaceActiveMQServerControl
-
listProducersInfoAsJSON
public String listProducersInfoAsJSON() throws Exception
- Specified by:
listProducersInfoAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listConnections
public String listConnections(String options, int page, int pageSize) throws Exception
- Specified by:
listConnectionsin interfaceActiveMQServerControl- Throws:
Exception
-
listSessions
public String listSessions(String options, int page, int pageSize) throws Exception
- Specified by:
listSessionsin interfaceActiveMQServerControl- Throws:
Exception
-
listConsumers
public String listConsumers(String options, int page, int pageSize) throws Exception
- Specified by:
listConsumersin interfaceActiveMQServerControl- Throws:
Exception
-
listAddresses
public String listAddresses(String options, int page, int pageSize) throws Exception
- Specified by:
listAddressesin interfaceActiveMQServerControl- Throws:
Exception
-
listQueues
public String listQueues(String options, int page, int pageSize) throws Exception
- Specified by:
listQueuesin interfaceActiveMQServerControl- Throws:
Exception
-
listProducers
public String listProducers(String options, int page, int pageSize) throws Exception
- Specified by:
listProducersin interfaceActiveMQServerControl- Throws:
Exception
-
listConnectionsAsJSON
public String listConnectionsAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlLists all the connections connected to this server. The returned String is a JSON string containing details about each connection, e.g.:[ { "creationTime": 1469240429671, "sessionCount": 1, "implementation": "RemotingConnectionImpl", "connectionID": "1648309901", "clientAddress": "\/127.0.0.1:57649" } ]- Specified by:
listConnectionsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listSessionsAsJSON
public String listSessionsAsJSON(String connectionID) throws Exception
Description copied from interface:ActiveMQServerControlLists details about all the sessions for the specified connection ID. The returned String is a JSON string containing details about each session associated with the specified ID, e.g.:[ { "principal": "myUser", "creationTime": 1469240773157, "consumerCount": 0, "sessionID": "d33d10db-507c-11e6-9e47-e8b1fc439540" } ]- Specified by:
listSessionsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listAllSessionsAsJSON
public String listAllSessionsAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlLists details about all sessions. The returned String is a JSON string containing details about each and every session, e.g.:[ { "sessionID":"e71d61d7-2176-11e8-9057-a0afbd82eaba", "creationTime":1520365520212, "consumerCount":1, "principal":"myUser" }, { "sessionID":"e718a6e6-2176-11e8-9057-a0afbd82eaba", "creationTime":1520365520191, "consumerCount":0, "principal":"guest" } ]- Specified by:
listAllSessionsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
buildSessionJSON
public void buildSessionJSON(JsonArrayBuilder array, ServerSession sess)
-
listConsumersAsJSON
public String listConsumersAsJSON(String connectionID) throws Exception
Description copied from interface:ActiveMQServerControlLists all the consumers which belongs to the connection specified by the connectionID. The returned String is a JSON string containing details about each consumer, e.g.:[ { "filter": "color = 'RED'", "queueName": "2ea5b050-28bf-4ee2-9b24-b73f5983192a", "creationTime": 1469239602459, "deliveringCount": 0, "consumerID": 1, "browseOnly": true, "connectionID": "1963ece3-507a-11e6-94ff-e8b1fc439540", "sessionID": "19676f55-507a-11e6-94ff-e8b1fc439540" } ]- Specified by:
listConsumersAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listAllConsumersAsJSON
public String listAllConsumersAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlLists all the consumers connected to this server. The returned String is a JSON string containing details about each consumer, e.g.:[ { "queueName": "fa87c64c-0a38-4697-8421-72e34d17429d", "creationTime": 1469235956168, "deliveringCount": 0, "consumerID": 0, "browseOnly": false, "connectionID": "9c0d42e7-5071-11e6-9e29-e8b1fc439540", "sessionID": "9c0d9109-5071-11e6-9e29-e8b1fc439540" } ]- Specified by:
listAllConsumersAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
getConnectors
public Object[] getConnectors() throws Exception
Description copied from interface:ActiveMQServerControlReturns the connectors configured for this server.- Specified by:
getConnectorsin interfaceActiveMQServerControl- Throws:
Exception
-
getAcceptors
public Object[] getAcceptors() throws Exception
Description copied from interface:ActiveMQServerControlReturns the acceptors configured for this server.- Specified by:
getAcceptorsin interfaceActiveMQServerControl- Throws:
Exception
-
getConnectorsAsJSON
public String getConnectorsAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlReturns the connectors configured for this server using JSON serialization.- Specified by:
getConnectorsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
getAcceptorsAsJSON
public String getAcceptorsAsJSON() throws Exception
Description copied from interface:ActiveMQServerControlReturns the acceptors configured for this server using JSON serialization.- Specified by:
getAcceptorsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
addSecuritySettings
public void addSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles) throws Exception
- Specified by:
addSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addSecuritySettings
public void addSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles) throws Exception
- Specified by:
addSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addSecuritySettings
public void addSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles, String createAddressRoles, String deleteAddressRoles) throws Exception
- Specified by:
addSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
removeSecuritySettings
public void removeSecuritySettings(String addressMatch) throws Exception
- Specified by:
removeSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
getRoles
public Object[] getRoles(String addressMatch) throws Exception
- Specified by:
getRolesin interfaceActiveMQServerControl- Throws:
Exception
-
getRolesAsJSON
public String getRolesAsJSON(String addressMatch) throws Exception
- Specified by:
getRolesAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
getAddressSettingsAsJSON
public String getAddressSettingsAsJSON(String address) throws Exception
Description copied from interface:ActiveMQServerControlreturns the address settings as a JSON string- Specified by:
getAddressSettingsAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public void addAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean lastValueQueue, int deliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics) throws Exception
Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public void addAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses) throws Exception
Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public void addAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount) throws Exception
Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public void addAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount, boolean autoCreateDeadLetterResources, String deadLetterQueuePrefix, String deadLetterQueueSuffix, boolean autoCreateExpiryResources, String expiryQueuePrefix, String expiryQueueSuffix) throws Exception
Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public void addAddressSettings(String address, String DLA, String expiryAddress, long expiryDelay, boolean defaultLastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageMaxCacheSize, long redeliveryDelay, double redeliveryMultiplier, long maxRedeliveryDelay, long redistributionDelay, boolean sendToDLAOnNoRoute, String addressFullMessagePolicy, long slowConsumerThreshold, long slowConsumerCheckPeriod, String slowConsumerPolicy, boolean autoCreateJmsQueues, boolean autoDeleteJmsQueues, boolean autoCreateJmsTopics, boolean autoDeleteJmsTopics, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses, String configDeleteQueues, String configDeleteAddresses, long maxSizeBytesRejectThreshold, String defaultLastValueKey, boolean defaultNonDestructive, boolean defaultExclusiveQueue, boolean defaultGroupRebalance, int defaultGroupBuckets, String defaultGroupFirstKey, int defaultMaxConsumers, boolean defaultPurgeOnNoConsumers, int defaultConsumersBeforeDispatch, long defaultDelayBeforeDispatch, String defaultQueueRoutingType, String defaultAddressRoutingType, int defaultConsumerWindowSize, long defaultRingSize, boolean autoDeleteCreatedQueues, long autoDeleteQueuesDelay, long autoDeleteQueuesMessageCount, long autoDeleteAddressesDelay, double redeliveryCollisionAvoidanceFactor, long retroactiveMessageCount, boolean autoCreateDeadLetterResources, String deadLetterQueuePrefix, String deadLetterQueueSuffix, boolean autoCreateExpiryResources, String expiryQueuePrefix, String expiryQueueSuffix, long minExpiryDelay, long maxExpiryDelay, boolean enableMetrics) throws Exception
Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
removeAddressSettings
public void removeAddressSettings(String addressMatch) throws Exception
- Specified by:
removeAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
sendQueueInfoToQueue
public void sendQueueInfoToQueue(String queueName, String address) throws Exception
- Throws:
Exception
-
getDivertNames
public String[] getDivertNames()
- Specified by:
getDivertNamesin interfaceActiveMQServerControl
-
createDivert
public void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName) throws Exception
- Specified by:
createDivertin interfaceActiveMQServerControl- Throws:
Exception
-
createDivert
public void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String routingType) throws Exception
- Specified by:
createDivertin interfaceActiveMQServerControl- Throws:
Exception
-
createDivert
public void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String transformerPropertiesAsJSON, String routingType) throws Exception
- Specified by:
createDivertin interfaceActiveMQServerControl- Throws:
Exception
-
createDivert
public void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, Map<String,String> transformerProperties, String routingType) throws Exception
- Specified by:
createDivertin interfaceActiveMQServerControl- Throws:
Exception
-
updateDivert
public void updateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String,String> transformerProperties, String routingType) throws Exception
Description copied from interface:ActiveMQServerControlupdate a divert- Specified by:
updateDivertin interfaceActiveMQServerControl- Throws:
Exception
-
destroyDivert
public void destroyDivert(String name) throws Exception
- Specified by:
destroyDivertin interfaceActiveMQServerControl- Throws:
Exception
-
getBridgeNames
public String[] getBridgeNames()
- Specified by:
getBridgeNamesin interfaceActiveMQServerControl
-
createBridge
public void createBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception
- Specified by:
createBridgein interfaceActiveMQServerControl- Throws:
Exception
-
createBridge
public void createBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, String transformerPropertiesAsJSON, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception
- Specified by:
createBridgein interfaceActiveMQServerControl- Throws:
Exception
-
createBridge
public void createBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, Map<String,String> transformerProperties, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, int producerWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception
- Specified by:
createBridgein interfaceActiveMQServerControl- Throws:
Exception
-
createBridge
public void createBridge(String name, String queueName, String forwardingAddress, String filterString, String transformerClassName, long retryInterval, double retryIntervalMultiplier, int initialConnectAttempts, int reconnectAttempts, boolean useDuplicateDetection, int confirmationWindowSize, long clientFailureCheckPeriod, String staticConnectorsOrDiscoveryGroup, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception
- Specified by:
createBridgein interfaceActiveMQServerControl- Throws:
Exception
-
createBridge
public void createBridge(String bridgeConfigurationAsJson) throws Exception
Description copied from interface:ActiveMQServerControlCreate a bridge.- Specified by:
createBridgein interfaceActiveMQServerControl- Parameters:
bridgeConfigurationAsJson- the configuration of the queue in JSON format- Throws:
Exception
-
addConnector
public void addConnector(String name, String url) throws Exception
- Specified by:
addConnectorin interfaceActiveMQServerControl- Throws:
Exception
-
removeConnector
public void removeConnector(String name) throws Exception
- Specified by:
removeConnectorin interfaceActiveMQServerControl- Throws:
Exception
-
listBrokerConnections
public String listBrokerConnections()
- Specified by:
listBrokerConnectionsin interfaceActiveMQServerControl
-
startBrokerConnection
public void startBrokerConnection(String name) throws Exception
- Specified by:
startBrokerConnectionin interfaceActiveMQServerControl- Throws:
Exception
-
stopBrokerConnection
public void stopBrokerConnection(String name) throws Exception
- Specified by:
stopBrokerConnectionin interfaceActiveMQServerControl- Throws:
Exception
-
destroyBridge
public void destroyBridge(String name) throws Exception
- Specified by:
destroyBridgein interfaceActiveMQServerControl- Throws:
Exception
-
createConnectorService
public void createConnectorService(String name, String factoryClass, Map<String,Object> parameters) throws Exception
- Specified by:
createConnectorServicein interfaceActiveMQServerControl- Throws:
Exception
-
destroyConnectorService
public void destroyConnectorService(String name) throws Exception
- Specified by:
destroyConnectorServicein interfaceActiveMQServerControl- Throws:
Exception
-
getConnectorServices
public String[] getConnectorServices()
- Specified by:
getConnectorServicesin interfaceActiveMQServerControl
-
forceFailover
public void forceFailover() throws Exception- Specified by:
forceFailoverin interfaceActiveMQServerControl- Throws:
Exception
-
updateDuplicateIdCache
public void updateDuplicateIdCache(String address, Object[] ids) throws Exception
- Throws:
Exception
-
scaleDown
public void scaleDown(String connector) throws Exception
- Specified by:
scaleDownin interfaceActiveMQServerControl- Throws:
Exception
-
listNetworkTopology
public String listNetworkTopology() throws Exception
- Specified by:
listNetworkTopologyin interfaceActiveMQServerControl- Throws:
Exception
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
- Specified by:
removeNotificationListenerin interfaceNotificationEmitter- Throws:
ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
- Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Throws:
ListenerNotFoundException
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
- Specified by:
addNotificationListenerin interfaceNotificationBroadcaster- Throws:
IllegalArgumentException
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster
-
getConnectionTTLOverride
public long getConnectionTTLOverride()
Description copied from interface:ActiveMQServerControlReturns the connection time to live.
This value overrides the connection time to live sent by the client.- Specified by:
getConnectionTTLOverridein interfaceActiveMQServerControl
-
getIDCacheSize
public int getIDCacheSize()
Description copied from interface:ActiveMQServerControlReturns the size of the cache for pre-creating message IDs.- Specified by:
getIDCacheSizein interfaceActiveMQServerControl
-
getLargeMessagesDirectory
public String getLargeMessagesDirectory()
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store large messages.- Specified by:
getLargeMessagesDirectoryin interfaceActiveMQServerControl
-
getManagementAddress
public String getManagementAddress()
Description copied from interface:ActiveMQServerControlReturns the management address of this server.
Clients can send management messages to this address to manage this server.- Specified by:
getManagementAddressin interfaceActiveMQServerControl
-
getNodeID
public String getNodeID()
Description copied from interface:ActiveMQServerControlReturns the node ID of this server.
Clients can send management messages to this address to manage this server.- Specified by:
getNodeIDin interfaceActiveMQServerControl
-
getActivationSequence
public long getActivationSequence()
Description copied from interface:ActiveMQServerControlReturns the current activation sequence number of this server.
When replicated, peers may coordinate activation with this monotonic sequence- Specified by:
getActivationSequencein interfaceActiveMQServerControl
-
getManagementNotificationAddress
public String getManagementNotificationAddress()
Description copied from interface:ActiveMQServerControlReturns the management notification address of this server.
Clients can bind queues to this address to receive management notifications emitted by this server.- Specified by:
getManagementNotificationAddressin interfaceActiveMQServerControl
-
getMessageExpiryScanPeriod
public long getMessageExpiryScanPeriod()
Description copied from interface:ActiveMQServerControlReturns the frequency (in milliseconds) to scan messages to detect which messages have expired.- Specified by:
getMessageExpiryScanPeriodin interfaceActiveMQServerControl
-
getMessageExpiryThreadPriority
@Deprecated public long getMessageExpiryThreadPriority()
Deprecated.Description copied from interface:ActiveMQServerControlReturns the priority of the thread used to scan message expiration.- Specified by:
getMessageExpiryThreadPriorityin interfaceActiveMQServerControl
-
getTransactionTimeout
public long getTransactionTimeout()
Description copied from interface:ActiveMQServerControlReturns the timeout (in milliseconds) after which transactions is removed from the resource manager after it was created.- Specified by:
getTransactionTimeoutin interfaceActiveMQServerControl
-
getTransactionTimeoutScanPeriod
public long getTransactionTimeoutScanPeriod()
Description copied from interface:ActiveMQServerControlReturns the frequency (in milliseconds) to scan transactions to detect which transactions have timed out.- Specified by:
getTransactionTimeoutScanPeriodin interfaceActiveMQServerControl
-
isPersistDeliveryCountBeforeDelivery
public boolean isPersistDeliveryCountBeforeDelivery()
Description copied from interface:ActiveMQServerControlReturns whether delivery count is persisted before messages are delivered to the consumers.- Specified by:
isPersistDeliveryCountBeforeDeliveryin interfaceActiveMQServerControl
-
isPersistIDCache
public boolean isPersistIDCache()
Description copied from interface:ActiveMQServerControlReturns whether message ID cache is persisted.- Specified by:
isPersistIDCachein interfaceActiveMQServerControl
-
isWildcardRoutingEnabled
public boolean isWildcardRoutingEnabled()
Description copied from interface:ActiveMQServerControlReturns whether wildcard routing is supported by this server.- Specified by:
isWildcardRoutingEnabledin interfaceActiveMQServerControl
-
fillMBeanOperationInfo
protected MBeanOperationInfo[] fillMBeanOperationInfo()
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
protected MBeanAttributeInfo[] fillMBeanAttributeInfo()
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-
onNotification
public void onNotification(Notification notification)
- Specified by:
onNotificationin interfaceNotificationListener
-
addUser
public void addUser(String username, String password, String roles, boolean plaintext) throws Exception
Description copied from interface:ActiveMQServerControlAdd a user (only applicable when using the JAAS PropertiesLoginModule)- Specified by:
addUserin interfaceActiveMQServerControl- Throws:
Exception
-
listUser
public String listUser(String username) throws Exception
Description copied from interface:ActiveMQServerControlList the information about a user or all users if no username is supplied (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).- Specified by:
listUserin interfaceActiveMQServerControl- Returns:
- JSON array of user and role information
- Throws:
Exception
-
removeUser
public void removeUser(String username) throws Exception
Description copied from interface:ActiveMQServerControlRemove a user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).- Specified by:
removeUserin interfaceActiveMQServerControl- Throws:
Exception
-
resetUser
public void resetUser(String username, String password, String roles, boolean plaintext) throws Exception
Description copied from interface:ActiveMQServerControlSet new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).- Specified by:
resetUserin interfaceActiveMQServerControl- Throws:
Exception
-
resetUser
public void resetUser(String username, String password, String roles) throws Exception
Description copied from interface:ActiveMQServerControlSet new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).- Specified by:
resetUserin interfaceActiveMQServerControl- Throws:
Exception
-
reloadConfigurationFile
public void reloadConfigurationFile() throws Exception- Specified by:
reloadConfigurationFilein interfaceActiveMQServerControl- Throws:
Exception
-
replay
public void replay(String address, String target, String filter) throws Exception
- Specified by:
replayin interfaceActiveMQServerControl- Throws:
Exception
-
-