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

REST Cluster

Randgalt edited this page Apr 6, 2012 · 14 revisions

APIs concerning the ZooKeeper ensemble instances. See REST Entities for descriptions of any arguments/results.

API URL/Method Arguments/Result Description
remoteGetStatus GET
exhibitor/v1/cluster/state/{hostname}
In: n/a
Out: ClusterState
Returns the system state of any instance in the ensemble. A remote call to the instance is made.
remoteStopStartZooKeeper GET
exhibitor/v1/cluster/restart/{hostname}
In: n/a
Out: Result
Restart the instance with the given hostname.
remoteGetFourLetterWord GET
exhibitor/v1/cluster/4ltr/{word}/{hostname}
In: n/a
Out: JSON string
Execute a ZK four letter word on the instance with the given hostname.
remoteGetLog GET
exhibitor/v1/cluster/log/{hostname}
In: n/a:
Out: JSON string
Return the Exhibitor log from the instance with the given hostname.
getStatus GET
exhibitor/v1/cluster/state
In: n/a
Out: ClusterState
Returns the system state of the local instance.
stopStartZooKeeper GET
exhibitor/v1/cluster/restart
In: n/a
Out: Result
Restart the local instance.
getFourLetterWord GET
exhibitor/v1/cluster/4ltr/{word}
In: n/a
Out: JSON string
Execute a ZK four letter word on the local instance
getLog GET
exhibitor/v1/cluster/log
In: n/a:
Out: JSON string
Return the Exhibitor log from the local instance.
remoteGetStatus GET
exhibitor/v1/cluster/state/{hostname}
In: n/a
Out: State
Returns
remoteGetStatus GET
exhibitor/v1/cluster/state/{hostname}
In: n/a
Out: State
Returns

TBD