com.fasterxml.storemate.backend.leveldb.LevelDBBackendStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storemate-backend-leveldb Show documentation
Show all versions of storemate-backend-leveldb Show documentation
Physical store backend using Java version of LevelDB
package com.fasterxml.storemate.backend.leveldb;
import java.util.*;
import com.fasterxml.storemate.store.backend.BackendStats;
import com.fasterxml.storemate.store.backend.BackendStatsConfig;
public class LevelDBBackendStats
extends BackendStats
{
public Map stats;
public LevelDBBackendStats() { this(null, 0L, null); }
public LevelDBBackendStats(BackendStatsConfig config, long creationTime,
Map src)
{
super("leveldb", creationTime, config);
stats = src;
}
@Override
public Map extraStats(Map base) {
if (stats != null) {
base.put("stats", stats);
}
return base;
}
}