添加执行次数监控

This commit is contained in:
wenshao
2011-12-27 15:52:26 +08:00
parent 11d3b2c4a1
commit e51fd89ccb
7 changed files with 151 additions and 151 deletions
@@ -199,6 +199,16 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
protected Exception createError = null;
private final AtomicLong executeCount = new AtomicLong();
public long getExecuteCount() {
return executeCount.get();
}
public void incrementExecuteCount() {
this.executeCount.incrementAndGet();
}
public Exception getCreateError() {
return createError;
}