List of HornetQ management operations

In previous post I have written tutorial how to invoke management operation on HornetQ server via JMS queue. But what operations are available?

Managed resources:

First of all, to invoke operation, you have to specify managed resource name, which start from prefix defined in org.hornetq.api.core.management.ResourceNames.

If your resource has one of the prefix defined below, there is a big chance that it can be managed via management queue:

 List of management operations for Queue:

Managment operations are the methods that are defined in org.hornetq.api.core.management.QueueControl interface:
http://grepcode.com/file/repo1.maven.org/maven2/org.hornetq/hornetq-core-client/2.3.15.Final/org/hornetq/api/core/management/QueueControl.java

e.g. to move all messages to DLQ you should invoke

 

 List of management operations for HornetQServer:

Managment operations are the methods that are defined in org.hornetq.api.core.management.HornetQServerControl interface:
http://grepcode.com/file/repo1.maven.org/maven2/org.hornetq/hornetq-core-client/2.3.15.Final/org/hornetq/api/core/management/HornetQServerControl.java

 List of management operations for HornetQ cluster:

Managment operations are the methods that are defined in org.hornetq.api.core.management.ClusterConnectionControlinterface:
http://grepcode.com/file/repo1.maven.org/maven2/org.hornetq/hornetq-core-client/2.3.15.Final/org/hornetq/api/core/management/ClusterConnectionControl.java

 

Others management operations are also available, just check content of package org.hornetq.api.core.management.

Pay special attention on parameters of the operation, as they must always match perfectly! If operations requires java.lang.String parameter and you dont’t provide it, operation will not be found.

Trackbacks/Pingbacks

  1. jeefix » Managing HornetQ queues via JMS API

Leave a Reply


six × = 24