Examples of AScalarDataPoint


Examples of com.ajjpj.asysmon.data.AScalarDataPoint

        final long kernelJiffies = current.kernelJiffies - prev.kernelJiffies;

        final long userPerMill = userJiffies * 10*1000 / diffTime;
        final long kernelPerMill = kernelJiffies * 10*1000 / diffTime;

        data.put(KEY_SELF_USER, new AScalarDataPoint(timestamp, KEY_SELF_USER, userPerMill, 1));
        data.put(KEY_SELF_KERNEL, new AScalarDataPoint(timestamp, KEY_SELF_KERNEL, kernelPerMill, 1));
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

    @Override
    public void contributeMeasurements(Map<String, AScalarDataPoint> data, long timestamp, Map<String, Object> mementos) {
        for(String key: openPerConnectionPool.keySet()) {
            final String ident = (DEFAULT_POOL_IDENTIFIER == key) ? "Open JDBC Connections" : ("Open JDBC Connections (" + key + ")");
            data.put(ident, new AScalarDataPoint(timestamp, ident, openPerConnectionPool.get(key).get(), 0));
        }
        for(String key: activePerConnectionPool.keySet()) {
            final String ident = (DEFAULT_POOL_IDENTIFIER == key) ? "Active JDBC Connections" : ("Active JDBC Connections (" + key + ")");
            data.put(ident, new AScalarDataPoint(timestamp, ident, activePerConnectionPool.get(key).get(), 0));
        }
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

        while ((candidate = traceQueue.poll()) != null) { //TODO limit number per HTTP request?!
            traces.add(candidate);
        }

        final List<AScalarDataPoint> scalars = new ArrayList<AScalarDataPoint>();
        AScalarDataPoint scalar;
        while ((scalar = scalarQueue.poll()) != null) { //TODO limit number per HTTP request?
            scalars.add(scalar);
        }

        if(traces.isEmpty() && scalars.isEmpty()) {
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

            final long sentPackets     = cur.packetsSent.    get(iface) - prev.packetsSent.    get(iface);
            final long collisions      = cur.collisions.     get(iface) - prev.collisions.     get(iface);

            {
                final String key = getKeyReceivedBytes(iface);
                data.put(key, new AScalarDataPoint(timestamp, key, receivedBytes * 10*1000 / diffTime, 1));
            }
            {
                final String key = getKeyReceivedPackets(iface);
                data.put(key, new AScalarDataPoint(timestamp, key, receivedPackets * 10*1000 / diffTime, 1));
            }
            {
                final String key = getKeySentBytes(iface);
                data.put(key, new AScalarDataPoint(timestamp, key, sentBytes * 10*1000 / diffTime, 1));
            }
            {
                final String key = getKeySentPackets(iface);
                data.put(key, new AScalarDataPoint(timestamp, key, sentPackets * 10*1000 / diffTime, 1));
            }
            {
                final String key = getKeyCollisions(iface);
                data.put(key, new AScalarDataPoint(timestamp, key, collisions * 10*1000 / diffTime, 1));
            }
        }
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

    @Override public void prepareMeasurements(Map<String, Object> mementos) {
    }

    @Override public void contributeMeasurements(Map<String, AScalarDataPoint> data, long timestamp, Map<String, Object> mementos) {
        for(String key: timeFracInGcPpm.keySet()) {
            data.put(SCALAR_PREFIX_FRAC_PERCENT + key, new AScalarDataPoint(timestamp, SCALAR_PREFIX_FRAC_PERCENT + key, timeFracInGcPpm.get(key), 4));
        }
        for(String key: gcFrequencyPerMinuteTimes100.keySet()) {
            data.put(SCALAR_PREFIX_FREQ_PER_MINUTE + key, new AScalarDataPoint(timestamp, SCALAR_PREFIX_FREQ_PER_MINUTE + key, gcFrequencyPerMinuteTimes100.get(key), 2));
        }
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

        final int load1 = (int)(Double.parseDouble(raw[0])*100);
        final int load5 = (int)(Double.parseDouble(raw[1])*100);
        final int load15 = (int)(Double.parseDouble(raw[2])*100);

        result.put(IDENT_LOAD_1_MIN, new AScalarDataPoint(timestamp, IDENT_LOAD_1_MIN, load1, 2));
        result.put(IDENT_LOAD_5_MIN, new AScalarDataPoint(timestamp, IDENT_LOAD_5_MIN, load5, 2));
        result.put(IDENT_LOAD_15_MIN, new AScalarDataPoint(timestamp, IDENT_LOAD_15_MIN, load15, 2));
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

        }
        return 512;
    }

    private static void add(Map<String, AScalarDataPoint> data, long timestamp, String key, long value, int numFracDigits) {
        data.put(key, new AScalarDataPoint(timestamp, key, value, numFracDigits));
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

        }
    }

    private void putValue(Map<String, AScalarDataPoint> data, String name, long timestamp, long value) {
        if(value != -1) {
            data.put(name, new AScalarDataPoint(timestamp, name, value, 0));
        }
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

    public final AThreadPoolTrackingDataSink counter = new AThreadPoolTrackingDataSink();

    @Override public void contributeMeasurements(Map<String, AScalarDataPoint> data, long timestamp) {
        for(Map.Entry<String, AtomicInteger> entry: counter.getThreadCounts().entrySet()) {
            final String ident = "Thread Pool " + entry.getKey();
            data.put(ident, new AScalarDataPoint(timestamp, ident, entry.getValue().get(), 0));
        }
    }
View Full Code Here

Examples of com.ajjpj.asysmon.data.AScalarDataPoint

    }

    @Override public void contributeMeasurements(Map<String, AScalarDataPoint> data, long timestamp) {
        for(String key: openPerConnectionPool.keySet()) {
            final String ident = (DEFAULT_POOL_IDENTIFIER == key) ? "Open JDBC Connections" : ("Open JDBC Connections (" + key + ")");
            data.put(ident, new AScalarDataPoint(timestamp, ident, openPerConnectionPool.get(key).get(), 0));
        }
        for(String key: activePerConnectionPool.keySet()) {
            final String ident = (DEFAULT_POOL_IDENTIFIER == key) ? "Active JDBC Connections" : ("Active JDBC Connections (" + key + ")");
            data.put(ident, new AScalarDataPoint(timestamp, ident, activePerConnectionPool.get(key).get(), 0));
        }
    }
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.