Package com.netflix.exhibitor.core.automanage

Examples of com.netflix.exhibitor.core.automanage.ClusterStatusTask


    public Response getClusterStatus() throws Exception
    {
        InstanceConfig      config = context.getExhibitor().getConfigManager().getConfig();
        ServerList          serverList = new ServerList(config.getString(StringConfigs.SERVERS_SPEC));

        ClusterStatusTask   task = new ClusterStatusTask(context.getExhibitor(), serverList.getSpecs());
        List<ServerStatus>  statuses = context.getExhibitor().getForkJoinPool().invoke(task);

        GenericEntity<List<ServerStatus>> entity = new GenericEntity<List<ServerStatus>>(statuses){};
        return Response.ok(entity).build();
    }
View Full Code Here

TOP

Related Classes of com.netflix.exhibitor.core.automanage.ClusterStatusTask

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.