Package org.apache.sirona.math

Examples of org.apache.sirona.math.M2AwareStatisticalSummary


        final Map<String, Object> data = event.getData();

        counterDataStore.update(
            new Counter.Key(role(data), String.class.cast(data.get("name"))),
            String.class.cast(data.get("marker")),
            new M2AwareStatisticalSummary(data),
            Number.class.cast(data.get("concurrency")).intValue());
    }
View Full Code Here


    protected CassandraLeafCounter counter(final Counter.Key ckey,
                                           final DynamicDelegatedSerializer<Object> serializer,
                                           final ColumnSlice<String, Object> map,
                                           final String marker) {
        return new CassandraLeafCounter(ckey, this, marker)
            .sync(new M2AwareStatisticalSummary(
                getOrDefault(serializer, map.getColumnByName("mean"), DoubleSerializer.get()).doubleValue(),
                getOrDefault(serializer, map.getColumnByName("variance"), DoubleSerializer.get()).doubleValue(),
                getOrDefault(serializer, map.getColumnByName("n"), LongSerializer.get()).longValue(),
                getOrDefault(serializer, map.getColumnByName("max"), DoubleSerializer.get()).doubleValue(),
                getOrDefault(serializer, map.getColumnByName("min"), DoubleSerializer.get()).doubleValue(),
View Full Code Here

    @Override
    protected void pushCountersByBatch(final Collection<Counter> instances) {
        for (final Counter counter : instances) {
            delegate.getOrCreateCounter(counter.getKey(), marker)
                .update(new M2AwareStatisticalSummary(
                        counter.getMean(), counter.getVariance(), counter.getHits(),
                        counter.getMax(), counter.getMin(), counter.getSum(), counter.getSecondMoment()),
                    counter.currentConcurrency().get());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sirona.math.M2AwareStatisticalSummary

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.