mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
updated readme
This commit is contained in:
parent
f3f5e64c45
commit
dcbd5ad031
1 changed files with 27 additions and 0 deletions
27
README.md
27
README.md
|
@ -57,6 +57,7 @@ As long as you can do something as an operator on in a shell on a system you can
|
|||
- [REQHttpGetScheduled](#reqhttpgetscheduled)
|
||||
- [REQHello](#reqhello)
|
||||
- [REQCopyFileFrom](#reqcopyfilefrom)
|
||||
- [REQCopySrc](#reqcopysrc)
|
||||
- [REQErrorLog](#reqerrorlog)
|
||||
- [Request Methods used for reply messages](#request-methods-used-for-reply-messages)
|
||||
- [REQNone](#reqnone)
|
||||
|
@ -696,6 +697,32 @@ Copy a file from one node to another node.
|
|||
]
|
||||
```
|
||||
|
||||
#### REQCopySrc
|
||||
|
||||
Copy a file from one node to another node.
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"directory": "copy",
|
||||
"fileName": "copy.log",
|
||||
"toNodes": ["central"],
|
||||
"method":"REQCopySrc",
|
||||
"methodArgs": ["./testbinary","ship1","./testbinary-copied","500000","20"],
|
||||
"methodTimeout": 10,
|
||||
"replyMethod":"REQToConsole"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
- toNode/toNodes, specifies what node to send the request to, and which also contains the src file to copy.
|
||||
- methodArgs, are split into several fields, where each field specifies:
|
||||
1. SrcFullPath, specifies the full path including the name of the file to copy.
|
||||
2. DstNode, the destination node to copy the file to.
|
||||
3. DstFullPath, the full path including the name of the destination file. The filename can be different than the original name.
|
||||
4. SplitChunkSize, the size of the chunks to split the file into for transfer.
|
||||
5. MaxTotalCopyTime, specifies the maximum allowed time the complete copy should take. Make sure you set this long enough to allow the transfer to complete.
|
||||
|
||||
#### REQErrorLog
|
||||
|
||||
Method for receiving error logs for Central error logger.
|
||||
|
|
Loading…
Reference in a new issue