parent
b9547d6b21
commit
8698ef7914
@ -1,22 +1,22 @@
|
||||
{
|
||||
"sender": {
|
||||
"host-id": "sam",
|
||||
"hostId": "sam",
|
||||
"timestamp": 1750643945523
|
||||
},
|
||||
"message-uuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6e",
|
||||
"message-type": "SAVE_FILE",
|
||||
"messageUuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6e",
|
||||
"messageType": "SAVE_FILE",
|
||||
"recipient": {
|
||||
"host-id": "defree",
|
||||
"drop-box-id": "receive-work-image-file"
|
||||
"hostId": "defree",
|
||||
"dropBoxId": "receive-work-image-file"
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"file-name": "v1.jpg",
|
||||
"meta-data": {
|
||||
"fileName": "v1.jpg",
|
||||
"metaData": {
|
||||
"FILE_ID": "F1V1JPG",
|
||||
"ORIGINAL_FILE_NAME": "현장사진1.jpg"
|
||||
},
|
||||
"meta-drop-box-id": "save-work-image-file-info"
|
||||
"metaDropBoxId": "save-work-image-file-info"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,112 +1,135 @@
|
||||
{
|
||||
"host-id": "first-agent",
|
||||
"listen-port": 16801,
|
||||
"known-agent-list": [
|
||||
"myHostId": "first-agent",
|
||||
"myListenPort": 16801,
|
||||
"knownAgentList": [
|
||||
{
|
||||
"host-id": "second-agent",
|
||||
"host-name": "mkami.foxsoft.kr",
|
||||
"listen-port": 16801,
|
||||
"drop-box-id-list": ["drop1", "drop2"]
|
||||
"hostId": "second-agent",
|
||||
"hostName": "mkami.foxsoft.kr",
|
||||
"listenPort": 16801,
|
||||
"dropBoxIdList": [
|
||||
"drop1",
|
||||
"drop2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"host-id": "third-agent",
|
||||
"host-name": "defree.co.kr",
|
||||
"listen-port": 16801,
|
||||
"drop-box-id-list": ["drop3", "drop4"]
|
||||
"hostId": "third-agent",
|
||||
"hostName": "defree.co.kr",
|
||||
"listenPort": 16801,
|
||||
"dropBoxIdList": [
|
||||
"drop3",
|
||||
"drop4"
|
||||
]
|
||||
}
|
||||
],
|
||||
"data-source-config": [
|
||||
"dataSourceConfig": [
|
||||
{
|
||||
"data-source-id": "dfcms",
|
||||
"dataSourceId": "dfcms",
|
||||
"driverClassName": "org.postgresql.Driver",
|
||||
"url": "jdbc:postgresql://bsm-lab.com:5432/defree?currentSchema=DFCMS",
|
||||
"username": "defreeadmin",
|
||||
"password": "qortpals1!"
|
||||
},
|
||||
{
|
||||
"data-source-id": "mochastory",
|
||||
"dataSourceId": "mochastory",
|
||||
"driverClassName": "com.mysql.jdbc.Driver",
|
||||
"url": "jdbc:mysql://bsm-lab.com:3306/MOCHASTORY?allowPublicKeyRetrieval=true",
|
||||
"username": "MOCHASTORY",
|
||||
"password": "MOCHASTORY"
|
||||
}
|
||||
],
|
||||
"sqlMapperLocations": ["D:/projects/bsm-lab/dfx/dfxagent/src/docs/mapper-examples/**/*.xml"],
|
||||
"drop-box": {
|
||||
"received-message-storage-root": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/received",
|
||||
"processed-message-storage-root": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/processed",
|
||||
"failure-message-storage-root": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/failure",
|
||||
"drop-box-list": [
|
||||
"sqlMapperLocations": [
|
||||
"D:/projects/bsm-lab/dfx/dfxagent/src/docs/mapper-examples/**/*.xml"
|
||||
],
|
||||
"dropBox": {
|
||||
"receivedMessageStorageRoot": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/received",
|
||||
"processedMessageStorageRoot": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/processed",
|
||||
"failureMessageStorageRoot": "D:/projects/bsm-lab/dfx/dfxagent/src/docs/messages/failure",
|
||||
"dropBoxList": [
|
||||
{
|
||||
"drop-box-id": "save-violation-history",
|
||||
"task-type": "RECEIVE_DB_TO_DB_SAVE",
|
||||
"data-source-id": "dfcms",
|
||||
"sql-id": "dfcms.violation.insertViolationHistory"
|
||||
"dropBoxId": "save-violation-history",
|
||||
"taskType": "RECEIVE_DB_TO_DB_SAVE",
|
||||
"dataSourceId": "dfcms",
|
||||
"sqlId": "dfcms.violation.insertViolationHistory"
|
||||
},
|
||||
{
|
||||
"drop-box-id": "receive-work-image-file",
|
||||
"task-type": "RECEIVE_FILE",
|
||||
"save-directory-root": "D:\\projects\\bsm-lab\\dfx\\run\\receive_file"
|
||||
"dropBoxId": "receive-work-image-file",
|
||||
"taskType": "RECEIVE_FILE",
|
||||
"saveDirectoryRoot": "D:\\projects\\bsm-lab\\dfx\\run\\receive_file"
|
||||
},
|
||||
{
|
||||
"drop-box-id": "save-work-image-file-info",
|
||||
"task-type": "RECEIVE_DB_TO_DB_SAVE",
|
||||
"data-source-id": "dfcms",
|
||||
"sql-id": "dfcms.file.insertFileInfo"
|
||||
"dropBoxId": "save-work-image-file-info",
|
||||
"taskType": "RECEIVE_DB_TO_DB_SAVE",
|
||||
"dataSourceId": "dfcms",
|
||||
"sqlId": "dfcms.file.insertFileInfo"
|
||||
}
|
||||
]
|
||||
},
|
||||
"postman": [
|
||||
{
|
||||
"postman-id": "postman1",
|
||||
"task-type": "DB_READ_THEN_SEND",
|
||||
"postmanId": "postman1",
|
||||
"taskType": "DB_READ_THEN_SEND",
|
||||
"action": {
|
||||
"type": "TRIGGER",
|
||||
"command": "runSelectSomeThenSend",
|
||||
"parameters-key-list": ["REG_DATE_FROM", "REG_DATE_TO"]
|
||||
"parametersKeyList": [
|
||||
"REG_DATE_FROM",
|
||||
"REG_DATE_TO"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"message-type": "TRANSFER_DB_TO_DB",
|
||||
"data-source-id": "dfcms",
|
||||
"sql-id": "dfcms.selectSome"
|
||||
"messageType": "TRANSFER_DB_TO_DB",
|
||||
"dataSourceId": "dfcms",
|
||||
"sqlId": "dfcms.selectSome"
|
||||
},
|
||||
"recipient-host-id": "third-agent",
|
||||
"recipient-drop-box-id": "drop3",
|
||||
"routing-host-id-list": ["first-agent", "second-agent", "third-agent"]
|
||||
"recipientHostId": "third-agent",
|
||||
"recipientDropBoxId": "drop3",
|
||||
"routingHostIdList": [
|
||||
"first-agent",
|
||||
"second-agent",
|
||||
"third-agent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"postman-id": "postman2",
|
||||
"task-type": "DB_READ_THEN_SEND",
|
||||
"postmanId": "postman2",
|
||||
"taskType": "DB_READ_THEN_SEND",
|
||||
"action": {
|
||||
"type": "SCHEDULED",
|
||||
"cron": "0 0 3 * * *"
|
||||
},
|
||||
"message": {
|
||||
"message-type": "TRANSFER_DB_TO_DB",
|
||||
"data-source-id": "dfcms",
|
||||
"sql-id": "dfcms.selectSome"
|
||||
"messageType": "TRANSFER_DB_TO_DB",
|
||||
"dataSourceId": "dfcms",
|
||||
"sqlId": "dfcms.selectSome"
|
||||
},
|
||||
"recipient-host-id": "third-agent",
|
||||
"recipient-drop-box-id": "drop3",
|
||||
"routing-host-id-list": ["first-agent", "second-agent", "third-agent"]
|
||||
"recipientHostId": "third-agent",
|
||||
"recipientDropBoxId": "drop3",
|
||||
"routingHostIdList": [
|
||||
"first-agent",
|
||||
"second-agent",
|
||||
"third-agent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"postman-id": "postman3",
|
||||
"task-type": "FILE_READ_THEN_SEND",
|
||||
"postmanId": "postman3",
|
||||
"taskType": "FILE_READ_THEN_SEND",
|
||||
"action": {
|
||||
"type": "SCHEDULED",
|
||||
"cron": "0 1 3 * * *"
|
||||
},
|
||||
"message": {
|
||||
"message-type": "TRANSFER_FILE",
|
||||
"watch-directory": "D:\\projects\\bsm-lab\\dfx\\run\\send_file",
|
||||
"meta-data-data-source-id": "save-work-image-file-info",
|
||||
"meta-data-sql-id": "dfcms.file.selectFileInfo",
|
||||
"meta-drop-box-id": "save-work-image-file-info"
|
||||
"messageType": "TRANSFER_FILE",
|
||||
"watchDirectory": "D:\\projects\\bsm-lab\\dfx\\run\\send_file",
|
||||
"metaDataDataSourceId": "save-work-image-file-info",
|
||||
"metaDataSqlId": "dfcms.file.selectFileInfo",
|
||||
"metaDropBoxId": "save-work-image-file-info"
|
||||
},
|
||||
"recipient-host-id": "third-agent",
|
||||
"recipient-drop-box-id": "drop4",
|
||||
"routing-host-id-list": ["first-agent", "second-agent", "third-agent"]
|
||||
"recipientHostId": "third-agent",
|
||||
"recipientDropBoxId": "drop4",
|
||||
"routingHostIdList": [
|
||||
"first-agent",
|
||||
"second-agent",
|
||||
"third-agent"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue