use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getPointValues.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getPointValues(int, long)
*/
@Override
public List<PointValueTime> getPointValues(int pointId, long since) {
LogStopWatch LogStopWatch = new LogStopWatch();
List<PointValueTime> values = dao.getPointValues(pointId, since);
LogStopWatch.stop("getPointValues(pointId,since) (" + pointId + ", " + since + "){" + values.size() + "}", this.metricsThreshold);
return values;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getFiledataIds.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getFiledataIds(int)
*/
@Override
public List<Long> getFiledataIds(int pointId) {
LogStopWatch LogStopWatch = new LogStopWatch();
List<Long> value = dao.getFiledataIds(pointId);
LogStopWatch.stop("getFiledataIds(pointId) (" + pointId + ")", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method wideBookendQuery.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#wideBookendQuery(java.util.List, long, long, java.lang.Integer, com.serotonin.db.WideQueryCallback)
*/
@Override
public void wideBookendQuery(List<Integer> pointIds, long from, long to, boolean orderById, Integer limit, BookendQueryCallback<IdPointValueTime> callback) {
LogStopWatch logStopWatch = new LogStopWatch();
dao.wideBookendQuery(pointIds, from, to, orderById, limit, callback);
logStopWatch.stop("wideBookendQuery(dataPointIds, from, to, orderById, limit, callback) + (" + pointIds + ", " + to + ", " + from + ", " + limit + "callback)", this.metricsThreshold);
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deletePointValuesWithoutCount.
/*
* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deletePointValuesWithoutCount(int)
*/
@Override
public boolean deletePointValuesWithoutCount(int pointId) {
LogStopWatch LogStopWatch = new LogStopWatch();
boolean value = dao.deletePointValuesWithoutCount(pointId);
LogStopWatch.stop("deletePointValuesWithoutCount(pointId) (" + pointId + ")", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getPointValueBefore.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getPointValueBefore(int, long)
*/
@Override
public PointValueTime getPointValueBefore(int pointId, long time) {
LogStopWatch LogStopWatch = new LogStopWatch();
PointValueTime value = dao.getPointValueBefore(pointId, time);
LogStopWatch.stop("getPointValuesBefore(pointId,time) (" + pointId + ", " + time + "){" + (value != null ? 1 : 0) + "}", this.metricsThreshold);
return value;
}
Aggregations