net.esper.indicator.pretty
Class CubeTabularDataRenderer

java.lang.Object
  extended by net.esper.indicator.pretty.CubeTabularDataRenderer

public final class CubeTabularDataRenderer
extends Object

Renders a Cube multidimensional table a TabularData from the JMX OpenMbean interface. Cubes can be 1-dimenstion to n-dimensional. This implementation can render cubes up to only 4 dimensions. 4-dimensional cubes are created as multiple TabularData instances for each member in the page dimension. The cell dimension (assumed to be dimension 0) and the row dimension (assumed to be dimension 2) are both placed as rows in a table. The column dimension (dimension 1) is use for filling columns.


Constructor Summary
CubeTabularDataRenderer()
           
 
Method Summary
static Map<String,TabularData> renderCube(Cube cube)
          Render the Cube as a collection of OpenMBean TabularData tables, each table carries a string key that contains the page dimension member, if present, else just the string TABLE_NAME.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeTabularDataRenderer

public CubeTabularDataRenderer()
Method Detail

renderCube

public static Map<String,TabularData> renderCube(Cube cube)
Render the Cube as a collection of OpenMBean TabularData tables, each table carries a string key that contains the page dimension member, if present, else just the string TABLE_NAME.

Parameters:
cube - is the cube to render
Returns:
map of rendered page dimension member as key and TabularData containing table as value

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com