private void loadMetrics() {
try {
Metrics metrics = new Metrics(this);
Graph databaseGraph = metrics.createGraph("Database Engine");
databaseGraph.addPlotter(new Plotter(getFeDatabase().getName()) {
public int getValue() {
return 1;
}
});
Graph defaultHoldings = metrics.createGraph("Default Holdings");
defaultHoldings.addPlotter(new Plotter(getAPI().getDefaultHoldings() + "") {
public int getValue() {
return 1;
}
});
Graph maxHoldings = metrics.createGraph("Max Holdings");
String maxHolding = getAPI().getMaxHoldings() + "";
if (getAPI().getMaxHoldings() == -1) {
maxHolding = "Unlimited";
}
maxHoldings.addPlotter(new Plotter(maxHolding) {
public int getValue() {
return 1;
}
});