Uses of Interface
com.privatechain.core.spi.BlockchainStorage
Packages that use BlockchainStorage
Package
Description
Role-Based Access Control (RBAC) — assigns and enforces capability roles for
each connected node address (FR-AC-02, FR-AC-03).
Assembly layer — the single location where all library modules are composed.
BlockchainStorage implementations and chain
export utilities for the private-blockchain library.File-system storage backend — persists each block as an individual JSON file
in a configurable directory (FR-STOR-05).
LevelDB persistent storage backend — crash-safe block persistence via the
leveldbjni native library (FR-STOR-03, NFR-REL-01).In-memory storage backend — ephemeral, zero-dependency block storage backed by
a
LinkedHashMap (FR-STOR-02).RocksDB persistent storage backend — high-throughput block persistence via the
rocksdbjni native library (FR-STOR-04).-
Uses of BlockchainStorage in com.privatechain.access.rbac
Constructors in com.privatechain.access.rbac with parameters of type BlockchainStorageModifierConstructorDescriptionPermissionManager(BlockchainStorage storage) Constructs aPermissionManagerthat persists role assignments to the providedBlockchainStorage. -
Uses of BlockchainStorage in com.privatechain.core.builder
Methods in com.privatechain.core.builder that return BlockchainStorageModifier and TypeMethodDescriptionBlockchain.getStorage()Returns the storage backend used by this chain.BlockchainConfig.getStorage()Returns the configured storage backend.Methods in com.privatechain.core.builder with parameters of type BlockchainStorageModifier and TypeMethodDescriptionBlockchainConfig.Builder.storage(BlockchainStorage storage) Sets the storage backend.Constructors in com.privatechain.core.builder with parameters of type BlockchainStorageModifierConstructorDescriptionBlockchain(ConsensusEngine consensusEngine, BlockchainStorage storage, BlockchainEventBus eventBus) Constructs aBlockchainwith the given dependencies. -
Uses of BlockchainStorage in com.privatechain.storage
Methods in com.privatechain.storage with parameters of type BlockchainStorageModifier and TypeMethodDescriptionstatic voidChainExporter.fromJson(String json, BlockchainStorage storage) Deserializes a JSON array produced byChainExporter.toJson(com.privatechain.core.builder.Blockchain)and persists each block to the supplied storage backend (FR-SER-02). -
Uses of BlockchainStorage in com.privatechain.storage.fs
Classes in com.privatechain.storage.fs that implement BlockchainStorageModifier and TypeClassDescriptionfinal classFile system backedBlockchainStorageimplementation that stores each block as a separate JSON file. -
Uses of BlockchainStorage in com.privatechain.storage.leveldb
Classes in com.privatechain.storage.leveldb that implement BlockchainStorageModifier and TypeClassDescriptionfinal classCrash-safe, persistentBlockchainStorageimplementation backed by LevelDB. -
Uses of BlockchainStorage in com.privatechain.storage.memory
Classes in com.privatechain.storage.memory that implement BlockchainStorageModifier and TypeClassDescriptionfinal classHashMap-backed in-memory implementation ofBlockchainStorage. -
Uses of BlockchainStorage in com.privatechain.storage.rocksdb
Classes in com.privatechain.storage.rocksdb that implement BlockchainStorageModifier and TypeClassDescriptionfinal classHigh write-throughput, crash-safeBlockchainStorageimplementation backed by RocksDB.