All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.clustermate.service.metrics.BackendMetrics Maven / Gradle / Ivy

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.service.metrics;

import com.fasterxml.storemate.store.backend.BackendStats;

/**
 * POJO for simple backend metrics
 */
public class BackendMetrics
{
    /**
     * Approximate count as reported by underlying store
     */
    public long count;

    /**
     * Timestamp of time when metrics were gathered
     */
    public long lastUpdated;

    /**
     * Backend-dependant "raw" statistics
     */
    public BackendStats stats;

    // for (de)serializer
    protected BackendMetrics() { }

    public BackendMetrics(long updateTime, long c, BackendStats rawStats)
    {
        lastUpdated = updateTime;
        count = c;
        stats = rawStats;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy