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  java.lang.String getDisplayString(java.lang.Object obj)
           
protected  java.lang.Object transformElement(java.lang.Object object)
          Transform the given object to a Map object
protected  java.util.Map transformToMap(ActiveMQBytesMessage msg)
          Transform an ActiveMQBytesMessage to a Map
protected  java.util.Map transformToMap(ActiveMQMapMessage msg)
          Transform an ActiveMQMapMessage to a Map
protected  java.util.Map<java.lang.String,java.lang.String> transformToMap(ActiveMQMessage msg)
          Transform an ActiveMQMessage to a Map
protected  java.util.Map transformToMap(ActiveMQObjectMessage msg)
          Transform an ActiveMQMessage to a Map
protected  java.util.Map transformToMap(ActiveMQStreamMessage msg)
          Transform an ActiveMQStreamMessage to a Map
protected  java.util.Map transformToMap(ActiveMQTextMessage msg)
          Transform an ActiveMQTextMessage to a Map
protected  java.util.Map transformToMap(javax.management.AttributeList list)
          Transform an Attribute List format of an mbean to a Map
protected  java.util.Map transformToMap(javax.management.openmbean.CompositeDataSupport data)
          Transform an openMBean composite data to a Map
protected  java.util.Map transformToMap(javax.management.ObjectInstance obj)
          Transform an ObjectInstance mbean to a Map
protected  java.util.Map transformToMap(javax.management.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 java.lang.Object transformElement(java.lang.Object object)
                                     throws java.lang.Exception
Transform the given object to a Map object

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

transformToMap

protected java.util.Map transformToMap(javax.management.ObjectInstance obj)
Transform an ObjectInstance mbean to a Map

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

transformToMap

protected java.util.Map transformToMap(javax.management.ObjectName objname)
Transform an ObjectName mbean to a Map

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

transformToMap

protected java.util.Map transformToMap(javax.management.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 java.util.Map transformToMap(ActiveMQTextMessage msg)
                                throws javax.jms.JMSException
Transform an ActiveMQTextMessage to a Map

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

transformToMap

protected java.util.Map transformToMap(ActiveMQBytesMessage msg)
                                throws javax.jms.JMSException
Transform an ActiveMQBytesMessage to a Map

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

transformToMap

protected java.util.Map transformToMap(ActiveMQObjectMessage msg)
                                throws javax.jms.JMSException
Transform an ActiveMQMessage to a Map

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

transformToMap

protected java.util.Map transformToMap(ActiveMQMapMessage msg)
                                throws javax.jms.JMSException
Transform an ActiveMQMapMessage to a Map

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

transformToMap

protected java.util.Map transformToMap(ActiveMQStreamMessage msg)
                                throws javax.jms.JMSException
Transform an ActiveMQStreamMessage to a Map

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

transformToMap

protected java.util.Map<java.lang.String,java.lang.String> transformToMap(ActiveMQMessage msg)
                                                                   throws javax.jms.JMSException
Transform an ActiveMQMessage to a Map

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

transformToMap

protected java.util.Map transformToMap(javax.management.openmbean.CompositeDataSupport data)
Transform an openMBean composite data to a Map

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

getDisplayString

protected java.lang.String getDisplayString(java.lang.Object obj)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.