Examples of KillRunningInstance


Examples of com.netflix.exhibitor.core.state.KillRunningInstance

    @Path("restart")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public String stopStartZooKeeper() throws Exception
    {
        context.getExhibitor().getActivityQueue().add(QueueGroups.MAIN, new KillRunningInstance(context.getExhibitor(), true));

        Result result = new Result("OK", true);
        return JsonUtil.writeValueAsString(result);
    }
View Full Code Here

Examples of com.netflix.exhibitor.core.state.KillRunningInstance

    @Path("stop")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public String stopZooKeeper() throws Exception
    {
        context.getExhibitor().getActivityQueue().add(QueueGroups.MAIN, new KillRunningInstance(context.getExhibitor(), false));

        Result result = new Result("OK", true);
        return JsonUtil.writeValueAsString(result);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.