Apache Curator · JSON Structure

Apache Curator Node Data Structure

Data associated with a ZooKeeper node managed by Apache Curator, including its path, data payload, and stat metadata.

Type: object Properties: 3 Required: 1
ApacheDistributed CoordinationDistributed SystemsJavaMavenOpen SourceService DiscoveryZooKeeper

NodeData is a JSON Structure definition published by Apache Curator, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

path data stat

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

apache-curator-node-data-structure.json Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-curator/refs/heads/main/json-structure/apache-curator-node-data-structure.json",
  "name": "NodeData",
  "description": "Data associated with a ZooKeeper node managed by Apache Curator, including its path, data payload, and stat metadata.",
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "description": "Full ZooKeeper path of this node.",
      "example": "/config/app/timeout"
    },
    "data": {
      "type": "string",
      "description": "Node data as a Base64-encoded string or UTF-8 text.",
      "example": "30000"
    },
    "stat": {
      "type": "object",
      "description": "ZooKeeper Stat object with node metadata.",
      "properties": {
        "czxid": {
          "type": "int32",
          "description": "Transaction ID that created this node.",
          "example": 1000
        },
        "mzxid": {
          "type": "int32",
          "description": "Transaction ID of the last modification.",
          "example": 1050
        },
        "ctime": {
          "type": "int32",
          "description": "Creation time in milliseconds since epoch.",
          "example": 1718153645993
        },
        "mtime": {
          "type": "int32",
          "description": "Last modification time in milliseconds since epoch.",
          "example": 1718160000000
        },
        "version": {
          "type": "int32",
          "description": "Number of changes to this node data.",
          "example": 2
        },
        "cversion": {
          "type": "int32",
          "description": "Number of changes to the children of this node.",
          "example": 0
        },
        "aversion": {
          "type": "int32",
          "description": "Number of changes to the ACL of this node.",
          "example": 0
        },
        "numChildren": {
          "type": "int32",
          "description": "Number of child nodes.",
          "example": 0
        },
        "dataLength": {
          "type": "int32",
          "description": "Length of the data field in bytes.",
          "example": 5
        },
        "ephemeralOwner": {
          "type": "int32",
          "description": "Session ID of the owner if ephemeral, 0 otherwise.",
          "example": 0
        }
      }
    }
  },
  "required": [
    "path"
  ]
}