Package com.netflix.exhibitor.core.entities

Examples of com.netflix.exhibitor.core.entities.Result


    @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


    @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);
    }
View Full Code Here

        catch ( IllegalArgumentException ignore )
        {
            // ignore
        }
       
        Result      result;
        if ( type != null )
        {
            try
            {
                context.getExhibitor().getControlPanelValues().set(type, newValue);
                result = new Result("OK", true);
            }
            catch ( Exception e )
            {
                result = new Result(e);
            }
        }
        else
        {
            result = new Result("Not found", false);
        }
        return JsonUtil.writeValueAsString(result);
    }
View Full Code Here

TOP

Related Classes of com.netflix.exhibitor.core.entities.Result

Copyright © 2018 www.massapicom. 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.