this.snapshots = snapshots;
}
public Node createTable() {
TableView tableView = new TableView();
ObservableList columns = tableView.getColumns();
columns.add(createColumn("monitoringTime", "Monitoring Time"));
columns.add(createColumn("usedHeapSizeInMB", "Heap Size"));
columns.add(createColumn("threadCount", "Thread Count"));
columns.add(createColumn("peakThreadCount", "Peak Thread Count"));
columns.add(createColumn("totalErrors", "Total Errors"));
columns.add(createColumn("currentThreadBusy", "Busy Threads"));
columns.add(createColumn("committedTX", "Commits"));
columns.add(createColumn("rolledBackTX", "Rollbacks"));
columns.add(createColumn("queuedConnections", "Queued Connections"));
columns.add(createColumn("totalErrors", "Total Errors"));
columns.add(createColumn("activeSessions", "Active Sessions"));
columns.add(createColumn("expiredSessions", "Expired Sessions"));
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
tableView.setItems(this.snapshots);
return tableView;
}