Class StoreBuilder


  • public class StoreBuilder
    extends Object
    A helper class to build storage backends for a tree store.
    • Constructor Detail

      • StoreBuilder

        public StoreBuilder()
    • Method Detail

      • build

        public static Store build​(String config)
                           throws IllegalArgumentException
        Build a store. The configuration options are passed as a list of properties. - empty string or null: in-memory. - "type=memory" - "type=file": file system, with "dir" directory - "type=stats.another": statistics wrapper around another - "type=slow.another": slow wrapper around another (to simulate slowness) - "type=pack": pack file, with "file" file name - "type=log.another": log wrapper around another (to analyze problems) - "maxFileSizeBytes=16000000": the maximum file size in bytes
        Parameters:
        config - the config
        Returns:
        a store
        Throws:
        IllegalArgumentException