ZKservice

Customized ZooKeeper web service to be used by PaaS applications to: 1. request new unique ids 2. check the synchronization status

The following resources are applicable:

/zkService/getId

Mount Point: /rest/zkService/getId

GET

Returns a unique id to the caller for a given table.

Parameters

name description type default
tableName The name of the table. query

Response Body

element: ZKobject
media types: application/xml
application/json

The unique id

/zkService/getRange

Mount Point: /rest/zkService/getRange

GET

Returns a range of maximum 100 (minimum 2) unique ids to the caller for a given table.

Parameters

name description type default
tableName The name of the table. query
offset the number of ids to be assigned (less than 101) query

Response Body

element: ZKobject
media types: application/xml
application/json

The first and the last ids in the assigned range.

/zkService/isSynchronizing

Mount Point: /rest/zkService/isSynchronizing

GET

Returns the status of Hegira, i.e., if it has been configured to synchronize data.

Response Body

element: ZKobject
media types: application/xml
application/json

true if it is synchronizing, false otherwise