org.apache.activemq.console.filter
Class MapTransformFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.ResultTransformFilter
      extended by org.apache.activemq.console.filter.MapTransformFilter
All Implemented Interfaces:
QueryFilter

public class MapTransformFilter
extends ResultTransformFilter


Field Summary
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
MapTransformFilter(QueryFilter next)
          Creates a Map transform filter that is able to transform a variety of objects to a properties map object
 
Method Summary
protected  String getDisplayString(Object obj)
           
protected  Object transformElement(Object object)
          Transform the given object to a Map object
protected  Map transformToMap(ActiveMQBytesMessage msg)
          Transform an ActiveMQBytesMessage to a Map
protected  Map transformToMap(ActiveMQMapMessage msg)
          Transform an ActiveMQMapMessage to a Map
protected  Map<String,String> transformToMap(ActiveMQMessage msg)
          Transform an ActiveMQMessage to a Map
protected  Map transformToMap(ActiveMQObjectMessage msg)
          Transform an ActiveMQMessage to a Map
protected  Map transformToMap(ActiveMQStreamMessage msg)
          Transform an ActiveMQStreamMessage to a Map
protected  Map transformToMap(ActiveMQTextMessage msg)
          Transform an ActiveMQTextMessage to a Map
protected  Map transformToMap(AttributeList list)
          Transform an Attribute List format of an mbean to a Map
protected  Map transformToMap(CompositeDataSupport data)
          Transform an openMBean composite data to a Map
protected  Map transformToMap(ObjectInstance obj)
          Transform an ObjectInstance mbean to a Map
protected  Map transformToMap(ObjectName objname)
          Transform an ObjectName mbean to a Map
 
Methods inherited from class org.apache.activemq.console.filter.ResultTransformFilter
query, query, transformList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTransformFilter

public MapTransformFilter(QueryFilter next)
Creates a Map transform filter that is able to transform a variety of objects to a properties map object

Parameters:
next - - the next query filter
Method Detail

transformElement

protected Object transformElement(Object object)
                           throws Exception
Transform the given object to a Map object

Specified by:
transformElement in class ResultTransformFilter
Parameters:
object - - object to transform
Returns:
map object
Throws:
Exception

transformToMap

protected Map transformToMap(ObjectInstance obj)
Transform an ObjectInstance mbean to a Map

Parameters:
obj - - ObjectInstance format of an mbean
Returns:
map object

transformToMap

protected Map transformToMap(ObjectName objname)
Transform an ObjectName mbean to a Map

Parameters:
objname - - ObjectName format of an mbean
Returns:
map object

transformToMap

protected Map transformToMap(AttributeList list)
Transform an Attribute List format of an mbean to a Map

Parameters:
list - - AttributeList format of an mbean
Returns:
map object

transformToMap

protected Map transformToMap(ActiveMQTextMessage msg)
                      throws JMSException
Transform an ActiveMQTextMessage to a Map

Parameters:
msg - - text message to trasnform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map transformToMap(ActiveMQBytesMessage msg)
                      throws JMSException
Transform an ActiveMQBytesMessage to a Map

Parameters:
msg - - bytes message to transform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map transformToMap(ActiveMQObjectMessage msg)
                      throws JMSException
Transform an ActiveMQMessage to a Map

Parameters:
msg - - object message to transform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map transformToMap(ActiveMQMapMessage msg)
                      throws JMSException
Transform an ActiveMQMapMessage to a Map

Parameters:
msg - - map message to transform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map transformToMap(ActiveMQStreamMessage msg)
                      throws JMSException
Transform an ActiveMQStreamMessage to a Map

Parameters:
msg - - stream message to transform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map<String,String> transformToMap(ActiveMQMessage msg)
                                     throws JMSException
Transform an ActiveMQMessage to a Map

Parameters:
msg - - message to transform
Returns:
map object
Throws:
JMSException

transformToMap

protected Map transformToMap(CompositeDataSupport data)
Transform an openMBean composite data to a Map

Parameters:
data - - composite data to transform
Returns:
map object

getDisplayString

protected String getDisplayString(Object obj)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.