Package com.flaptor.clusterfest

Examples of com.flaptor.clusterfest.ClusterManager


    public StatisticsChart() {
        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();
        Calendar c = DateUtil.getCanonicalDayFromToday(0);
       
View Full Code Here

TOP

Related Classes of com.flaptor.clusterfest.ClusterManager

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.