Package org.apache.activemq.broker.jmx
Class DestinationsViewFilter
java.lang.Object
org.apache.activemq.broker.jmx.DestinationsViewFilter
- All Implemented Interfaces:
Serializable
Defines a query API for destinations MBeans
Typical usage
return DestinationsViewFilter.create(filter)
.setDestinations(broker.getQueueViews())
.filter(page, pageSize);
where 'filter' is JSON representation of the query, like
{name: '77', filter:'nonEmpty', sortColumn:'queueSize', sortOrder:'desc'}
This returns a JSON map, containing filtered map of MBeans in the "data" field and total number of destinations that match criteria in the "count" field.
The result will be properly paged, according to 'page' and 'pageSize' parameters.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DestinationsViewFilterCreates an object from the JSON stringgetName()setDestinations(Map<ObjectName, DestinationView> destinations) Destination MBeans to be queriedvoidvoidvoidsetSortColumn(String sortColumn) voidsetSortOrder(String sortOrder)
-
Constructor Details
-
DestinationsViewFilter
public DestinationsViewFilter()
-
-
Method Details
-
create
Creates an object from the JSON string- Throws:
IOException
-
setDestinations
Destination MBeans to be queried -
getDestinations
-
getName
-
setName
-
getFilter
-
setFilter
-
getSortOrder
-
setSortOrder
-
getSortColumn
-
setSortColumn
-