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

com.fasterxml.clustermate.service.bdb.CleanBDBStats Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.storemate.backend.bdbje.BDBBackendStats;
import com.sleepycat.je.EnvironmentStats;

/**
 * Helper class we only need for filtering out some unwanted
 * properties.
 */
public class CleanBDBStats // public for testing
    extends BDBBackendStats
{
    // this is an alternative to mix-ins, which would also work
    @JsonIgnoreProperties({
        "tips", "statGroups", "statGroupsMap" // names keep changing...
        /* 26-Sep-2013, tatu: Apparently these cause probs with 5.0.84:
         *   Curse: these keep on changing on version-by-version basis...
         */
        ,"avgBatchCacheMode", "avgBatchCritical", "avgBatchDaemon", "avgBatchEvictorThread", "avgBatchManual"
    })
    public EnvironmentStats getEnv() {
        return env;
    }

    public CleanBDBStats(BDBBackendStats raw)
    {
        super(raw);
        db = raw.db;
        env = raw.env;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy