use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deleteAllPointData.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deleteAllPointData()
*/
@Override
public long deleteAllPointData() {
LogStopWatch LogStopWatch = new LogStopWatch();
long value = dao.deleteAllPointData();
LogStopWatch.stop("deleteAllPointData()", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deletePointValuesBetween.
/*
* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deletePointValuesBetween(int, startTime, endTime)
*/
@Override
public long deletePointValuesBetween(int pointId, long startTime, long endTime) {
LogStopWatch LogStopWatch = new LogStopWatch();
long value = dao.deletePointValuesBetween(pointId, startTime, endTime);
LogStopWatch.stop("deletePointValuesBetween(pointId,startTime,endTime) (" + pointId + ", " + startTime + ", " + endTime + ")", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deletePointValuesBefore.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deletePointValuesBefore(int, long)
*/
@Override
public long deletePointValuesBefore(int pointId, long time) {
LogStopWatch LogStopWatch = new LogStopWatch();
long value = dao.deletePointValuesBefore(pointId, time);
LogStopWatch.stop("deletePointValuesBefore(pointId,time) (" + pointId + ", " + time + ")", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getPointValuesBetween.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getPointValuesBetween(java.util.List, long, long, com.serotonin.db.MappedRowCallback)
*/
@Override
public void getPointValuesBetween(List<Integer> pointIds, long from, long to, MappedRowCallback<IdPointValueTime> callback) {
LogStopWatch LogStopWatch = new LogStopWatch();
dao.getPointValuesBetween(pointIds, from, to, callback);
String sqlIn = "[";
for (int i = 0; i < pointIds.size(); i++) {
sqlIn += pointIds.get(i);
if (i < pointIds.size())
sqlIn += ",";
}
sqlIn += "]";
LogStopWatch.stop("getPointValuesBetween(pointIds,from,to,callback) (" + sqlIn + ", " + from + ", " + to + ", " + callback.toString() + ")", this.metricsThreshold);
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deletePointValues.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deletePointValues(int)
*/
@Override
public long deletePointValues(int pointId) {
LogStopWatch LogStopWatch = new LogStopWatch();
long value = dao.deletePointValues(pointId);
LogStopWatch.stop("deletePointValues(pointId) (" + pointId + ")", this.metricsThreshold);
return value;
}
Aggregations