CRecordFileStoreStoreChunk

This is an internal message from FileStores.

This message is used when files are transferred from one FileStore to another. Files are not transferred in one piece but in blocks (Default: 10000 bytes per block). This specific message is used to transfer a single file block.

{
    "id": "def6693e-5729-44a5-9532-dc5b872375d5",
    "name": "FILE_STORE_STORE_CHUNK",
    "description": "Store a file chunk into a network file store.",
    "isNanoService": "false",
    "type": "REQUEST",
    "slots": [
        {
            "key": "hash",
            "name": "HASH",
            "direction": "REQUEST",
            "presenceConstraint": "MANDATORY",
            "type": "STRING",
            "description": "The hash of the file."
        },
        {
            "key": "bytes",
            "name": "BYTES",
            "direction": "REQUEST",
            "presenceConstraint": "MANDATORY",
            "type": "BYTE_ARRAY",
            "description": "The bytes (and length) of the chunk."
        },
        {
            "key": "pos",
            "name": "FILE_POSITION",
            "direction": "REQUEST",
            "presenceConstraint": "MANDATORY",
            "type": "LONG",
            "description": "The file position of the chunk."
        }
    ]
}

Slot Description

Key Name Direction Presence Constraint Type Description
hash HASH REQUEST MANDATORY STRING The MD5 hash of the file (Base64 encoded).
bytes BYTES REQUEST MANDATORY BYTE_ARRAY The bytes (and length) of the chunk.
pos FILE_POSITION REQUEST MANDATORY LONG The file position of the chunk.

Record Usage

In nyssr.net, we typically don't exchange interfaces between projects. Instead, we use platform-independent Records to describe message formats.

One or more descriptions of these Records are stored in the JSON or XML format as record.json or record.xml within a directory. The Record Generator, an included Swing tool, generates helper classes from these files. These classes can then be used to type-safely write or read messages.

See also