postman 데이터가 있는 경우에만 전송하도록 수정

postman, dropbox에 description 추가
main
semin.baek 8 months ago
parent dd72251141
commit 5e01618419

@ -0,0 +1,234 @@
{
"description": "현장관리 AMI 개발 서버(KT-CLOUD)에서 동작. AMI CUBRID DB 연결함",
"myHostId": "fox-ami-dev-cubrid",
"myListenPort": 17801,
"knownAgentList": [
{
"hostId": "fox-mkami-dev-oracle",
"hostName": "mkami.foxsoft.kr",
"listenPort": 17801,
"dropBoxIdList": [
"dropbox-fox-mkami-dev-oracle-receive-atch-file-list",
"dropbox-fox-mkami-dev-oracle-receive-atch-file-detail-list",
"dropbox-fox-mkami-dev-oracle-receive-work-act-dcu-list",
"dropbox-fox-mkami-dev-oracle-receive-work-act-modem-list",
"dropbox-fox-mkami-dev-oracle-receive-work-act-svc-cd-list"
]
}
],
"statusChecker": {
"cron": "0/5 * * * * *"
},
"dataSourceConfig": [
{
"dataSourceId": "ds-cubrid",
"driverClassName": "cubrid.jdbc.driver.CUBRIDDriver",
"url": "jdbc:cubrid:14.63.185.105:33000:amif:ami::",
"username": "ami",
"password": "fox12#$%",
"maximumRowForTransaction": 1000
}
],
"sqlMapperLocations": [
"/home/dfxagent/agent/conf/mappers/**/*.xml"
],
"logging": {
"logDirectory": "/home/dfxagent/agent/logs",
"logFileName": "dfxagent.log",
"logName": "DFX_LOG",
"maxHistory": 30,
"logPattern": "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n",
"rootLogLevel": "DEBUG",
"packages": [
{
"com.bsmlab.dfx.agent": "DEBUG",
"jdbc.sqlonly": "DEBUG",
"org.springframework": "INFO"
}
]
},
"dropBoxConfig": {
"receivedMessageStorageRoot": "/home/dfxagent/agent/messages/received",
"processedMessageStorageRoot": "/home/dfxagent/agent/messages/processed",
"failureMessageStorageRoot": "/home/dfxagent/agent/messages/failure",
"threadPoolSize": 300,
"retentionDaysOfProcessedMessage": 60,
"dropBoxList": [
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-code-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertCodeListForReceive",
"description": "공통 T_CODE 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-comm-meth-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertCommMethListForReceive",
"description": "공통 T_COMM_METH 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-dept-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertDeptListForReceive",
"description": "공통 T_DEPT 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-err-cause-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertErrCauseListForReceive",
"description": "공통 T_ERR_CAUSE 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-err-type-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertErrTypeListForReceive",
"description": "공통 T_ERR_TYPE 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-kdn-dept-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertKdnDeptListForReceive",
"description": "공통 T_KDN_DEPT 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-order-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertOrderListForReceive",
"description": "공통 T_ORDER 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-work-group-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.fmp.cdm.insertWorkGroupListForReceive",
"description": "공통 T_WORK_GROUP 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-dcu-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.insertFacErrCurDcuListForReceive",
"description": "유지관리 작업대상_DCU 수신"
},
{
"dropBoxId": "dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-modem-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.insertFacErrCurModemListForReceive",
"description": "유지관리 작업대상_모뎀 수신"
}
]
},
"postmanConfig": {
"threadPoolSize": 30,
"postmanList": [
{
"postmanId": "postman-fox-ami-dev-cubrid-send-atch-file-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.selectAtchFileListForSend",
"postProcessingSqlId": "com.kdn.awms.mob.obs.updateAtchFileListTransferDone"
},
"recipientHostId": "fox-mkami-dev-oracle",
"recipientDropBoxId": "dropbox-fox-mkami-dev-oracle-receive-atch-file-list",
"routingHostIdList": [
"fox-mkami-dev-oracle"
],
"description": "공통 첨부파일 송신"
},
{
"postmanId": "postman-fox-ami-dev-cubrid-send-atch-file-detail-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.selectAtchFileDetailListForSend",
"postProcessingSqlId": "com.kdn.awms.mob.obs.updateAtchFileListDetailTransferDone"
},
"recipientHostId": "fox-mkami-dev-oracle",
"recipientDropBoxId": "dropbox-fox-mkami-dev-oracle-receive-atch-file-detail-list",
"routingHostIdList": [
"fox-mkami-dev-oracle"
],
"description": "공통 첨부파일상세 송신"
},
{
"postmanId": "postman-fox-ami-dev-cubrid-send-work-act-dcu-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.selectWorkActDcuListForSend",
"postProcessingSqlId": "com.kdn.awms.mob.obs.updateWorkActDcuListTransferDone"
},
"recipientHostId": "fox-mkami-dev-oracle",
"recipientDropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-dcu-list",
"routingHostIdList": [
"fox-mkami-dev-oracle"
],
"description": "유지관리 조치내용_DCU 송신"
},
{
"postmanId": "postman-fox-ami-dev-cubrid-send-work-act-modem-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.selectWorkActModemListForSend",
"postProcessingSqlId": "com.kdn.awms.mob.obs.updateWorkActModemListTransferDone"
},
"recipientHostId": "fox-mkami-dev-oracle",
"recipientDropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-modem-list",
"routingHostIdList": [
"fox-mkami-dev-oracle"
],
"description": "유지관리 조치내용_모뎀 송신"
},
{
"postmanId": "postman-fox-ami-dev-cubrid-send-work-act-svc-cd-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-cubrid",
"sqlId": "com.kdn.awms.mob.obs.selectWorkActSvcCdListForSend",
"postProcessingSqlId": "com.kdn.awms.mob.obs.updateWorkActSvcCdListTransferDone"
},
"recipientHostId": "fox-mkami-dev-oracle",
"recipientDropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-svc-cd-list",
"routingHostIdList": [
"fox-mkami-dev-oracle"
],
"description": "유지관리 조치내용_노임품목"
}
]
}
}

@ -0,0 +1,302 @@
{
"description": "워크스테이션에서 실행함. 워크스테이션 oracle 연결.",
"myHostId": "fox-mkami-dev-oracle",
"myListenPort": 17801,
"knownAgentList": [
{
"hostId": "fox-ami-dev-cubrid",
"hostName": "ami.foxsoft.kr",
"listenPort": 17801,
"dropBoxIdList": [
"dropbox-fox-ami-dev-cubrid-receive-code-list",
"dropbox-fox-ami-dev-cubrid-receive-dept-list",
"dropbox-fox-ami-dev-cubrid-receive-err-cause-list",
"dropbox-fox-ami-dev-cubrid-receive-err-type-list",
"dropbox-fox-ami-dev-cubrid-receive-kdn-dept-list",
"dropbox-fox-ami-dev-cubrid-receive-work-group-list",
"dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-dcu-list",
"dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-modem-list"
]
}
],
"statusChecker": {
"cron": "0/5 * * * * *"
},
"dataSourceConfig": [
{
"dataSourceId": "ds-oracle",
"driverClassName": "oracle.jdbc.driver.OracleDriver",
"url": "jdbc:oracle:thin:@mkami.foxsoft.kr:1521:xe",
"username": "ami",
"password": "fox12#$%",
"maximumRowForTransaction": 1000
}
],
"sqlMapperLocations": [
"/home/dfxagent/agent/conf/mappers/**/*.xml"
],
"logging": {
"logDirectory": "/home/dfxagent/agent/logs",
"logFileName": "dfxagent.log",
"logName": "DFX_LOG",
"maxHistory": 30,
"logPattern": "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n",
"rootLogLevel": "DEBUG",
"packages": [
{
"com.bsmlab.dfx.agent": "DEBUG",
"jdbc.sqlonly": "DEBUG",
"org.springframework": "INFO"
}
]
},
"dropBoxConfig": {
"receivedMessageStorageRoot": "/home/dfxagent/agent/messages/received",
"processedMessageStorageRoot": "/home/dfxagent/agent/messages/processed",
"failureMessageStorageRoot": "/home/dfxagent/agent/messages/failure",
"threadPoolSize": 300,
"retentionDaysOfProcessedMessage": 60,
"dropBoxList": [
{
"dropBoxId": "dropbox-fox-mkami-dev-oracle-receive-atch-file-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.insertAtchFileListForReceive",
"description": "공통 첨부파일 수신"
},
{
"dropBoxId": "dropbox-fox-mkami-dev-oracle-receive-atch-file-detail-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.insertAtchFileListDetailForReceive",
"description": "공통 첨부파일상세 수신"
},
{
"dropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-dcu-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.mob.obs.insertWorkActDcuListForReceive",
"description": "유지관리 조치내용_DCU 수신"
},
{
"dropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-modem-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.mob.obs.insertWorkActModemListForReceive",
"description": "유지관리 조치내용_모뎀 수신"
},
{
"dropBoxId": "dropbox-fox-mkami-dev-oracle-receive-work-act-svc-cd-list",
"taskType": "RECEIVE_DB_TO_DB_SAVE",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.mob.obs.insertWorkActSvcCdListForReceive",
"description": "유지관리 조치내용_노임품목 수신"
}
]
},
"postmanConfig": {
"threadPoolSize": 30,
"postmanList": [
{
"postmanId": "postman-fox-mkami-dev-oracle-send-code-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "1 1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectCodeListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateCodeListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-code-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_CODE 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-comm-meth-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "2 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectCommMethListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateCommMethListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-comm-meth-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_COMM_METH 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-dept-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "3 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectDeptListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateDeptListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-dept-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_DEPT 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-err-cause-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "4 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectErrCauseListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateErrCauseListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-err-cause-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_ERR_CAUSE 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-err-type-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "5 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectErrTypeListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateErrTypeListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-err-type-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_ERR_TYPE 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-kdn-dept-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "6 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectKdnDeptListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateKdnDeptListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-kdn-dept-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_KDN_DEPT 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-order-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "6 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectOrderListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateOrderListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-order-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_ORDER 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-work-group-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "6 1 0 * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.fmp.cdm.selectWorkGroupListForSend",
"postProcessingSqlId": "com.kdn.mkami.fmp.cdm.updateWorkGroupListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-work-group-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "공통 T_WORK_GROUP 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-fac-err-cur-dcu-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "1 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.mob.obs.selectFacErrCurDcuListForSend",
"postProcessingSqlId": "com.kdn.mkami.mob.obs.updateFacErrCurDcuListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-dcu-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "유지관리 작업대상_DCU 송신"
},
{
"postmanId": "postman-fox-mkami-dev-oracle-send-fac-err-cur-modem-list",
"taskType": "DB_READ_THEN_SEND",
"action": {
"type": "SCHEDULED",
"cron": "1 0/1 * * * *"
},
"message": {
"messageType": "TRANSFER_DB_TO_DB",
"dataSourceId": "ds-oracle",
"sqlId": "com.kdn.mkami.mob.obs.selectFacErrCurModemListForSend",
"postProcessingSqlId": "com.kdn.mkami.mob.obs.updateFacErrCurModemListTransferDone"
},
"recipientHostId": "fox-ami-dev-cubrid",
"recipientDropBoxId": "dropbox-fox-ami-dev-cubrid-receive-fac-err-cur-modem-list",
"routingHostIdList": [
"fox-ami-dev-cubrid"
],
"description": "유지관리 작업대상_모뎀 송신"
}
]
}
}
Loading…
Cancel
Save