use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getLatestPointValues.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getLatestPointValues(int, int, long)
*/
@Override
public List<PointValueTime> getLatestPointValues(int pointId, int limit, long before) {
LogStopWatch LogStopWatch = new LogStopWatch();
List<PointValueTime> values = dao.getLatestPointValues(pointId, limit, before);
LogStopWatch.stop("getLatestPointValues(pointId,limit,before) (" + pointId + ", " + limit + ", " + before + "){" + values.size() + "}", this.metricsThreshold);
return values;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getStartTime.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getStartTime(java.util.List)
*/
@Override
public long getStartTime(List<Integer> pointIds) {
LogStopWatch LogStopWatch = new LogStopWatch();
long result = dao.getStartTime(pointIds);
String sqlIn = "[";
for (int i = 0; i < pointIds.size(); i++) {
sqlIn += pointIds.get(i);
if (i < pointIds.size())
sqlIn += ",";
}
sqlIn += "]";
LogStopWatch.stop("getStartTime(pointIds) (" + sqlIn + ")", this.metricsThreshold);
return result;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deleteAllPointDataWithoutCount.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deleteAllPointDataWithoutCount()
*/
@Override
public void deleteAllPointDataWithoutCount() {
LogStopWatch LogStopWatch = new LogStopWatch();
dao.deleteAllPointDataWithoutCount();
LogStopWatch.stop("deleteAllPointDataWithoutCount()", this.metricsThreshold);
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method updatePointValueAsync.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#updatePointValueAsync(int, com.serotonin.m2m2.rt.dataImage.PointValueIdTime, com.serotonin.m2m2.rt.dataImage.SetPointSource)
*/
@Override
public void updatePointValueAsync(int id, PointValueTime pvt, SetPointSource source) {
LogStopWatch LogStopWatch = new LogStopWatch();
dao.updatePointValueAsync(id, pvt, source);
LogStopWatch.stop("updatePointValueAsync(id, ts, source) (" + id + ", pvt)", this.metricsThreshold);
}
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(int, long, long, com.serotonin.db.MappedRowCallback)
*/
@Override
public void getPointValuesBetween(int pointId, long from, long to, MappedRowCallback<PointValueTime> callback) {
LogStopWatch LogStopWatch = new LogStopWatch();
dao.getPointValuesBetween(pointId, from, to, callback);
LogStopWatch.stop("getPointValuesBetween(pointId,from,to,callback) + (" + pointId + ", " + from + ", " + to + ", " + callback.toString() + ")", this.metricsThreshold);
}
Aggregations