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);
}
Aggregations