public class J7FileStatsStorage extends Object implements StatsStorage
StatsStorage implementation, based on SQLite.
Note: Where possible, use FileStatsStorage which should be faster (is based
on MapDB).
Obviously, the storage formats for J7FileStatsStorage and FileStatsStorage are
incompatible.| Constructor and Description |
|---|
J7FileStatsStorage(File file) |
public J7FileStatsStorage(@NonNull
File file)
file - Storage location for the statsprotected List<StatsStorageEvent> checkStorageEvents(Persistable p)
public void putStorageMetaData(StorageMetaData storageMetaData)
putStorageMetaData in interface StatsStorageRouterpublic void putStorageMetaData(Collection<? extends StorageMetaData> collection)
putStorageMetaData in interface StatsStorageRouterpublic void putStaticInfo(Persistable staticInfo)
putStaticInfo in interface StatsStorageRouterpublic void putStaticInfo(Collection<? extends Persistable> collection)
putStaticInfo in interface StatsStorageRouterpublic void putUpdate(Persistable update)
putUpdate in interface StatsStorageRouterpublic void putUpdate(Collection<? extends Persistable> collection)
putUpdate in interface StatsStorageRouterpublic void close()
throws IOException
close in interface StatsStorageIOExceptionpublic boolean isClosed()
isClosed in interface StatsStoragepublic List<String> listSessionIDs()
listSessionIDs in interface StatsStoragepublic boolean sessionExists(String sessionID)
sessionExists in interface StatsStoragepublic Persistable getStaticInfo(String sessionID, String typeID, String workerID)
getStaticInfo in interface StatsStoragepublic List<Persistable> getAllStaticInfos(String sessionID, String typeID)
getAllStaticInfos in interface StatsStoragepublic List<String> listTypeIDsForSession(String sessionID)
listTypeIDsForSession in interface StatsStoragepublic List<String> listWorkerIDsForSession(String sessionID)
listWorkerIDsForSession in interface StatsStoragepublic List<String> listWorkerIDsForSessionAndType(String sessionID, String typeID)
listWorkerIDsForSessionAndType in interface StatsStoragepublic int getNumUpdateRecordsFor(String sessionID)
getNumUpdateRecordsFor in interface StatsStoragepublic int getNumUpdateRecordsFor(String sessionID, String typeID, String workerID)
getNumUpdateRecordsFor in interface StatsStoragepublic Persistable getLatestUpdate(String sessionID, String typeID, String workerID)
getLatestUpdate in interface StatsStoragepublic Persistable getUpdate(String sessionID, String typeId, String workerID, long timestamp)
getUpdate in interface StatsStoragepublic List<Persistable> getLatestUpdateAllWorkers(String sessionID, String typeID)
getLatestUpdateAllWorkers in interface StatsStoragepublic List<Persistable> getAllUpdatesAfter(String sessionID, String typeID, String workerID, long timestamp)
getAllUpdatesAfter in interface StatsStoragepublic List<Persistable> getAllUpdatesAfter(String sessionID, String typeID, long timestamp)
getAllUpdatesAfter in interface StatsStoragepublic long[] getAllUpdateTimes(String sessionID, String typeID, String workerID)
getAllUpdateTimes in interface StatsStoragepublic List<Persistable> getUpdates(String sessionID, String typeID, String workerID, long[] timestamps)
getUpdates in interface StatsStoragepublic StorageMetaData getStorageMetaData(String sessionID, String typeID)
getStorageMetaData in interface StatsStoragepublic void registerStatsStorageListener(StatsStorageListener listener)
registerStatsStorageListener in interface StatsStoragepublic void deregisterStatsStorageListener(StatsStorageListener listener)
deregisterStatsStorageListener in interface StatsStoragepublic void removeAllListeners()
removeAllListeners in interface StatsStoragepublic List<StatsStorageListener> getListeners()
getListeners in interface StatsStorageprotected void notifyListeners(List<StatsStorageEvent> sses)
Copyright © 2019. All rights reserved.