}
};
if(Console.protovisAvailable())
{
inflightSampler = new BulletGraphView(title, "count")
.setColumns(cols);
}
else
{
inflightSampler = new PlainColumnView(title, addressCallback)
.setColumns(cols)
.setWidth(100, Style.Unit.PCT);
}
// ----
NumberColumn processedCol = new NumberColumn("messages-added", "Added");
Column[] cols2 = new Column[] {
processedCol.setBaseline(true),
new NumberColumn("durable-message-count","Durable").setComparisonColumn(processedCol),
new NumberColumn("non-durable-message-count","Non-Durable").setComparisonColumn(processedCol)
};
String title2 = "Messages Processed";
if(Console.protovisAvailable())
{
processedSampler = new BulletGraphView(title2, "count")
.setColumns(cols2);
}
else
{
processedSampler = new PlainColumnView(title2, addressCallback)
.setColumns(cols2)
.setWidth(100, Style.Unit.PCT);
}
// ----
NumberColumn subscriptionsCols = new NumberColumn("subscription-count", "Subscriptions");
Column[] cols3 = new Column[] {
subscriptionsCols.setBaseline(true),
new NumberColumn("durable-subscription-count","Durable").setComparisonColumn(subscriptionsCols),
new NumberColumn("non-durable-subscription-count","Nun-Durable").setComparisonColumn(subscriptionsCols)
};
String title3 = "Subscriptions";
if(Console.protovisAvailable())
{
subscriptionSampler = new BulletGraphView(title3, "count")
.setColumns(cols3);
}
else
{
subscriptionSampler = new PlainColumnView(title3, addressCallback)