Index: web-module/src/main/java/egovframework/api/arms/dashboardlist/batch/DashboardListBatch.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/dashboardlist/batch/DashboardListBatch.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/dashboardlist/batch/DashboardListBatch.java (revision 9f66f5432132ac6ed3bcb2c40a091326e991ab3b) @@ -0,0 +1,27 @@ +package egovframework.api.arms.dashboardlist.batch; + +import egovframework.api.arms.dashboardlist.service.DashboardListService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +/** + * Created by Administrator on 2021-01-16. + */ +@Component +public class DashboardListBatch { + + @Autowired + private DashboardListService dashboardListService; + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Scheduled(fixedDelay=60000*5, initialDelay =30000) + public void updateDashboardList() throws Exception { + + Integer updateCount = dashboardListService.updateDashboardToGrafana(); + logger.info("DataSourceList update Count = " + updateCount); + } +} Index: web-module/src/main/java/egovframework/api/arms/datasourcelist/batch/DataSourceListBatch.java =================================================================== diff -u --- web-module/src/main/java/egovframework/api/arms/datasourcelist/batch/DataSourceListBatch.java (revision 0) +++ web-module/src/main/java/egovframework/api/arms/datasourcelist/batch/DataSourceListBatch.java (revision 9f66f5432132ac6ed3bcb2c40a091326e991ab3b) @@ -0,0 +1,29 @@ +package egovframework.api.arms.datasourcelist.batch; + +import egovframework.api.arms.datasourcelist.service.DataSourceListService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +/** + * Created by Administrator on 2021-01-16. + */ +@Component +public class DataSourceListBatch { + + @Autowired + private DataSourceListService dataSourceListService; + + private final Logger logger = LoggerFactory.getLogger(this.getClass()); + + @Scheduled(fixedDelay=60000*5, initialDelay =20000) + public void updateDataSourceList() throws Exception { + + Integer updateCount = dataSourceListService.updateDatasourceListToGrafana(); + logger.info("DataSourceList update Count = " + updateCount); + } + + +} Index: web-module/src/main/resources/egovframework/egovProps/globals.properties =================================================================== diff -u -rd5de351ee43a30d067dc5d1339b88d788ea02f03 -r9f66f5432132ac6ed3bcb2c40a091326e991ab3b --- web-module/src/main/resources/egovframework/egovProps/globals.properties (.../globals.properties) (revision d5de351ee43a30d067dc5d1339b88d788ea02f03) +++ web-module/src/main/resources/egovframework/egovProps/globals.properties (.../globals.properties) (revision 9f66f5432132ac6ed3bcb2c40a091326e991ab3b) @@ -46,7 +46,6 @@ google.api.key=${google.api.key} google.api.secret=${google.api.secret} -#TODO Globals.fileStorePath = ${Globals.fileStorePath} Globals.SynchrnServerPath = ${Globals.SynchrnServerPath} system.uploadpath = ${system.uploadpath} Index: web-module/src/main/resources/rebel.xml =================================================================== diff -u -ra48d7fdf2aada9e56373ce266683e3f5d3d69f9b -r9f66f5432132ac6ed3bcb2c40a091326e991ab3b --- web-module/src/main/resources/rebel.xml (.../rebel.xml) (revision a48d7fdf2aada9e56373ce266683e3f5d3d69f9b) +++ web-module/src/main/resources/rebel.xml (.../rebel.xml) (revision 9f66f5432132ac6ed3bcb2c40a091326e991ab3b) @@ -2,13 +2,13 @@ - + - +