Examples of MonitorRunningInstance


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

        {
            switchesNode.put(UIResource.fixName(type), context.getExhibitor().getControlPanelValues().isSet(type));
        }
        mainNode.put("switches", switchesNode);

        MonitorRunningInstance  monitorRunningInstance = context.getExhibitor().getMonitorRunningInstance();
        InstanceStateTypes      state = monitorRunningInstance.getCurrentInstanceState();
        mainNode.put("state", state.getCode());
        mainNode.put("description", state.getDescription());
        mainNode.put("isLeader", monitorRunningInstance.isCurrentlyLeader());

        return JsonUtil.writeValueAsString(mainNode);
    }
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.