Class ActiveMQServerControlImpl
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,ActiveMQServerControl,NotificationListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
storageManagerFields inherited from interface org.apache.activemq.artemis.api.core.management.ActiveMQServerControl
ADDRESS_MEMORY_USAGE_DESCRIPTION, ADDRESS_MEMORY_USAGE_PERCENTAGE_DESCRIPTION, AUTHENTICATION_FAILURE_COUNT, AUTHENTICATION_SUCCESS_COUNT, AUTHORIZATION_FAILURE_COUNT, AUTHORIZATION_SUCCESS_COUNT, CONNECTION_COUNT_DESCRIPTION, DISK_STORE_USAGE_DESCRIPTION, IS_ACTIVE_DESCRIPTION, REPLICA_SYNC_DESCRIPTION, SESSION_COUNT_DESCRIPTION, TOTAL_CONNECTION_COUNT_DESCRIPTION, TOTAL_SESSION_COUNT_DESCRIPTION -
Constructor Summary
ConstructorsConstructorDescriptionActiveMQServerControlImpl(PostOffice postOffice, Configuration configuration, ResourceManager resourceManager, RemotingService remotingService, ActiveMQServer messagingServer, MessageCounterManager messageCounterManager, StorageManager storageManager, NotificationBroadcasterSupport broadcaster) -
Method Summary
Modifier and TypeMethodDescriptionaddAddressSettings(String address, String addressSettingsConfigurationAsJson) adds a new address setting for a specific addressvoidaddAddressSettings(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) Deprecated.voidaddAddressSettings(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) Deprecated.voidaddAddressSettings(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) Deprecated.voidaddAddressSettings(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) Deprecated.voidaddAddressSettings(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) Deprecated.voidaddConnector(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) voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles, String createAddressRoles, String deleteAddressRoles, String viewRoles, String editRoles) voidAdd a user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager)voidbuildSessionJSON(JsonArrayBuilder array, ServerSession sess) voidvoidbooleancloseConnectionsForAddress(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.booleanCloses 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.booleancloseSessionWithID(String connectionID, String ID, boolean force) Closes the session with the given id.booleancommitPreparedTransaction(String transactionAsBase64) Heuristically commits a prepared transaction.createAddress(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) voidvoidcreateDivert(String divertConfiguration) Create a Divert.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) createQueue(String queueConfigurationAsJson) Create a queue.createQueue(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.createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) Create a queue.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) Create a queue.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) Create a queue.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) Create a queue.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) 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) voidvoiddestroyDivert(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 queuesvoidDisables message counters for this server.voidEnables message counters for this server.voidprotected MBeanAttributeInfo[]protected MBeanOperationInfo[]voidbooleanObject[]Returns the acceptors configured for this server..Returns the acceptors configured for this server using JSON serialization..longReturns the current activation sequence number of this server; when replicated, peers may coordinate activation with this monotonic sequence.intReturns the number of addresses created on this server..getAddressInfo(String address) longReturns the memory used by all the addresses on broker for in-memory messages.intReturns the memory used by all the addresses on broker as a percentage of the global-max-size.String[]Returns the names of the addresses created on this server..getAddressSettingsAsJSON(String address) Returns the address settings as a JSON string.longReturns the runtime size of the authentication cache.longlonglongReturns the runtime size of the authorization cache.longlongReturns the file system directory used to store bindings..String[]String[]String[]Returns the names of the cluster-connections deployed on this server..intReturns the number of clients connected to this server..longReturns the connection time to live; this value overrides the connection time to live sent by the client.Object[]Returns the connectors configured for this server..Returns the connectors configured for this server using JSON serialization..String[]longintReturns how often the server checks for disk space usage..doubleReturns the percentage of total disk store use.String[]longReturns the global max bytes limit for in-memory messages..intReturns the size of the cache for pre-creating message IDs..String[]Returns the list of interceptors used by this server for incoming messages..String[]intReturns the size of the internal buffer on the journal..intReturns the timeout (in nanoseconds) used to flush internal buffers on the journal..intReturns the minimal number of journal files before compacting..intReturn the percentage of live data before compacting the journal.Returns the file system directory used to store journal log..intReturns the size (in bytes) of each journal files..intReturns the maximum number of write requests that can be in the AIO queue at any given time..intReturns the number of journal files to pre-create..intNumber of files that would be acceptable to keep on a poolReturns the type of journal used by this server (eitherNIOorASYNCIO)..Returns the file system directory used to store large messages..Returns the management address of this server; clients can send management messages to this address to manage this server.Returns the management notification address of this server; clients can bind queues to this address to receive management notifications emitted by this server.intReturns the disk use max limit..intReturns the maximum number of days kept in memory for message counter..longReturns the sample period (in milliseconds) to take message counter snapshot..longReturns the frequency (in milliseconds) to scan messages to detect which messages.longDeprecated.getName()Returns this server's name..Returns the node ID of this server..String[]Returns the list of interceptors used by this server for outgoing messages..Returns the file system directory used to store paging files..intintReturns the number of queues created on this server..String[]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[]getRolesAsJSON(String addressMatch) intReturns the maximum number of threads in the scheduled thread pool..longReturns the interval time (in milliseconds) to invalidate security credentials..intReturns the number of sessions on this server.intReturns the maximum number of threads in the thread pool..longReturns the total number of clients which have connected to this server since it was started..longReturns the number of consumers on all the queues currently on this server..longReturns the number of messages in all queues currently on the server..longReturns the number of messages acknowledged from all the queues currently on this server since they were created..longReturns the number of messages sent to all queues currently on the server since they were created..longReturns the total number of sessions created on this server since it was started.longReturns the timeout (in milliseconds) after which transactions is removed.longReturns the frequency (in milliseconds) to scan transactions to detect which transactions.Returns the uptime of this server..longReturns the uptime of this server..Returns this server's version..booleanisActive()booleanReturns whether code coming from connection is executed asynchronously or not..booleanisBackup()Returnstrueif this server is a backup,falseif it is a primary server or if it is a backup server and has been activated.booleanReturns whether this server is clustered..booleanReturns whether the bindings directory is created on this server startup..booleanReturns whether the journal directory is created on this server startup..booleanbooleanReturns if clients failover on a server shutdown.booleanReturns whether the journal is synchronized when receiving non-transactional data..booleanReturns whether the journal is synchronized when receiving transactional data..booleanReturns whether message counter is enabled for this server..booleanReturns whether delivery count is persisted before messages are delivered to the consumers..booleanReturns whether this server is using persistence and store data..booleanReturns whether message ID cache is persisted..booleanReturns whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server.booleanReturns whether security is enabled for this server..booleanReturns whether this server shares its data store with a corresponding primary or backup server..booleanReturn whether this server is started.booleanReturns whether wildcard routing is supported by this server..listAddresses(String separator) listAddresses(String options, int page, int pageSize) Lists all the consumers connected to this server.Lists details about all sessions.listBindingsForAddress(String address) String[]Lists all the IDs of the connections connected to this server.listConnections(String options, int page, int pageSize) Lists all the connections connected to this server.listConsumers(String options, int page, int pageSize) listConsumersAsJSON(String connectionID) Lists all the consumers which belongs to the connection specified by the connectionID.String[]List transactions which have been heuristically committed.String[]List transactions which have been heuristically rolled back.Deprecated.Deprecated.List all the prepared transaction, sorted by date, oldest first, with details, in text format.String[]List all the prepared transaction, sorted by date, oldest first.listProducers(String options, int page, int pageSize) listQueues(String options, int page, int pageSize) String[]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.listSessions(String options, int page, int pageSize) listSessionsAsJSON(String connectionID) Lists details about all the sessions for the specified connection ID.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) voidvoidvoidremoveAddressSettings(String addressMatch) voidremoveConnector(String name) voidvoidremoveNotificationListener(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).voidReplays messages from all files in the retention folder that match an address and filter.voidReplays messages from a configurable subset of the files in the retention folder that match an address and filter.voidReset histories for all message counters.voidReset all message counters.voidSet new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).voidSet new properties on an existing user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).voidvoidrestartEmbeddedWebServer(long timeout) booleanrollbackPreparedTransaction(String transactionAsBase64) Heuristically rolls back a prepared transaction.voidvoidsendQueueInfoToQueue(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) voidvoidstopBrokerConnection(String name) voidupdateAddress(String name, String routingTypes) voidupdateDivert(String divertConfiguration) update a divertvoidupdateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) update a divertvoidupdateDuplicateIdCache(String address, Object[] ids) updateQueue(String queueConfigurationAsJson) Update a queue.updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) Deprecated.updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) Deprecated.updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) Update a queueupdateQueue(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 queueupdateQueue(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 queueupdateQueue(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 queueMethods inherited from class org.apache.activemq.artemis.core.management.impl.AbstractControl
blockOnIO, clearIO, getMBeanInfo, sendMessage, tcclCall, tcclInvokeMethods 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, setImplementationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.api.core.management.ActiveMQServerControl
listDivertNames
-
Field Details
-
CONFIG_AS_PROPERTIES_FILE
- See Also:
-
TMP_DIR_SYSTEM_PROPERTY
- See Also:
-
-
Constructor Details
-
ActiveMQServerControlImpl
public ActiveMQServerControlImpl(PostOffice postOffice, Configuration configuration, ResourceManager resourceManager, RemotingService remotingService, ActiveMQServer messagingServer, MessageCounterManager messageCounterManager, StorageManager storageManager, NotificationBroadcasterSupport broadcaster) throws Exception - Throws:
Exception
-
-
Method Details
-
isStarted
public boolean isStarted()Description copied from interface:ActiveMQServerControlReturn whether this server is started.- Specified by:
isStartedin interfaceActiveMQServerControl
-
getName
Description copied from interface:ActiveMQServerControlReturns this server's name..- Specified by:
getNamein interfaceActiveMQServerControl- Returns:
- this server's name.
-
getCurrentTimeMillis
public long getCurrentTimeMillis()- Specified by:
getCurrentTimeMillisin interfaceActiveMQServerControl
-
getVersion
Description copied from interface:ActiveMQServerControlReturns this server's version..- Specified by:
getVersionin interfaceActiveMQServerControl- Returns:
- this server's version.
-
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 primary server or if it is a backup server and has been activated.- Specified by:
isBackupin interfaceActiveMQServerControl- Returns:
trueif this server is a backup,falseif it is a primary server or if it is a backup server and has been activated
-
getBindingsDirectory
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store bindings..- Specified by:
getBindingsDirectoryin interfaceActiveMQServerControl- Returns:
- the file system directory used to store bindings.
-
getInterceptorClassNames
-
getIncomingInterceptorClassNames
Description copied from interface:ActiveMQServerControlReturns the list of interceptors used by this server for incoming messages..- Specified by:
getIncomingInterceptorClassNamesin interfaceActiveMQServerControl- Returns:
- the list of interceptors used by this server for incoming messages.
- See Also:
-
getOutgoingInterceptorClassNames
Description copied from interface:ActiveMQServerControlReturns the list of interceptors used by this server for outgoing messages..- Specified by:
getOutgoingInterceptorClassNamesin interfaceActiveMQServerControl- Returns:
- the list of interceptors used by this server for outgoing messages.
- See Also:
-
getBrokerPluginClassNames
- Specified by:
getBrokerPluginClassNamesin interfaceActiveMQServerControl
-
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- Returns:
- the size of the internal buffer on the journal.
-
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- Returns:
- the timeout (in nanoseconds) used to flush internal buffers on the journal.
-
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- Returns:
- if clients failover on a server shutdown
-
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- Returns:
- the maximum number of write requests that can be in the AIO queue at any given time.
-
getJournalDirectory
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store journal log..- Specified by:
getJournalDirectoryin interfaceActiveMQServerControl- Returns:
- the file system directory used to store journal log.
-
getJournalFileSize
public int getJournalFileSize()Description copied from interface:ActiveMQServerControlReturns the size (in bytes) of each journal files..- Specified by:
getJournalFileSizein interfaceActiveMQServerControl- Returns:
- the size (in bytes) of each journal files.
-
getJournalMinFiles
public int getJournalMinFiles()Description copied from interface:ActiveMQServerControlReturns the number of journal files to pre-create..- Specified by:
getJournalMinFilesin interfaceActiveMQServerControl- Returns:
- the number of journal files to pre-create.
-
getJournalCompactMinFiles
public int getJournalCompactMinFiles()Description copied from interface:ActiveMQServerControlReturns the minimal number of journal files before compacting..- Specified by:
getJournalCompactMinFilesin interfaceActiveMQServerControl- Returns:
- the minimal number of journal files before compacting.
-
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- Returns:
- whether this server is using persistence and store data.
-
getJournalType
Description copied from interface:ActiveMQServerControlReturns the type of journal used by this server (eitherNIOorASYNCIO)..- Specified by:
getJournalTypein interfaceActiveMQServerControl- Returns:
- the type of journal used by this server (either
NIOorASYNCIO).
-
getPagingDirectory
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store paging files..- Specified by:
getPagingDirectoryin interfaceActiveMQServerControl- Returns:
- the file system directory used to store paging files.
-
getScheduledThreadPoolMaxSize
public int getScheduledThreadPoolMaxSize()Description copied from interface:ActiveMQServerControlReturns the maximum number of threads in the scheduled thread pool..- Specified by:
getScheduledThreadPoolMaxSizein interfaceActiveMQServerControl- Returns:
- the maximum number of threads in the scheduled thread pool.
-
getThreadPoolMaxSize
public int getThreadPoolMaxSize()Description copied from interface:ActiveMQServerControlReturns the maximum number of threads in the thread pool..- Specified by:
getThreadPoolMaxSizein interfaceActiveMQServerControl- Returns:
- the maximum number of threads in the thread pool.
-
getSecurityInvalidationInterval
public long getSecurityInvalidationInterval()Description copied from interface:ActiveMQServerControlReturns the interval time (in milliseconds) to invalidate security credentials..- Specified by:
getSecurityInvalidationIntervalin interfaceActiveMQServerControl- Returns:
- the interval time (in milliseconds) to invalidate security credentials.
-
isClustered
public boolean isClustered()Description copied from interface:ActiveMQServerControlReturns whether this server is clustered..- Specified by:
isClusteredin interfaceActiveMQServerControl- Returns:
- whether this server is clustered.
-
isCreateBindingsDir
public boolean isCreateBindingsDir()Description copied from interface:ActiveMQServerControlReturns whether the bindings directory is created on this server startup..- Specified by:
isCreateBindingsDirin interfaceActiveMQServerControl- Returns:
- whether the bindings directory is created on this server startup.
-
isCreateJournalDir
public boolean isCreateJournalDir()Description copied from interface:ActiveMQServerControlReturns whether the journal directory is created on this server startup..- Specified by:
isCreateJournalDirin interfaceActiveMQServerControl- Returns:
- whether the journal directory is created on this server startup.
-
isJournalSyncNonTransactional
public boolean isJournalSyncNonTransactional()Description copied from interface:ActiveMQServerControlReturns whether the journal is synchronized when receiving non-transactional data..- Specified by:
isJournalSyncNonTransactionalin interfaceActiveMQServerControl- Returns:
- whether the journal is synchronized when receiving non-transactional data.
-
isJournalSyncTransactional
public boolean isJournalSyncTransactional()Description copied from interface:ActiveMQServerControlReturns whether the journal is synchronized when receiving transactional data..- Specified by:
isJournalSyncTransactionalin interfaceActiveMQServerControl- Returns:
- whether the journal is synchronized when receiving transactional data.
-
isSecurityEnabled
public boolean isSecurityEnabled()Description copied from interface:ActiveMQServerControlReturns whether security is enabled for this server..- Specified by:
isSecurityEnabledin interfaceActiveMQServerControl- Returns:
- whether security is enabled for this server.
-
isAsyncConnectionExecutionEnabled
public boolean isAsyncConnectionExecutionEnabled()Description copied from interface:ActiveMQServerControlReturns whether code coming from connection is executed asynchronously or not..- Specified by:
isAsyncConnectionExecutionEnabledin interfaceActiveMQServerControl- Returns:
- whether code coming from connection is executed asynchronously or not.
-
getDiskScanPeriod
public int getDiskScanPeriod()Description copied from interface:ActiveMQServerControlReturns how often the server checks for disk space usage..- Specified by:
getDiskScanPeriodin interfaceActiveMQServerControl- Returns:
- how often the server checks for disk space usage.
-
getMaxDiskUsage
public int getMaxDiskUsage()Description copied from interface:ActiveMQServerControlReturns the disk use max limit..- Specified by:
getMaxDiskUsagein interfaceActiveMQServerControl- Returns:
- the disk use max limit.
-
getGlobalMaxSize
public long getGlobalMaxSize()Description copied from interface:ActiveMQServerControlReturns the global max bytes limit for in-memory messages..- Specified by:
getGlobalMaxSizein interfaceActiveMQServerControl- Returns:
- the global max bytes limit for in-memory messages.
-
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- Returns:
- the memory used by all the addresses on broker for in-memory messages
-
getDiskStoreUsage
public double getDiskStoreUsage()Description copied from interface:ActiveMQServerControlReturns the percentage of total disk store use.- Specified by:
getDiskStoreUsagein interfaceActiveMQServerControl- Returns:
- the percentage of total disk store use
-
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- Returns:
- the memory used by all the addresses on broker as a percentage of the global-max-size
-
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- Returns:
- the runtime size of the authentication cache
-
getAuthorizationCacheSize
public long getAuthorizationCacheSize()Description copied from interface:ActiveMQServerControlReturns the runtime size of the authorization cache.- Specified by:
getAuthorizationCacheSizein interfaceActiveMQServerControl- Returns:
- the runtime size of the authorization cache
-
freezeReplication
- Specified by:
freezeReplicationin interfaceActiveMQServerControl- Throws:
Exception
-
createAddress
- Specified by:
createAddressin interfaceActiveMQServerControl- Throws:
Exception
-
updateAddress
- Specified by:
updateAddressin interfaceActiveMQServerControl- Throws:
Exception
-
deleteAddress
- Specified by:
deleteAddressin interfaceActiveMQServerControl- Throws:
Exception
-
deleteAddress
- 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.If
addressisnullit 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.If
addressisnullit 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
Description copied from interface:ActiveMQServerControlCreate a durable queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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
Description copied from interface:ActiveMQServerControlCreate a durable queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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
Description copied from interface:ActiveMQServerControlCreate a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) 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
Description copied from interface:ActiveMQServerControlCreate a queue.This method throws a
ActiveMQQueueExistsException) 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
Description copied from interface:ActiveMQServerControlCreate a queue.This method throws a
ActiveMQQueueExistsException) exception if the queue already exists andignoreIfExistsisfalse.- Specified by:
createQueuein interfaceActiveMQServerControl- Parameters:
queueConfigurationAsJson- the configuration of the queue in JSON formatignoreIfExists- whether to simply return without an exception if the queue exists- Returns:
- the configuration of the created queue in JSON format
- Throws:
Exception
-
updateQueue
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- 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- 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- 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- Throws:
Exception
-
getQueueCount
public int getQueueCount()Description copied from interface:ActiveMQServerControlReturns the number of queues created on this server..- Specified by:
getQueueCountin interfaceActiveMQServerControl- Returns:
- the number of queues created on this server.
-
getQueueNames
Description copied from interface:ActiveMQServerControlReturns the names of the queues created on this server..- Specified by:
getQueueNamesin interfaceActiveMQServerControl- Returns:
- the names of the queues created on this server.
-
getQueueNames
Description copied from interface:ActiveMQServerControlReturns the names of the queues created on this server with the given routing-type..- Specified by:
getQueueNamesin interfaceActiveMQServerControl- Returns:
- the names of the queues created on this server with the given routing-type.
-
getClusterConnectionNames
Description copied from interface:ActiveMQServerControlReturns the names of the cluster-connections deployed on this server..- Specified by:
getClusterConnectionNamesin interfaceActiveMQServerControl- Returns:
- the names of the cluster-connections deployed on this server.
-
getUptime
Description copied from interface:ActiveMQServerControlReturns the uptime of this server..- Specified by:
getUptimein interfaceActiveMQServerControl- Returns:
- the uptime of this server.
-
getUptimeMillis
public long getUptimeMillis()Description copied from interface:ActiveMQServerControlReturns the uptime of this server..- Specified by:
getUptimeMillisin interfaceActiveMQServerControl- Returns:
- the uptime of this server.
-
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 primary or backup server.- Specified by:
isReplicaSyncin interfaceActiveMQServerControl- Returns:
- whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server
-
getAddressCount
public int getAddressCount()Description copied from interface:ActiveMQServerControlReturns the number of addresses created on this server..- Specified by:
getAddressCountin interfaceActiveMQServerControl- Returns:
- the number of addresses created on this server.
-
getAddressNames
Description copied from interface:ActiveMQServerControlReturns the names of the addresses created on this server..- Specified by:
getAddressNamesin interfaceActiveMQServerControl- Returns:
- the names of the addresses created on this server.
-
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
Description copied from interface:ActiveMQServerControlDestroys the queue corresponding to the specified name.- Specified by:
destroyQueuein interfaceActiveMQServerControl- Throws:
Exception
-
destroyQueue
Description copied from interface:ActiveMQServerControlDestroys the queue corresponding to the specified name.- Specified by:
destroyQueuein interfaceActiveMQServerControl- Throws:
Exception
-
getAddressInfo
- Specified by:
getAddressInfoin interfaceActiveMQServerControl- Throws:
ActiveMQAddressDoesNotExistException
-
listBindingsForAddress
- Specified by:
listBindingsForAddressin interfaceActiveMQServerControl- Throws:
Exception
-
listAddresses
- 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- Returns:
- the number of clients connected to this server.
-
getTotalConnectionCount
public long getTotalConnectionCount()Description copied from interface:ActiveMQServerControlReturns the total number of clients which have connected to this server since it was started..- Specified by:
getTotalConnectionCountin interfaceActiveMQServerControl- Returns:
- the total number of clients which have connected to this server since it was started.
-
getSessionCount
public int getSessionCount()Description copied from interface:ActiveMQServerControlReturns the number of sessions on this server.- Specified by:
getSessionCountin interfaceActiveMQServerControl
-
getTotalSessionCount
public long getTotalSessionCount()Description copied from interface:ActiveMQServerControlReturns the total number of sessions created on this server since it was started.- Specified by:
getTotalSessionCountin interfaceActiveMQServerControl
-
getTotalMessageCount
public long getTotalMessageCount()Description copied from interface:ActiveMQServerControlReturns the number of messages in all queues currently on the server..- Specified by:
getTotalMessageCountin interfaceActiveMQServerControl- Returns:
- the number of messages in all queues currently on the server.
-
getTotalMessagesAdded
public long getTotalMessagesAdded()Description copied from interface:ActiveMQServerControlReturns the number of messages sent to all queues currently on the server since they were created..- Specified by:
getTotalMessagesAddedin interfaceActiveMQServerControl- Returns:
- the number of messages sent to all queues currently on the server since they were created.
-
getTotalMessagesAcknowledged
public long getTotalMessagesAcknowledged()Description copied from interface:ActiveMQServerControlReturns the number of messages acknowledged from all the queues currently on this server since they were created..- Specified by:
getTotalMessagesAcknowledgedin interfaceActiveMQServerControl- Returns:
- the number of messages acknowledged from all the queues currently on this server since they were created.
-
getTotalConsumerCount
public long getTotalConsumerCount()Description copied from interface:ActiveMQServerControlReturns the number of consumers on all the queues currently on this server..- Specified by:
getTotalConsumerCountin interfaceActiveMQServerControl- Returns:
- the number of consumers on all the queues currently on this server.
-
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- Returns:
- whether message counter is enabled for this server.
-
getMessageCounterSamplePeriod
public long getMessageCounterSamplePeriod()Description copied from interface:ActiveMQServerControlReturns the sample period (in milliseconds) to take message counter snapshot..- Specified by:
getMessageCounterSamplePeriodin interfaceActiveMQServerControl- Returns:
- the sample period (in milliseconds) to take message counter snapshot.
-
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- Returns:
- the maximum number of days kept in memory for message counter.
-
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
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:
-
listPreparedTransactionDetailsAsJSON
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.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
Description copied from interface:ActiveMQServerControlList transactions which have been heuristically committed.- Specified by:
listHeuristicCommittedTransactionsin interfaceActiveMQServerControl
-
listHeuristicRolledBackTransactions
Description copied from interface:ActiveMQServerControlList transactions which have been heuristically rolled back.- Specified by:
listHeuristicRolledBackTransactionsin interfaceActiveMQServerControl
-
commitPreparedTransaction
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:
-
rollbackPreparedTransaction
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:
-
listRemoteAddresses
Description copied from interface:ActiveMQServerControlLists the addresses of all the clients connected to this address.- Specified by:
listRemoteAddressesin interfaceActiveMQServerControl
-
listRemoteAddresses
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
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
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
Description copied from interface:ActiveMQServerControlCloses all the connections of sessions with a matching user name.- Specified by:
closeConnectionsForUserin interfaceActiveMQServerControl
-
closeConnectionWithID
Description copied from interface:ActiveMQServerControlCloses the connection with the given id.- Specified by:
closeConnectionWithIDin interfaceActiveMQServerControl
-
closeSessionWithID
Description copied from interface:ActiveMQServerControlCloses the session with the given id.- Specified by:
closeSessionWithIDin interfaceActiveMQServerControl- Throws:
Exception
-
closeSessionWithID
Description copied from interface:ActiveMQServerControlCloses the session with the given id.- Specified by:
closeSessionWithIDin interfaceActiveMQServerControl- Throws:
Exception
-
closeConsumerWithID
Description copied from interface:ActiveMQServerControlCloses the consumer with the given id.- Specified by:
closeConsumerWithIDin interfaceActiveMQServerControl- Throws:
Exception
-
listConnectionIDs
Description copied from interface:ActiveMQServerControlLists all the IDs of the connections connected to this server.- Specified by:
listConnectionIDsin interfaceActiveMQServerControl
-
listSessions
Description copied from interface:ActiveMQServerControlLists all the sessions IDs for the specified connection ID.- Specified by:
listSessionsin interfaceActiveMQServerControl
-
listProducersInfoAsJSON
- Specified by:
listProducersInfoAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
listConnections
- Specified by:
listConnectionsin interfaceActiveMQServerControl- Throws:
Exception
-
listSessions
- Specified by:
listSessionsin interfaceActiveMQServerControl- Throws:
Exception
-
listConsumers
- Specified by:
listConsumersin interfaceActiveMQServerControl- Throws:
Exception
-
listAddresses
- Specified by:
listAddressesin interfaceActiveMQServerControl- Throws:
Exception
-
listQueues
- Specified by:
listQueuesin interfaceActiveMQServerControl- Throws:
Exception
-
listProducers
- Specified by:
listProducersin interfaceActiveMQServerControl- Throws:
Exception
-
listConnectionsAsJSON
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
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
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
-
listConsumersAsJSON
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
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
Description copied from interface:ActiveMQServerControlReturns the connectors configured for this server..- Specified by:
getConnectorsin interfaceActiveMQServerControl- Returns:
- the connectors configured for this server.
- Throws:
Exception
-
getAcceptors
Description copied from interface:ActiveMQServerControlReturns the acceptors configured for this server..- Specified by:
getAcceptorsin interfaceActiveMQServerControl- Returns:
- the acceptors configured for this server.
- Throws:
Exception
-
getConnectorsAsJSON
Description copied from interface:ActiveMQServerControlReturns the connectors configured for this server using JSON serialization..- Specified by:
getConnectorsAsJSONin interfaceActiveMQServerControl- Returns:
- the connectors configured for this server using JSON serialization.
- Throws:
Exception
-
getAcceptorsAsJSON
Description copied from interface:ActiveMQServerControlReturns the acceptors configured for this server using JSON serialization..- Specified by:
getAcceptorsAsJSONin interfaceActiveMQServerControl- Returns:
- the acceptors configured for this server using JSON serialization.
- 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
-
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, String viewRoles, String editRoles) throws Exception - Specified by:
addSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
removeSecuritySettings
- Specified by:
removeSecuritySettingsin interfaceActiveMQServerControl- Throws:
Exception
-
getRoles
- Specified by:
getRolesin interfaceActiveMQServerControl- Throws:
Exception
-
getRolesAsJSON
- Specified by:
getRolesAsJSONin interfaceActiveMQServerControl- Throws:
Exception
-
getAddressSettingsAsJSON
Description copied from interface:ActiveMQServerControlReturns the address settings as a JSON string.- Specified by:
getAddressSettingsAsJSONin interfaceActiveMQServerControl- Returns:
- the address settings as a JSON string
- Throws:
Exception
-
addAddressSettings
@Deprecated 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 Deprecated.Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
@Deprecated 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 Deprecated.Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
@Deprecated 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 Deprecated.Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
@Deprecated 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 Deprecated.Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
@Deprecated 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 Deprecated.Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
addAddressSettings
public String addAddressSettings(String address, String addressSettingsConfigurationAsJson) throws Exception Description copied from interface:ActiveMQServerControladds a new address setting for a specific address- Specified by:
addAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
removeAddressSettings
- Specified by:
removeAddressSettingsin interfaceActiveMQServerControl- Throws:
Exception
-
sendQueueInfoToQueue
- Throws:
Exception
-
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
-
createDivert
Description copied from interface:ActiveMQServerControlCreate a Divert.- Specified by:
createDivertin interfaceActiveMQServerControl- Parameters:
divertConfiguration- the configuration of the divert in JSON format- Throws:
Exception
-
updateDivert
public void updateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) throws ExceptionDescription copied from interface:ActiveMQServerControlupdate a divert- Specified by:
updateDivertin interfaceActiveMQServerControl- Throws:
Exception
-
updateDivert
Description copied from interface:ActiveMQServerControlupdate a divert- Specified by:
updateDivertin interfaceActiveMQServerControl- Throws:
Exception
-
destroyDivert
- Specified by:
destroyDivertin interfaceActiveMQServerControl- Throws:
Exception
-
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
Description copied from interface:ActiveMQServerControlCreate a bridge.- Specified by:
createBridgein interfaceActiveMQServerControl- Parameters:
bridgeConfigurationAsJson- the configuration of the queue in JSON format- Throws:
Exception
-
addConnector
- Specified by:
addConnectorin interfaceActiveMQServerControl- Throws:
Exception
-
removeConnector
- Specified by:
removeConnectorin interfaceActiveMQServerControl- Throws:
Exception
-
listBrokerConnections
- Specified by:
listBrokerConnectionsin interfaceActiveMQServerControl
-
startBrokerConnection
- Specified by:
startBrokerConnectionin interfaceActiveMQServerControl- Throws:
Exception
-
stopBrokerConnection
- Specified by:
stopBrokerConnectionin interfaceActiveMQServerControl- Throws:
Exception
-
destroyBridge
- 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
- Specified by:
destroyConnectorServicein interfaceActiveMQServerControl- Throws:
Exception
-
getConnectorServices
- Specified by:
getConnectorServicesin interfaceActiveMQServerControl
-
forceFailover
- Specified by:
forceFailoverin interfaceActiveMQServerControl- Throws:
Exception
-
updateDuplicateIdCache
- Throws:
Exception
-
scaleDown
- Specified by:
scaleDownin interfaceActiveMQServerControl- Throws:
Exception
-
listNetworkTopology
- 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
- 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- Returns:
- the connection time to live; this value overrides the connection time to live sent by the client
-
getIDCacheSize
public int getIDCacheSize()Description copied from interface:ActiveMQServerControlReturns the size of the cache for pre-creating message IDs..- Specified by:
getIDCacheSizein interfaceActiveMQServerControl- Returns:
- the size of the cache for pre-creating message IDs.
-
getLargeMessagesDirectory
Description copied from interface:ActiveMQServerControlReturns the file system directory used to store large messages..- Specified by:
getLargeMessagesDirectoryin interfaceActiveMQServerControl- Returns:
- the file system directory used to store large messages.
-
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- Returns:
- the management address of this server; clients can send management messages to this address to manage this server
-
getNodeID
Description copied from interface:ActiveMQServerControlReturns the node ID of this server..- Specified by:
getNodeIDin interfaceActiveMQServerControl- Returns:
- the node ID of this server.
-
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- Returns:
- the current activation sequence number of this server; when replicated, peers may coordinate activation with this monotonic sequence
-
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- Returns:
- the management notification address of this server; clients can bind queues to this address to receive management notifications emitted by this server
-
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- Returns:
- the frequency (in milliseconds) to scan messages to detect which messages
-
getMessageExpiryThreadPriority
Deprecated.Description copied from interface:ActiveMQServerControlReturns the priority of the thread used to scan message expiration..- Specified by:
getMessageExpiryThreadPriorityin interfaceActiveMQServerControl- Returns:
- the priority of the thread used to scan message expiration.
-
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- Returns:
- the timeout (in milliseconds) after which transactions is removed
-
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- Returns:
- the frequency (in milliseconds) to scan transactions to detect which transactions
-
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- Returns:
- whether delivery count is persisted before messages are delivered to the consumers.
-
isPersistIDCache
public boolean isPersistIDCache()Description copied from interface:ActiveMQServerControlReturns whether message ID cache is persisted..- Specified by:
isPersistIDCachein interfaceActiveMQServerControl- Returns:
- whether message ID cache is persisted.
-
isWildcardRoutingEnabled
public boolean isWildcardRoutingEnabled()Description copied from interface:ActiveMQServerControlReturns whether wildcard routing is supported by this server..- Specified by:
isWildcardRoutingEnabledin interfaceActiveMQServerControl- Returns:
- whether wildcard routing is supported by this server.
-
fillMBeanOperationInfo
- Specified by:
fillMBeanOperationInfoin classAbstractControl
-
fillMBeanAttributeInfo
- Specified by:
fillMBeanAttributeInfoin classAbstractControl
-
onNotification
- 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 or the ActiveMQBasicSecurityManager)- Specified by:
addUserin interfaceActiveMQServerControl- Throws:
Exception
-
listUser
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
Description copied from interface:ActiveMQServerControlRemove a user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager).- Specified by:
removeUserin interfaceActiveMQServerControl- Throws:
Exception
-
getStatus
- Specified by:
getStatusin interfaceActiveMQServerControl
-
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
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
- Specified by:
reloadConfigurationFilein interfaceActiveMQServerControl- Throws:
Exception
-
replay
Description copied from interface:ActiveMQServerControlReplays messages from all files in the retention folder that match an address and filter.- Specified by:
replayin interfaceActiveMQServerControl- Throws:
Exception
-
replay
public void replay(String startScan, String endScan, String address, String target, String filter) throws Exception Description copied from interface:ActiveMQServerControlReplays messages from a configurable subset of the files in the retention folder that match an address and filter.- Specified by:
replayin interfaceActiveMQServerControl- Throws:
Exception
-
stopEmbeddedWebServer
- Specified by:
stopEmbeddedWebServerin interfaceActiveMQServerControl- Throws:
Exception
-
startEmbeddedWebServer
- Specified by:
startEmbeddedWebServerin interfaceActiveMQServerControl- Throws:
Exception
-
restartEmbeddedWebServer
- Specified by:
restartEmbeddedWebServerin interfaceActiveMQServerControl- Throws:
Exception
-
restartEmbeddedWebServer
- Specified by:
restartEmbeddedWebServerin interfaceActiveMQServerControl- Throws:
Exception
-
isEmbeddedWebServerStarted
public boolean isEmbeddedWebServerStarted()- Specified by:
isEmbeddedWebServerStartedin interfaceActiveMQServerControl
-
rebuildPageCounters
- Specified by:
rebuildPageCountersin interfaceActiveMQServerControl- Throws:
Exception
-
clearAuthenticationCache
public void clearAuthenticationCache()- Specified by:
clearAuthenticationCachein interfaceActiveMQServerControl
-
clearAuthorizationCache
public void clearAuthorizationCache()- Specified by:
clearAuthorizationCachein interfaceActiveMQServerControl
-
getAuthenticationSuccessCount
public long getAuthenticationSuccessCount()- Specified by:
getAuthenticationSuccessCountin interfaceActiveMQServerControl
-
getAuthenticationFailureCount
public long getAuthenticationFailureCount()- Specified by:
getAuthenticationFailureCountin interfaceActiveMQServerControl
-
getAuthorizationSuccessCount
public long getAuthorizationSuccessCount()- Specified by:
getAuthorizationSuccessCountin interfaceActiveMQServerControl
-
getAuthorizationFailureCount
public long getAuthorizationFailureCount()- Specified by:
getAuthorizationFailureCountin interfaceActiveMQServerControl
-
getPendingMirrorAcks
public int getPendingMirrorAcks()- Specified by:
getPendingMirrorAcksin interfaceActiveMQServerControl
-
exportConfigAsProperties
- Specified by:
exportConfigAsPropertiesin interfaceActiveMQServerControl- Throws:
Exception
-
getServer
-