Package org.netbeans.server.uihandler.statistics.SnapshotStatistics

Examples of org.netbeans.server.uihandler.statistics.SnapshotStatistics.SnapshotData


    }

    @Override
    protected SnapshotData process(LogRecord rec) {
        if (MESSAGE.equals(rec.getMessage()) && (rec.getParameters() != null) && (rec.getParameters().length > 10)) {
            return new SnapshotData(rec);
        }
        return null;
    }
View Full Code Here


        if (one == null){
            return two;
        }else if (two == null){
            return one;
        }
        SnapshotData result = new SnapshotData(one);
        addAllCounts(result.samples, two.samples);
        addAllCounts(result.avg, two.avg);
        addAllCounts(result.minimum, two.minimum);
        addAllCounts(result.maximum, two.maximum);
        addAllCounts(result.stddev, two.stddev);
View Full Code Here

        writeMap(pref.node(STDDEV), d.stddev);
    }

    @Override
    public SnapshotData read(Preferences pref) throws BackingStoreException {
        return new SnapshotData(
                readCounts(pref.node(SAMPLES)),
                readCounts(pref.node(AVG)),
                readCounts(pref.node(MINIMUM)),
                readCounts(pref.node(MAXIMUM)),
                readCounts(pref.node(STDDEV)));
View Full Code Here

        public boolean isSingleData() {
            return samples.size() == 1l;
        }

        private SnapshotData makeSingle() {
            return new SnapshotData(
                    getSingltonMap(getLastKey(samples)),
                    getSingltonMap(getLastKey(avg)),
                    getSingltonMap(getLastKey(minimum)),
                    getSingltonMap(getLastKey(maximum)),
                    getSingltonMap(getLastKey(stddev))
View Full Code Here

    public ProfilerData getProfilerStatistics(EntityManager em){
        SnapshotStatistics stats = new SnapshotStatistics();
        Preferences pref = DbPreferences.root(this, stats, em);
        try {
            SnapshotData data = stats.read(pref);
            return ProfilerData.create(data);
        } catch (BackingStoreException ex) {
            Logger.getLogger(Logfile.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.SnapshotStatistics.SnapshotData

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.