Package com.flaptor.clusterfest

Examples of com.flaptor.clusterfest.NodeDescriptor


        super("statistics");
    }
   
    public Pair<List<String>, Map<Date, List<Number>>> getChartData(HttpServletRequest request) {
        ClusterManager cluster= ClusterManager.getInstance();
        NodeDescriptor node = cluster.getNodes().get(Integer.parseInt(request.getParameter("id")));
        String eventName = request.getParameter("eventName");
        MonitorModule monitor = (MonitorModule)cluster.getModule("monitor");
        MonitorNodeDescriptor mnode = monitor.getModuleNode(node);
        Statistics statistics = (Statistics)mnode.getLastState().getProperties().get("statistics");
        AdaptiveHistogram hist = statistics.getLastPeriodStats(eventName).getHistogram();
View Full Code Here


    }
    public List<String> getActions() {
        return Arrays.asList(new String[]{"indexer.checkpoint","indexer.optimize", "indexer.close"});
    }
    public ActionReturn action(String action, HttpServletRequest request) {
        NodeDescriptor node = ModuleUtil.getNodeFromRequest(request);
        return selectedNodesAction(action, Arrays.asList(new NodeDescriptor[]{node}), request);
    }
View Full Code Here

TOP

Related Classes of com.flaptor.clusterfest.NodeDescriptor

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.