}
};
if(Console.protovisAvailable())
{
txSampler = new BulletGraphView("Transactions", "total number").setColumns(cols);
}
else
{
txSampler = new PlainColumnView("Transactions", addressCallback)
.setColumns(cols)
.setWidth(100, Style.Unit.PCT);
}
// ------
NumberColumn queryCount = new NumberColumn("query-cache-put-count","Put Count");
Column[] queryCols = new Column[] {
queryCount.setBaseline(true),
new NumberColumn("query-cache-hit-count","Hit Count").setComparisonColumn(queryCount),
new NumberColumn("query-cache-miss-count","Miss Count").setComparisonColumn(queryCount)
};
if(Console.protovisAvailable())
{
queryCacheSampler = new BulletGraphView("Query Cache", "total number", false).setColumns(queryCols);
}
else
{
queryCacheSampler = new PlainColumnView("Query Cache", addressCallback)
.setColumns(queryCols)
.setWidth(100, Style.Unit.PCT);
}
// ------
NumberColumn queryExecCount = new NumberColumn("query-execution-count","Execution Count");
Column[] queryExecCols = new Column[] {
queryExecCount,
new NumberColumn("query-execution-max-time","Max Time")
};
if(Console.protovisAvailable())
{
queryExecSampler = new BulletGraphView("Query Execution", "total number", false).setColumns(queryExecCols);
}
else
{
queryExecSampler = new PlainColumnView("Execution", addressCallback)
.setColumns(queryExecCols)
.setWidth(100, Style.Unit.PCT);
}
// ------
NumberColumn secondLevelCount = new NumberColumn("second-level-cache-put-count","Put Count");
Column[] secondLevelCols = new Column[] {
secondLevelCount.setBaseline(true),
new NumberColumn("second-level-cache-hit-count","Hit Count").setComparisonColumn(secondLevelCount),
new TextColumn("second-level-cache-miss-count","Miss Count").setComparisonColumn(secondLevelCount)
};
if(Console.protovisAvailable())
{
secondLevelSampler = new BulletGraphView("Second Level Cache", "total number").setColumns(secondLevelCols);
}
else
{
secondLevelSampler = new PlainColumnView("Second Level Cache", addressCallback)
.setColumns(secondLevelCols)
.setWidth(100, Style.Unit.PCT);
}
// ------
NumberColumn sessionOpenCount = new NumberColumn("session-open-count", "Sessions opened");
Column[] connectionCols = new Column[] {
sessionOpenCount.setBaseline(true),
new TextColumn("session-close-count","Closed").setComparisonColumn(sessionOpenCount)
};
if(Console.protovisAvailable())
{
connectionSampler = new BulletGraphView("Sessions", "total number").setColumns(connectionCols);
}
else
{
connectionSampler = new PlainColumnView("Sessions", addressCallback)
.setColumns(connectionCols)