use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method updatePointValueSync.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#updatePointValueSync(int, com.serotonin.m2m2.rt.dataImage.PointValueIdTime, com.serotonin.m2m2.rt.dataImage.SetPointSource)
*/
@Override
public PointValueTime updatePointValueSync(int dataPointId, PointValueTime pvt, SetPointSource source) {
LogStopWatch LogStopWatch = new LogStopWatch();
PointValueTime value = dao.updatePointValueSync(dataPointId, pvt, source);
LogStopWatch.stop("updatePointValuesSync(dataPointId, ts, source) (" + dataPointId + ", pvt, source)", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getLatestPointValue.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getLatestPointValue(int)
*/
@Override
public PointValueTime getLatestPointValue(int pointId) {
LogStopWatch LogStopWatch = new LogStopWatch();
PointValueTime value = dao.getLatestPointValue(pointId);
LogStopWatch.stop("getLatestPointValue(pointId) (" + pointId + "){" + (value != null ? 1 : 0) + "}", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method deletePointValuesBeforeWithoutCount.
/*
* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#deletePointValuesBeforeWithoutCount(int, long)
*/
@Override
public boolean deletePointValuesBeforeWithoutCount(int pointId, long time) {
LogStopWatch LogStopWatch = new LogStopWatch();
boolean value = dao.deletePointValuesBeforeWithoutCount(pointId, time);
LogStopWatch.stop("deletePointValuesBeforeWithoutCount(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 getPointValueAfter.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getPointValueAfter(int, long)
*/
@Override
public PointValueTime getPointValueAfter(int pointId, long time) {
LogStopWatch LogStopWatch = new LogStopWatch();
PointValueTime value = dao.getPointValueAfter(pointId, time);
LogStopWatch.stop("getPointValueAfter(pointId,time) (" + pointId + ", " + time + "){" + (value != null ? 1 : 0) + "}", this.metricsThreshold);
return value;
}
use of com.serotonin.log.LogStopWatch in project ma-core-public by infiniteautomation.
the class PointValueDaoMetrics method getEndTime.
/* (non-Javadoc)
* @see com.serotonin.m2m2.db.dao.PointValueDao#getEndTime(java.util.List)
*/
@Override
public long getEndTime(List<Integer> pointIds) {
LogStopWatch LogStopWatch = new LogStopWatch();
long result = dao.getEndTime(pointIds);
String sqlIn = "[";
for (int i = 0; i < pointIds.size(); i++) {
sqlIn += pointIds.get(i);
if (i < pointIds.size())
sqlIn += ",";
}
sqlIn += "]";
LogStopWatch.stop("getEndTime(pointIds) (" + sqlIn + ")", this.metricsThreshold);
return result;
}
Aggregations