HP Integrity NonStop H-Series User Manual
Page 33

Table 2 Management operations (continued)
NSMQ Support
Description
Operations
NSMQ
Management
Object
(Mbean)
Yes
Adds a topic destination to the
broker.
addTopic(String name)
Yes
Adds a queue destination to the
broker.
addQueue(String name)
Yes
Removes a topic destination from
the broker.
removeTopic(String name)
Yes
Removes a queue destination from
the broker.
removeQueue(String name)
No
Creates a new durable topic
subscriber.
createDurableSubscriber(String
clientID,String subscriberName,String
topicname,String selector)
No
Destroys a durable subscriber.
destroyDurableSubscriber(String clientId,
String subscriberName)
Yes
Reloads log4j.properties from
the classpath.
reloadLog4jProperties()
Yes
Starts the broker.
start()
Yes
Resets the statistics.
resetStatistics()
Connection
Yes
Starts the specific connection.
start()
Yes
Stops the specific connection.
stop()
Yes
Displays the number of clients
connected to broker through this
connection.
connectionCount()
Connector
Yes
Enables statistics gathering.
enableStatistics()
Yes
Resets the statistics.
resetStatistics()
Yes
Disables statistics gathering.
disableStatistics()
Yes
Starts the specific connector.
start()
Yes
Stops the specific connector.
stop()
Yes
Fetches the message with specified
messageId.
getMessage(String messageId)
Queue
Yes
Removes all the messages from the
queue.
purge()
Yes
Removes a message from the
destination by JMS message ID. If
removeMessage(String messageId)
the message is dispatched, it cannot
be deleted and false is returned.
Yes
Removes up to a specified number
of messages from the destination
removeMatchingMessages(String selector,
maximumMessages)
based on an SQL-92 selection on
the message headers or XPATH on
the body.
Yes
Removes messages from the
destination based on an SQL-92
removeMatchingMessages(String selector)
selection on the message headers
or XPATH on the body.
Monitoring activities
33