CacheExporter

@Singleton
class CacheExporter @Inject constructor(database: Database, alloc: ByteBufAllocator)

Constructors

Link copied to clipboard
@Inject
constructor(database: Database, alloc: ByteBufAllocator)

Types

Link copied to clipboard
data class Archive(val resolved: Boolean, val stats: CacheExporter.ArchiveStats?)
Link copied to clipboard
data class ArchiveStats(val validGroups: Long, val groups: Long, val validKeys: Long, val keys: Long, val size: Long, val blocks: Long)
Link copied to clipboard
data class Build(val major: Int, val minor: Int?) : Comparable<CacheExporter.Build>
Link copied to clipboard
data class Cache(val id: Int, val sources: List<CacheExporter.Source>, val updates: List<String>, val stats: CacheExporter.Stats?, val archives: List<CacheExporter.Archive>, val indexes: List<CacheExporter.IndexStats>?, val masterIndex: Js5MasterIndex?, val checksumTable: ChecksumTable?)
Link copied to clipboard
data class CacheSummary(val id: Int, val scope: String, val game: String, val environment: String, val language: String, val builds: SortedSet<CacheExporter.Build>, val timestamp: Instant?, val sources: SortedSet<String>, val stats: CacheExporter.Stats?)
Link copied to clipboard
data class IndexStats(val validFiles: Long, val files: Long, val size: Long, val blocks: Long)
Link copied to clipboard
data class Key(val archive: Int, val group: Int, val nameHash: Int?, val name: String?, val mapSquare: Int?, val key: SymmetricKey)
Link copied to clipboard
data class Source(val game: String, val environment: String, val language: String, val build: CacheExporter.Build?, val timestamp: Instant?, val name: String?, val description: String?, val url: String?)
Link copied to clipboard
data class Stats(val validIndexes: Long, val indexes: Long, val validGroups: Long, val groups: Long, val validKeys: Long, val keys: Long, val size: Long, val blocks: Long)

Functions

Link copied to clipboard
fun export(scope: String, id: Int, storeFactory: (Boolean) -> Store)
Link copied to clipboard
suspend fun exportGroup(scope: String, id: Int, archive: Int, group: Int): ByteBuf?
Link copied to clipboard
suspend fun exportKeys(scope: String, id: Int): List<CacheExporter.Key>
Link copied to clipboard
suspend fun get(scope: String, id: Int): CacheExporter.Cache?
Link copied to clipboard
suspend fun getFileName(scope: String, id: Int): String?
Link copied to clipboard
Link copied to clipboard
suspend fun totalSize(): Long