1 | public StatGraphVisualizer() {↵ | | 1 | public StatVisualizer() {↵
|
2 | super();↵ | | 2 | super();↵
|
3 | model = new ObjectTableModel(COLUMNS,↵ | | 3 | model = new ObjectTableModel(COLUMNS, ↵
|
4 | SamplingStatCalculator.class,↵ | | 4 | SamplingStatCalculator.class,↵
|
5 | new Functor[] {↵ | | 5 | new Functor[] { ↵
|
6 | new Functor("getLabel"), //$NON-NLS-1$↵ | | 6 | new Functor("getLabel"), //$NON-NLS-1$↵
|
7 | new Functor("getCount"), //$NON-NLS-1$↵ | | 7 | new Functor("getCount"), //$NON-NLS-1$↵
|
8 | new Functor("getMeanAsNumber"), //$NON-NLS-1$↵ | | 8 | new Functor("getMeanAsNumber"), //$NON-NLS-1$↵
|
9 | new Functor("getMedian"), //$NON-NLS-1$↵ | | 9 | new Functor("getMedian"), //$NON-NLS-1$↵
|
10 | new Functor("getPercentPoint", //$NON-NLS-1$↵ | | 10 | new Functor("getPercentPoint", //$NON-NLS-1$↵
|
11 | new Object[] { new Float(.900) }),↵ | | 11 | new Object[] { new Float(.900) }), ↵
|
12 | new Functor("getMin"), //$NON-NLS-1$↵ | | 12 | new Functor("getMin"), //$NON-NLS-1$↵
|
13 | new Functor("getMax"), //$NON-NLS-1$↵ | | 13 | new Functor("getMax"), //$NON-NLS-1$↵
|
14 | new Functor("getErrorPercentage"), //$NON-NLS-1$↵ | | 14 | new Functor("getErrorPercentage"), //$NON-NLS-1$↵
|
15 | new Functor("getRate"), //$NON-NLS-1$↵ | | 15 | new Functor("getRate"), //$NON-NLS-1$↵
|
16 | new Functor("getKBPerSecond") }, //$NON-NLS-1$↵ | | 16 | new Functor("getKBPerSecond") //$NON-NLS-1$↵
|
17 | ↵ | | 17 | },↵
|
18 | new Functor[] { null, null, null, null, null, null, null, null, null, null }, ↵ | | 18 | new Functor[] { null, null, null, null, null, null, null, null, null, null }, ↵
|
19 | new Class[] { String.class, Long.class, Long.class, Long.class, Long.class, ↵ | | 19 | new Class[] { String.class, Long.class, Long.class, Long.class, Long.class, ↵
|
20 | Long.class,↵ | | 20 | Long.class,↵
|
21 | Long.class, String.class, String.class, String.class });↵ | | 21 | Long.class, String.class, String.class, String.class });↵
|
22 | clearData();↵ | | 22 | clearData();↵
|
23 | init();↵ | | 23 | init();↵
|
24 | }↵ | | 24 | }↵
|
|
25 | // Column renderers↵ | | 25 | // Column renderers↵
|
26 | private static final TableCellRenderer[] RENDERERS = ↵ | | 26 | private static final TableCellRenderer[] RENDERERS = ↵
|
27 | new TableCellRenderer[]{↵ | | 27 | new TableCellRenderer[]{↵
|
28 | null, // Label↵ | | 28 | null, // Label↵
|
29 | null, // count↵ | | 29 | null, // count↵
|
30 | null, // Mean↵ | | 30 | null, // Mean↵
|
31 | null, // median↵ | | 31 | null, // median↵
|
32 | null, // 90%↵ | | 32 | null, // 90%↵
|
33 | null, // Min↵ | | 33 | null, // Min↵
|
34 | null, // Max↵ | | 34 | null, // Max↵
|
35 | new NumberRenderer("#0.00%"), // Error %age↵ | | 35 | new NumberRenderer("#0.00%"), // Error %age //$NON-NLS-1$↵
|
36 | new RateRenderer("#.0"), // Throughpur↵ | | 36 | new RateRenderer("#.0"), // Throughput //$NON-NLS-1$↵
|
37 | new NumberRenderer("#.0"), // pageSize↵ | | 37 | new NumberRenderer("#.0"), // pageSize //$NON-NLS-1$↵
|
38 | };↵ | | 38 | };↵
|
|
39 | public static boolean testFunctors(){↵ | | 39 | public static boolean testFunctors(){↵
|
40 | StatGraphVisualizer instance = new StatGraphVisualizer();↵ | | 40 | StatVisualizer instance = new StatVisualizer();↵
|
41 | return instance.model.checkFunctors(null,instance.getClass());↵ | | 41 | return instance.model.checkFunctors(null,instance.getClass());↵
|
42 | }↵ | | 42 | }↵
|
43 | ↵ | | 43 | ↵
|
44 | public String getLabelResource() {↵ | | 44 | public String getLabelResource() {↵
|
45 | return "aggregate_graph_title"; //$NON-NLS-1 | | 45 | return "aggregate_report"; //$NON-NLS-1
|