improve monitor-support

This commit is contained in:
wenshao
2013-08-18 00:41:07 +08:00
parent f9a06e7a85
commit 26419df2fd
10 changed files with 355 additions and 52 deletions
@@ -25,12 +25,16 @@ import com.alibaba.druid.support.monitor.annotation.MTable;
@MTable(name = "druid_wall_sql")
public class WallSqlStatValue {
@MField(aggregate = AggregateType.None)
private String sql;
@MField(aggregate = AggregateType.None)
@MField(groupBy = true, aggregate = AggregateType.None, hashFor = "sql", hashForType = "sql")
private long sqlHash;
private String sqlSample;
@MField(groupBy = true, aggregate = AggregateType.None, hashFor = "sqlSample", hashForType = "sqlSample")
private long sqlSampleHash;
@MField(aggregate = AggregateType.Sum)
private long executeCount;
@@ -58,6 +62,14 @@ public class WallSqlStatValue {
this.sql = sql;
}
public long getSqlHash() {
return sqlHash;
}
public void setSqlHash(long sqlHash) {
this.sqlHash = sqlHash;
}
public String getSqlSample() {
return sqlSample;
}