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