Package org.apache.activemq.broker.jmx
Class DestinationsViewFilter
- java.lang.Object
-
- org.apache.activemq.broker.jmx.DestinationsViewFilter
-
- All Implemented Interfaces:
Serializable
public class DestinationsViewFilter extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DestinationsViewFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DestinationsViewFilter
create(String json)
Creates an object from the JSON stringMap<ObjectName,DestinationView>
getDestinations()
String
getFilter()
String
getName()
String
getSortColumn()
String
getSortOrder()
DestinationsViewFilter
setDestinations(Map<ObjectName,DestinationView> destinations)
Destination MBeans to be queriedvoid
setFilter(String filter)
void
setName(String name)
void
setSortColumn(String sortColumn)
void
setSortOrder(String sortOrder)
-
-
-
Method Detail
-
create
public static DestinationsViewFilter create(String json) throws IOException
Creates an object from the JSON string- Throws:
IOException
-
setDestinations
public DestinationsViewFilter setDestinations(Map<ObjectName,DestinationView> destinations)
Destination MBeans to be queried
-
getDestinations
public Map<ObjectName,DestinationView> getDestinations()
-
getName
public String getName()
-
setName
public void setName(String name)
-
getFilter
public String getFilter()
-
setFilter
public void setFilter(String filter)
-
getSortOrder
public String getSortOrder()
-
setSortOrder
public void setSortOrder(String sortOrder)
-
getSortColumn
public String getSortColumn()
-
setSortColumn
public void setSortColumn(String sortColumn)
-
-