Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

REST Entities

Randgalt edited this page Apr 5, 2012 · 22 revisions

All Exhibitor entities are received/returned as JSON.

Result

{
    "succeeded": boolean,
    "message": string,  // Any error message if succeeded is false
}

Many Exhibitor APIs return a Result to indicate success or failure.

NameAndModifiedDate

{
    "name": string,      // the file/index name
    "modifiedDate": long // an epoch
}

Used by the Index APIs.

State

{
    "version": string,           // Exhibitor version
    "running": boolean,          // is the ZooKeeper instance running
    "rollInProgress": boolean,   // is a rolling config change in progress
    "rollStatus": string,        // The status of the rolling config change
    "rollPercentDone": int,
    
    // ... other values as needed ...
}