Interface ActiveMQServerControl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddAddressSettings(String address, String addressSettingsAsJson) Adds address-settings for matching addresses.voidaddAddressSettings(String addressMatch, 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, for removal: This API element is subject to removal in a future version.voidaddAddressSettings(String addressMatch, 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, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses) Deprecated, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.voidaddAddressSettings(String addressMatch, 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, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.voidaddAddressSettings(String addressMatch, 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, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.voidaddAddressSettings(String addressMatch, String DLA, String expiryAddress, long expiryDelay, boolean lastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageCacheMaxSize, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.voidaddConnector(String name, String url) voidaddSecuritySettings(String addressMatch, String securitySettingsAsJson) Add security-settings for matching addresses.voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles) Deprecated, for removal: This API element is subject to removal in a future version.voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles) Deprecated, for removal: This API element is subject to removal in a future version.voidaddSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles, String createAddressRoles, String deleteAddressRoles) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.voidAdd a user (only applicable when using the JAAS PropertiesLoginModule or the ActiveMQBasicSecurityManager)voidvoidbooleancloseConnectionsForAddress(String ipAddress) Closes all the connections of clients connected to this server which matches the specified IP address.booleancloseConnectionsForUser(String address) 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 bridgeConfiguration) 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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)voidvoidcreateDivert(String divertConfiguration) Adds a divert.voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String transformerPropertiesAsJSON, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)voidcreateDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)createQueue(String queueConfiguration) Create a queue.createQueue(String queueConfiguration, boolean ignoreIfExists) Create a queue.voidcreateQueue(String address, String name) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.voidcreateQueue(String address, String name, boolean durable) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.voidcreateQueue(String address, String name, boolean durable, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.voidcreateQueue(String address, String name, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.voidcreateQueue(String address, String name, String filter, boolean durable) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.voidcreateQueue(String address, String name, String filter, boolean durable, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) Deprecated.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) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.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) Deprecated.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) Deprecated.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) Deprecated.voiddeleteAddress(String name) voiddeleteAddress(String name, boolean force) voiddeployQueue(String address, String name, String filter) Deprecated.voiddeployQueue(String address, String name, String filter, 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 autoDeleteAddress) 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.voidvoidbooleanObject[]Returns the acceptors configured for this server..Get the acceptors configured for this server as JSON.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 addressMatch) Get address-settings for matching address, e.g.: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..Get the connectors configured for this server as JSON.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..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, for removal: This API element is subject to removal in a future version.This config parameter is no longer valid.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) Retrieves roles associated with a specific address match as JSON.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 to this server as JSON.listConsumers(String options, int page, int pageSize) listConsumersAsJSON(String connectionID) Lists all the consumers that belong to the connection specified by the connectionID.default String[]Jon plugin doesn't recognize an Operation whose name is in form getXXXX(), so add this one.String[]List transactions which have been heuristically committed.String[]List transactions which have been heuristically rolled back.Deprecated, for removal: This API element is subject to removal in a future version.UselistPreparedTransactionDetailsAsJSON()instead.List all the prepared transaction as JSON.String[]List all the prepared transaction, sorted by date, oldest first.listProducers(String options, int page, int pageSize) List details as JSON about the producers sending messages to this broker.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).voidvoidvoidremoveAddressSettings(String addressMatch) voidremoveConnector(String name) 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.voidvoidsetFailoverOnServerShutdown(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) Updates a divert.voidupdateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) Deprecated, for removal: This API element is subject to removal in a future version.UsecreateDivert(String)instead.updateQueue(String queueConfiguration) 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) Deprecated.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) Deprecated.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) Deprecated.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) Deprecated.
-
Field Details
-
CONNECTION_COUNT_DESCRIPTION
- See Also:
-
TOTAL_CONNECTION_COUNT_DESCRIPTION
- See Also:
-
SESSION_COUNT_DESCRIPTION
- See Also:
-
TOTAL_SESSION_COUNT_DESCRIPTION
- See Also:
-
ADDRESS_MEMORY_USAGE_DESCRIPTION
- See Also:
-
ADDRESS_MEMORY_USAGE_PERCENTAGE_DESCRIPTION
- See Also:
-
DISK_STORE_USAGE_DESCRIPTION
- See Also:
-
REPLICA_SYNC_DESCRIPTION
- See Also:
-
IS_ACTIVE_DESCRIPTION
- See Also:
-
AUTHENTICATION_SUCCESS_COUNT
- See Also:
-
AUTHENTICATION_FAILURE_COUNT
- See Also:
-
AUTHORIZATION_SUCCESS_COUNT
- See Also:
-
AUTHORIZATION_FAILURE_COUNT
- See Also:
-
-
Method Details
-
getName
-
getCurrentTimeMillis
long getCurrentTimeMillis() -
getVersion
-
isActive
boolean isActive() -
getConnectionCount
int getConnectionCount()Returns the number of clients connected to this server..- Returns:
- the number of clients connected to this server.
-
getTotalConnectionCount
long getTotalConnectionCount()Returns the total number of clients which have connected to this server since it was started..- Returns:
- the total number of clients which have connected to this server since it was started.
-
getSessionCount
int getSessionCount()Returns the number of sessions on this server. -
getTotalSessionCount
long getTotalSessionCount()Returns the total number of sessions created on this server since it was started. -
getTotalMessageCount
long getTotalMessageCount()Returns the number of messages in all queues currently on the server..- Returns:
- the number of messages in all queues currently on the server.
-
getTotalMessagesAdded
long getTotalMessagesAdded()Returns the number of messages sent to all queues currently on the server since they were created..- Returns:
- the number of messages sent to all queues currently on the server since they were created.
-
getTotalMessagesAcknowledged
long getTotalMessagesAcknowledged()Returns the number of messages acknowledged from all the queues currently on this server since they were created..- Returns:
- the number of messages acknowledged from all the queues currently on this server since they were created.
-
getTotalConsumerCount
long getTotalConsumerCount()Returns the number of consumers on all the queues currently on this server..- Returns:
- the number of consumers on all the queues currently on this server.
-
isStarted
boolean isStarted()Return whether this server is started. -
getIncomingInterceptorClassNames
String[] getIncomingInterceptorClassNames()Returns the list of interceptors used by this server for incoming messages..- Returns:
- the list of interceptors used by this server for incoming messages.
- See Also:
-
getOutgoingInterceptorClassNames
String[] getOutgoingInterceptorClassNames()Returns the list of interceptors used by this server for outgoing messages..- Returns:
- the list of interceptors used by this server for outgoing messages.
- See Also:
-
getBrokerPluginClassNames
String[] getBrokerPluginClassNames() -
isClustered
boolean isClustered()Returns whether this server is clustered..- Returns:
- whether this server is clustered.
-
getScheduledThreadPoolMaxSize
int getScheduledThreadPoolMaxSize()Returns the maximum number of threads in the scheduled thread pool..- Returns:
- the maximum number of threads in the scheduled thread pool.
-
getThreadPoolMaxSize
int getThreadPoolMaxSize()Returns the maximum number of threads in the thread pool..- Returns:
- the maximum number of threads in the thread pool.
-
getSecurityInvalidationInterval
long getSecurityInvalidationInterval()Returns the interval time (in milliseconds) to invalidate security credentials..- Returns:
- the interval time (in milliseconds) to invalidate security credentials.
-
isSecurityEnabled
boolean isSecurityEnabled()Returns whether security is enabled for this server..- Returns:
- whether security is enabled for this server.
-
getBindingsDirectory
String getBindingsDirectory()Returns the file system directory used to store bindings..- Returns:
- the file system directory used to store bindings.
-
getJournalDirectory
String getJournalDirectory()Returns the file system directory used to store journal log..- Returns:
- the file system directory used to store journal log.
-
getJournalType
String getJournalType()Returns the type of journal used by this server (eitherNIOorASYNCIO)..- Returns:
- the type of journal used by this server (either
NIOorASYNCIO).
-
isJournalSyncTransactional
boolean isJournalSyncTransactional()Returns whether the journal is synchronized when receiving transactional data..- Returns:
- whether the journal is synchronized when receiving transactional data.
-
isJournalSyncNonTransactional
boolean isJournalSyncNonTransactional()Returns whether the journal is synchronized when receiving non-transactional data..- Returns:
- whether the journal is synchronized when receiving non-transactional data.
-
getJournalFileSize
int getJournalFileSize()Returns the size (in bytes) of each journal files..- Returns:
- the size (in bytes) of each journal files.
-
getJournalMinFiles
int getJournalMinFiles()Returns the number of journal files to pre-create..- Returns:
- the number of journal files to pre-create.
-
getJournalMaxIO
int getJournalMaxIO()Returns the maximum number of write requests that can be in the AIO queue at any given time..- Returns:
- the maximum number of write requests that can be in the AIO queue at any given time.
-
getJournalBufferSize
int getJournalBufferSize()Returns the size of the internal buffer on the journal..- Returns:
- the size of the internal buffer on the journal.
-
getJournalPoolFiles
int getJournalPoolFiles()Number of files that would be acceptable to keep on a pool -
getJournalBufferTimeout
int getJournalBufferTimeout()Returns the timeout (in nanoseconds) used to flush internal buffers on the journal..- Returns:
- the timeout (in nanoseconds) used to flush internal buffers on the journal.
-
setFailoverOnServerShutdown
-
isFailoverOnServerShutdown
boolean isFailoverOnServerShutdown()Returns if clients failover on a server shutdown.- Returns:
- if clients failover on a server shutdown
-
getJournalCompactMinFiles
int getJournalCompactMinFiles()Returns the minimal number of journal files before compacting..- Returns:
- the minimal number of journal files before compacting.
-
getJournalCompactPercentage
int getJournalCompactPercentage()Return the percentage of live data before compacting the journal. -
isPersistenceEnabled
boolean isPersistenceEnabled()Returns whether this server is using persistence and store data..- Returns:
- whether this server is using persistence and store data.
-
isCreateBindingsDir
boolean isCreateBindingsDir()Returns whether the bindings directory is created on this server startup..- Returns:
- whether the bindings directory is created on this server startup.
-
isCreateJournalDir
boolean isCreateJournalDir()Returns whether the journal directory is created on this server startup..- Returns:
- whether the journal directory is created on this server startup.
-
isMessageCounterEnabled
boolean isMessageCounterEnabled()Returns whether message counter is enabled for this server..- Returns:
- whether message counter is enabled for this server.
-
getMessageCounterMaxDayCount
int getMessageCounterMaxDayCount()Returns the maximum number of days kept in memory for message counter..- Returns:
- the maximum number of days kept in memory for message counter.
-
setMessageCounterMaxDayCount
-
getMessageCounterSamplePeriod
long getMessageCounterSamplePeriod()Returns the sample period (in milliseconds) to take message counter snapshot..- Returns:
- the sample period (in milliseconds) to take message counter snapshot.
-
setMessageCounterSamplePeriod
-
isBackup
boolean isBackup()Returnstrueif this server is a backup,falseif it is a primary server or if it is a backup server and has been activated.- Returns:
trueif this server is a backup,falseif it is a primary server or if it is a backup server and has been activated
-
getPagingDirectory
String getPagingDirectory()Returns the file system directory used to store paging files..- Returns:
- the file system directory used to store paging files.
-
isPersistDeliveryCountBeforeDelivery
boolean isPersistDeliveryCountBeforeDelivery()Returns whether delivery count is persisted before messages are delivered to the consumers..- Returns:
- whether delivery count is persisted before messages are delivered to the consumers.
-
getConnectionTTLOverride
long getConnectionTTLOverride()Returns the connection time to live; this value overrides the connection time to live sent by the client.- Returns:
- the connection time to live; this value overrides the connection time to live sent by the client
-
getManagementAddress
String getManagementAddress()Returns the management address of this server; clients can send management messages to this address to manage this server.- Returns:
- the management address of this server; clients can send management messages to this address to manage this server
-
getNodeID
-
getActivationSequence
long getActivationSequence()Returns the current activation sequence number of this server; when replicated, peers may coordinate activation with this monotonic sequence.- Returns:
- the current activation sequence number of this server; when replicated, peers may coordinate activation with this monotonic sequence
-
getManagementNotificationAddress
String getManagementNotificationAddress()Returns the management notification address of this server; clients can bind queues to this address to receive management notifications emitted by 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
-
getIDCacheSize
int getIDCacheSize()Returns the size of the cache for pre-creating message IDs..- Returns:
- the size of the cache for pre-creating message IDs.
-
isPersistIDCache
boolean isPersistIDCache()Returns whether message ID cache is persisted..- Returns:
- whether message ID cache is persisted.
-
getLargeMessagesDirectory
String getLargeMessagesDirectory()Returns the file system directory used to store large messages..- Returns:
- the file system directory used to store large messages.
-
isWildcardRoutingEnabled
boolean isWildcardRoutingEnabled()Returns whether wildcard routing is supported by this server..- Returns:
- whether wildcard routing is supported by this server.
-
getTransactionTimeout
long getTransactionTimeout()Returns the timeout (in milliseconds) after which transactions is removed. from the resource manager after it was created.- Returns:
- the timeout (in milliseconds) after which transactions is removed
-
getTransactionTimeoutScanPeriod
long getTransactionTimeoutScanPeriod()Returns the frequency (in milliseconds) to scan transactions to detect which transactions. have timed out.- Returns:
- the frequency (in milliseconds) to scan transactions to detect which transactions
-
getMessageExpiryScanPeriod
long getMessageExpiryScanPeriod()Returns the frequency (in milliseconds) to scan messages to detect which messages. have expired.- Returns:
- the frequency (in milliseconds) to scan messages to detect which messages
-
getMessageExpiryThreadPriority
Deprecated, for removal: This API element is subject to removal in a future version.This config parameter is no longer valid. The code uses a ScheduledExecutorService and a thread pool rather than dedicating a thread 100% to the expiry scanner. The pool's size can be controlled viascheduled-thread-pool-max-size.Returns the priority of the thread used to scan message expiration..- Returns:
- the priority of the thread used to scan message expiration.
-
isAsyncConnectionExecutionEnabled
boolean isAsyncConnectionExecutionEnabled()Returns whether code coming from connection is executed asynchronously or not..- Returns:
- whether code coming from connection is executed asynchronously or not.
-
getConnectors
-
getConnectorsAsJSON
Get the connectors configured for this server as JSON. The JSON consists of an array of objects containing the attributes of the connector, e.g.:[ { "name": "invm", "factoryClassName": "org.apache.activemq.artemis.core.remoting.impl.invm.InVMConnectorFactory", "params": { "serverId": 0 }, "extraProps": {} }, { "name": "artemis", "factoryClassName": "org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory", "params": { "port": "61616", "host": "localhost" }, "extraProps": {} } ]- Returns:
- the connectors configured for this server as JSON
- Throws:
Exception
-
getAcceptors
-
getAcceptorsAsJSON
Get the acceptors configured for this server as JSON. The JSON consists of an array of objects containing the attributes of the acceptor, e.g.:[ { "name": "artemis", "factoryClassName": "org.apache.activemq.artemis.core.remoting.impl.netty.NettyAcceptorFactory", "params": { "scheme": "tcp", "port": "61616", "host": "0.0.0.0", "protocols": "CORE,AMQP" }, "extraProps": {} } { "name": "invm", "factoryClassName": "org.apache.activemq.artemis.core.remoting.impl.invm.InVMAcceptorFactory", "params": { "serverId": 0 }, "extraProps": {} } ]- Returns:
- the acceptors configured for this server as JSON
- Throws:
Exception
-
getAddressCount
int getAddressCount()Returns the number of addresses created on this server..- Returns:
- the number of addresses created on this server.
-
getAddressNames
String[] getAddressNames()Returns the names of the addresses created on this server..- Returns:
- the names of the addresses created on this server.
-
getQueueCount
int getQueueCount()Returns the number of queues created on this server..- Returns:
- the number of queues created on this server.
-
getQueueNames
String[] getQueueNames()Returns the names of the queues created on this server..- Returns:
- the names of the queues created on this server.
-
getUptime
-
getUptimeMillis
long getUptimeMillis()Returns the uptime of this server..- Returns:
- the uptime of this server.
-
isReplicaSync
boolean isReplicaSync()Returns whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server.- Returns:
- whether the initial replication synchronization process with the backup server is complete; applicable for either the primary or backup server
-
getDiskScanPeriod
int getDiskScanPeriod()Returns how often the server checks for disk space usage..- Returns:
- how often the server checks for disk space usage.
-
getMaxDiskUsage
int getMaxDiskUsage()Returns the disk use max limit..- Returns:
- the disk use max limit.
-
getGlobalMaxSize
long getGlobalMaxSize()Returns the global max bytes limit for in-memory messages..- Returns:
- the global max bytes limit for in-memory messages.
-
getAddressMemoryUsage
long getAddressMemoryUsage()Returns the memory used by all the addresses on broker for in-memory messages.- Returns:
- the memory used by all the addresses on broker for in-memory messages
-
getDiskStoreUsage
double getDiskStoreUsage()Returns the percentage of total disk store use.- Returns:
- the percentage of total disk store use
-
getAddressMemoryUsagePercentage
int getAddressMemoryUsagePercentage()Returns the memory used by all the addresses on broker as a percentage of the global-max-size.- Returns:
- the memory used by all the addresses on broker as a percentage of the global-max-size
-
getHAPolicy
String getHAPolicy() -
getAuthenticationCacheSize
long getAuthenticationCacheSize()Returns the runtime size of the authentication cache.- Returns:
- the runtime size of the authentication cache
-
getAuthorizationCacheSize
long getAuthorizationCacheSize()Returns the runtime size of the authorization cache.- Returns:
- the runtime size of the authorization cache
-
getStatus
String getStatus() -
freezeReplication
-
createAddress
-
updateAddress
-
deleteAddress
-
deleteAddress
-
createQueue
Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a durable queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- Parameters:
address- address to bind the queue toname- name of the queue- Throws:
Exception
-
createQueue
@Deprecated(forRemoval=true) void createQueue(String address, String name, String routingType) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a durable queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated(forRemoval=true) void createQueue(String address, String name, boolean durable) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- Parameters:
address- address to bind the queue toname- name of the queuedurable- whether the queue is durable- Throws:
Exception
-
createQueue
@Deprecated(forRemoval=true) void createQueue(String address, String name, boolean durable, String routingType) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated(forRemoval=true) void createQueue(String address, String name, String filter, boolean durable) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- Parameters:
address- address to bind the queue toname- name of the queuefilter- of the queuedurable- whether the queue is durable- Throws:
Exception
-
createQueue
@Deprecated(forRemoval=true) void createQueue(String address, String name, String filter, boolean durable, String routingType) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- Parameters:
address- address to bind the queue toname- name of the queuefilter- of the queuedurable- whether the queue is durableroutingType- The routing type used for this address, MULTICAST or ANYCAST- Throws:
Exception
-
createQueue
@Deprecated(forRemoval=true) 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 Deprecated, for removal: This API element is subject to removal in a future version.UsecreateQueue(String)instead.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated 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 Deprecated.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated 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 Deprecated.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated 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 Deprecated.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
@Deprecated String createQueue(String address, String routingType, String name, String filterStr, boolean durable, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreateAddress) throws Exception Deprecated.Create a queue.If
addressisnullit will be defaulted toname.This method throws a
ActiveMQQueueExistsException) exception if the queue already exits.- 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
Create a queue.This method throws a
ActiveMQQueueExistsException) exception if the queue already exists.- Parameters:
queueConfiguration- the configuration of the queue in JSON format- Returns:
- the configuration of the created queue in JSON format
- Throws:
Exception
-
createQueue
Create a queue.This method throws a
ActiveMQQueueExistsException) exception if the queue already exists andignoreIfExistsisfalse.- Parameters:
queueConfiguration- 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
-
updateQueue
@Deprecated String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers) throws Exception Deprecated.Update a queue.- 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 String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception Deprecated.Update a queue.- 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
@Deprecated String updateQueue(String name, String routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, String user) throws Exception Deprecated.Update a queue- 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
@Deprecated 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 Deprecated.Update a queue- 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
@Deprecated 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 Deprecated.Update a queue- 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
@Deprecated 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 Deprecated.Update a queue- 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
-
deployQueue
Deprecated.Deploy 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.
- Parameters:
address- address to bind the queue toname- name of the queuefilter- of the queue- Throws:
Exception
-
deployQueue
@Deprecated void deployQueue(String address, String name, String filter, boolean durable) throws Exception Deprecated.Deploy 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.
- Parameters:
address- address to bind the queue toname- name of the queuefilter- of the queuedurable- whether the queue is durable- Throws:
Exception
-
destroyQueue
-
destroyQueue
-
destroyQueue
-
enableMessageCounters
-
disableMessageCounters
-
resetAllMessageCounters
-
resetAllMessageCounterHistories
-
listPreparedTransactions
-
listPreparedTransactionDetailsAsJSON
List all the prepared transaction as JSON. The JSON consists of an array of objects containing the details of each transaction, including transaction branch details, and an array listing the messages involved, e.g.:[ { "creation_time": "5/22/79, 12:00:00 AM", "xid_as_base64": "eGExODAyZDNlOGItZDlmYy0xMWYwLTliOWUtM2NlMWExZDEyOTM5AQAAAA==", "xid_format_id": 1, "xid_global_txid": "802d3e8b-d9fc-11f0-9b9e-3ce1a1d12939", "xid_branch_qual": "xa1", "tx_related_messages": [ { "message_operation_type": "(+) send", "message_type": "TextMessage", "message_properties": { "durable": true, "address": "AddressA", "myPropertyKey": "myPropertyValue", "messageID": 123, "expiration": 0, "type": 3, "priority": 4, "timestamp": 296197200 } }, { "message_operation_type": "(+) send", "message_type": "TextMessage", "message_properties": { "durable": true, "address": "AddressB", "messageID": 456, "expiration": 0, "type": 3, "priority": 4, "timestamp": 296197200 }, }, { "message_operation_type": "(-) receive", "message_type": "TextMessage", "message_properties": { "durable": true, "address": "AddressC", "messageID": 789, "expiration": 0, "type": 3, "priority": 4, "timestamp": 296197200 } } ] } ]Transactions are sorted by date, oldest first.- Throws:
Exception
-
listPreparedTransactionDetailsAsHTML
Deprecated, for removal: This API element is subject to removal in a future version.UselistPreparedTransactionDetailsAsJSON()instead.List all the prepared transaction, sorted by date, oldest first, with details, in HTML format- Throws:
Exception
-
listHeuristicCommittedTransactions
-
listHeuristicRolledBackTransactions
-
commitPreparedTransaction
Heuristically commits a prepared transaction.- Parameters:
transactionAsBase64- base 64 representation of a prepare transaction- Returns:
trueif the transaction was successfully committed,falseelse- Throws:
Exception- See Also:
-
rollbackPreparedTransaction
Heuristically rolls back a prepared transaction.- Parameters:
transactionAsBase64- base 64 representation of a prepare transaction- Returns:
trueif the transaction was successfully rolled back,falseelse- Throws:
Exception- See Also:
-
listRemoteAddresses
-
listRemoteAddresses
-
closeConnectionsForAddress
-
closeConsumerConnectionsForAddress
-
closeConnectionsForUser
-
closeConnectionWithID
-
closeSessionWithID
-
closeSessionWithID
-
closeConsumerWithID
-
listConnectionIDs
-
listProducersInfoAsJSON
List details as JSON about the producers sending messages to this broker. The JSON consists of an array of objects containing details about each producer, e.g.:[ { "id": "1", "name": "artemis:sender:ID:338502e5-da02-11f0-900f-3ce1a1d12939", "connectionID": "33848db2-da02-11f0-900f-3ce1a1d12939", "sessionID": "3384b4c4-da02-11f0-900f-3ce1a1d12939", "creationTime": "1765836343763", "destination": "AddressA", "lastProducedMessageID": null, "msgSent": 8, "msgSizeSent": 607 } ]- Throws:
Exception
-
listConnectionsAsJSON
Lists all the connections to this server as JSON. The JSON consists of an array of objects containing details about each connection, e.g.:[ { "creationTime": 1469240429671, "sessionCount": 1, "implementation": "RemotingConnectionImpl", "connectionID": "1648309901", "clientAddress": "127.0.0.1:57649" } ]- Throws:
Exception
-
listConsumersAsJSON
Lists all the consumers that belong to the connection specified by the connectionID. The returned String is JSON 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" } ]- Throws:
Exception
-
listAllConsumersAsJSON
Lists all the consumers connected to this server. The returned String is JSON 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" } ]- Throws:
Exception
-
listSessionsAsJSON
Lists details about all the sessions for the specified connection ID. The returned String is JSON containing details about each session associated with the specified ID, e.g.:[ { "principal": "myUser", "creationTime": 1469240773157, "consumerCount": 0, "sessionID": "d33d10db-507c-11e6-9e47-e8b1fc439540" } ]- Throws:
Exception
-
listAllSessionsAsJSON
Lists details about all sessions. The returned String is JSON containing details about 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" } ]- Throws:
Exception
-
listSessions
-
addSecuritySettings
@Deprecated(forRemoval=true) void addSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
addSecuritySettings
@Deprecated(forRemoval=true) void addSecuritySettings(String addressMatch, String sendRoles, String consumeRoles, String createDurableQueueRoles, String deleteDurableQueueRoles, String createNonDurableQueueRoles, String deleteNonDurableQueueRoles, String manageRoles, String browseRoles) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
addSecuritySettings
@Deprecated(forRemoval=true) 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 Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
addSecuritySettings
@Deprecated(forRemoval=true) 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 Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
addSecuritySettings
Add security-settings for matching addresses.- Parameters:
addressMatch- The address match pattern to which the security-settings will be applied.securitySettingsAsJson- The security-settings in JSON format. The JSON consists of key/value pairs where the key is a string representing the permission type, and the value is an array of strings containing the names of the roles which will be granted the corresponding permission, e.g.:
These permission types are supported:{ "send": ["role1", "role2"], "consume": ["role3", "role4"], "createDurableQueue": ["role5", "role6"] }- send
- consume
- createDurableQueue
- deleteDurableQueue
- createNonDurableQueue
- deleteNonDurableQueue
- manage
- browse
- createAddress
- deleteAddress
- view
- edit
SecurityFormatter.- Throws:
Exception- If an error occurs while adding the security-settings.
-
removeSecuritySettings
-
getRoles
-
getRolesAsJSON
Retrieves roles associated with a specific address match as JSON. The JSON consists of an array of objects containing the name of the role and a boolean for every permission type indicating whether that role has that permission, e.g.:[ { "name": "myRole", "send": true, "consume": true, "createDurableQueue": false, "deleteDurableQueue": false, "createNonDurableQueue": true, "deleteNonDurableQueue": false, "manage": false, "browse": false, "createAddress": true, "deleteAddress": true, "view": false, "edit": false }, { "name": "myOtherRole", "send": false, "consume": true, "createDurableQueue": false, "deleteDurableQueue": true, "createNonDurableQueue": true, "deleteNonDurableQueue": false, "manage": false, "browse": true, "createAddress": false, "deleteAddress": false, "view": false, "edit": false } ]This JSON can be converted into an array ofRoleInfoobjects usingRoleInfo.from(String).- Parameters:
addressMatch- the address match for which roles are to be retrieved- Returns:
- JSON representing the roles associated with the specified address match
- Throws:
Exception- if an error occurs during the retrieval process
-
addAddressSettings
@Deprecated(forRemoval=true) void addAddressSettings(String addressMatch, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.adds a new address setting for a specific address- Throws:
Exception
-
addAddressSettings
@Deprecated(forRemoval=true) void addAddressSettings(String addressMatch, 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, boolean autoCreateQueues, boolean autoDeleteQueues, boolean autoCreateAddresses, boolean autoDeleteAddresses) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.adds a new address setting for a specific address- Throws:
Exception
-
addAddressSettings
@Deprecated(forRemoval=true) void addAddressSettings(String addressMatch, 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, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.adds a new address setting for a specific address- Throws:
Exception
-
addAddressSettings
@Deprecated(forRemoval=true) void addAddressSettings(String addressMatch, 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, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.adds a new address setting for a specific address- Throws:
Exception
-
addAddressSettings
@Deprecated(forRemoval=true) void addAddressSettings(String addressMatch, String DLA, String expiryAddress, long expiryDelay, boolean lastValueQueue, int maxDeliveryAttempts, long maxSizeBytes, int pageSizeBytes, int pageCacheMaxSize, 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, for removal: This API element is subject to removal in a future version.UseaddAddressSettings(String, String)instead.adds a new address setting for a specific address- Throws:
Exception
-
addAddressSettings
Adds address-settings for matching addresses. The address-settings must be JSON consisting of a simple object of key/value pairs, e.g.:{ "addressFullMessagePolicy": "DROP", "maxSizeBytes": 1024, "prefetchPageMessages": 256, "redeliveryDelay": 60000, "redeliveryMultiplier": 1.0, "deadLetterAddress": "myDeadLetterAddress", "expiryAddress": "myExpiryAddress" }- Parameters:
address- the address match pattern for the addresses to apply settings toaddressSettingsAsJson- the configuration of the address settings as JSON- Returns:
- the effective settings for the input address once the input settings are merged with any existing matches
- Throws:
Exception- if there is an error adding the address settings
-
removeAddressSettings
-
getAddressSettingsAsJSON
Get address-settings for matching address, e.g.:{ "addressFullMessagePolicy": "DROP", "maxSizeBytes": 1024, "prefetchPageMessages": 256, "redeliveryDelay": 60000, "redeliveryMultiplier": 1.0, "deadLetterAddress": "myDeadLetterAddress", "expiryAddress": "myExpiryAddress" }- Returns:
- the address-settings as JSON
- Throws:
Exception
-
getDivertNames
String[] getDivertNames() -
listDivertNames
Jon plugin doesn't recognize an Operation whose name is in form getXXXX(), so add this one. -
createDivert
@Deprecated(forRemoval=true) void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)- Throws:
Exception
-
createDivert
@Deprecated(forRemoval=true) void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String routingType) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)- Throws:
Exception
-
createDivert
@Deprecated(forRemoval=true) void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)- Throws:
Exception
-
createDivert
@Deprecated(forRemoval=true) void createDivert(String name, String routingName, String address, String forwardingAddress, boolean exclusive, String filterString, String transformerClassName, String transformerPropertiesAsJSON, String routingType) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor ofcreateDivert(String)- Throws:
Exception
-
createDivert
Adds a divert. The divert configuration must be JSON consisting of a simple object of key/value pairs, e.g.:{ "name": "myDivert", "address": "myAddress", "forwarding-address": "myForwardingAddress", "exclusive": false, "routing-type": "STRIP" }- Parameters:
divertConfiguration- the configuration of the divert in JSON format- Throws:
Exception
-
updateDivert
@Deprecated(forRemoval=true) void updateDivert(String name, String forwardingAddress, String filterString, String transformerClassName, Map<String, String> transformerProperties, String routingType) throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.UsecreateDivert(String)instead.update a divert- Throws:
Exception
-
updateDivert
Updates a divert. The divert configuration must be JSON consisting of a simple object of key/value pairs. For an example, seecreateDivert(String).- Throws:
Exception
-
destroyDivert
-
getBridgeNames
String[] getBridgeNames() -
createBridge
@Deprecated(forRemoval=true) 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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)- Throws:
Exception
-
createBridge
@Deprecated(forRemoval=true) 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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) throws ExceptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)- Throws:
Exception
-
createBridge
@Deprecated(forRemoval=true) 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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)- Throws:
Exception
-
createBridge
@Deprecated(forRemoval=true) 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 connectorNames, boolean useDiscoveryGroup, boolean ha, String user, String password) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favour ofcreateBridge(String)- Throws:
Exception
-
createBridge
Create a bridge. The bridge configuration must be JSON consisting of a simple object of key/value pairs, e.g.:{ "name": "myBridge", "queue-name": "myQueue", "forwarding-address": "myForwardingAddress", "retry-interval": 2000, "retry-interval-multiplier": 1.0, "reconnect-attempts": -1, "use-duplicate-detection": false, "producer-window-size": -1, "routing-type": "PASS", "static-connectors": [ "myConnector" ] }- Parameters:
bridgeConfiguration- the configuration of the queue in JSON format- Throws:
Exception
-
destroyBridge
-
addConnector
-
removeConnector
-
listBrokerConnections
String listBrokerConnections() -
startBrokerConnection
-
stopBrokerConnection
-
createConnectorService
-
destroyConnectorService
-
getConnectorServices
String[] getConnectorServices() -
forceFailover
-
scaleDown
-
listNetworkTopology
-
getAddressInfo
-
listBindingsForAddress
-
listAddresses
-
listConnections
-
listSessions
-
listConsumers
-
listProducers
-
listAddresses
-
listQueues
-
getQueueNames
-
getClusterConnectionNames
String[] getClusterConnectionNames()Returns the names of the cluster-connections deployed on this server..- Returns:
- the names of the cluster-connections deployed on this server.
-
addUser
-
listUser
-
removeUser
-
resetUser
-
resetUser
-
reloadConfigurationFile
-
replay
-
replay
-
stopEmbeddedWebServer
-
startEmbeddedWebServer
-
restartEmbeddedWebServer
-
restartEmbeddedWebServer
-
isEmbeddedWebServerStarted
boolean isEmbeddedWebServerStarted() -
rebuildPageCounters
-
clearAuthenticationCache
-
clearAuthorizationCache
-
getAuthenticationSuccessCount
long getAuthenticationSuccessCount() -
getAuthenticationFailureCount
long getAuthenticationFailureCount() -
getAuthorizationSuccessCount
long getAuthorizationSuccessCount() -
getAuthorizationFailureCount
long getAuthorizationFailureCount() -
getPendingMirrorAcks
int getPendingMirrorAcks() -
exportConfigAsProperties
-
addAddressSettings(String, String)instead.