Project

General

Profile

Actions

Sync

The sync update messages are triggered by the catalog. It publishes update data through ChronoSync library. The ChronoSync library will generate and handle the sync messages. Then the other catalogs are notified to fetch the update data.

Catalog supports two types of data operations: add, remove. The initiator must encode the update data as a JSON object, with the format: { "add": [NDNname1, NDNname2], "remove":[NDNname3, NDNname4]}, where the "add" and "remove" are operation names.

Update data schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "catalog update",
  "type": "object",
  "properties": {
    "add": {
      "description": "NDN name URIs to be added",
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "remove": {
      "description": "NDN name URIs to be removed",
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    }
  },
  "required": [
    "add",
    "remove"
  ]
}

Updated by Chengyu Fan almost 9 years ago ยท 1 revisions