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