Package org.netbeans.server.uihandler.statistics.SodbeansOutputStatistics

Examples of org.netbeans.server.uihandler.statistics.SodbeansOutputStatistics.DataBean


    protected DataBean process(LogRecord rec) {
        if ("SODBEANS_OUTPUT_SELECTED".equals(rec.getMessage())) {
            String id = (String)rec.getParameters()[0];
            int errors = Integer.parseInt(id);
            if(errors > 0){
                return new DataBean(1, 0, 0, 1);
            }else{
                return new DataBean(1, 0, 0, 0);
            }
        } else {
            return EMPTY;
        }
    }
View Full Code Here


    protected DataBean finishSessionUpload(String userId, int sessionNumber, boolean initialParse, DataBean d) {
        int nonNullSessions = 0;
        if (d.getActionsCount() > 0) {
            nonNullSessions = 1;
        }
        return new DataBean(d.getActionsCount(), 1, nonNullSessions, d.getNumberOfActionsWithErrors());
    }
View Full Code Here

        return new DataBean(d.getActionsCount(), 1, nonNullSessions, d.getNumberOfActionsWithErrors());
    }

    @Override
    protected DataBean join(DataBean one, DataBean two) {
        return new DataBean(one.getActionsCount() + two.getActionsCount(),
                one.getNumberOfSessions() + two.getNumberOfSessions(),
                one.getNumberOfNonNullSessions() + two.getNumberOfNonNullSessions(),
                one.getNumberOfActionsWithErrors() + two.getNumberOfActionsWithErrors());
    }
View Full Code Here

        pref.putInt("compiler_errors", d.getNumberOfActionsWithErrors());
    }

    @Override
    protected DataBean read(Preferences pref) throws BackingStoreException {
        return new DataBean(pref.getInt("all", 0), pref.getInt("sessions", 0), pref.getInt("non_null_sessions", 0), pref.getInt("compiler_errors", 0));
    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.SodbeansOutputStatistics.DataBean

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.