Search in sources :

Example 1 with StartInstance

use of com.netflix.exhibitor.core.state.StartInstance in project exhibitor by soabase.

the class ClusterResource method startZooKeeper.

@Path("start")
@GET
@Produces(MediaType.APPLICATION_JSON)
public String startZooKeeper() throws Exception {
    context.getExhibitor().getActivityQueue().add(QueueGroups.MAIN, new StartInstance(context.getExhibitor()));
    Result result = new Result("OK", true);
    return JsonUtil.writeValueAsString(result);
}
Also used : StartInstance(com.netflix.exhibitor.core.state.StartInstance) Result(com.netflix.exhibitor.core.entities.Result) Path(javax.ws.rs.Path) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

Result (com.netflix.exhibitor.core.entities.Result)1 StartInstance (com.netflix.exhibitor.core.state.StartInstance)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1