#1672 - ENH: Add ebean.dumpMetricsOnShutdown=true ... for dumping metrics

This commit is contained in:
rob bygrave
2019-04-12 00:45:00 +12:00
parent 4f4743807c
commit 30ae435f33
15 changed files with 415 additions and 64 deletions
@@ -4,18 +4,28 @@ class DQueryPlanMeta {
private final Class<?> type;
private final String label;
private final String name;
private final String sql;
DQueryPlanMeta(Class<?> type, String label, String sql) {
this.type = type;
this.label = label;
this.sql = sql;
String name = type.getSimpleName();
if (label != null) {
name += "_" + label;
}
this.name = name;
}
public Class<?> getType() {
return type;
}
public String getName() {
return name;
}
public String getLabel() {
return label;
}