use of com.serotonin.m2m2.vo.dataSource.PollingDataSourceVO in project ma-core-public by infiniteautomation.
the class DataSourceService method forceDataSourcePoll.
private void forceDataSourcePoll(DataSourceVO vo) {
if (vo instanceof PollingDataSourceVO) {
PermissionHolder user = Common.getUser();
ensureEditPermission(user, vo);
Common.runtimeManager.forceDataSourcePoll(vo.getId());
} else {
throw new TranslatableIllegalStateException(new TranslatableMessage("dsEdit.failedForcePoll", vo.getName()));
}
}
Aggregations