Package voldemort.store.configuration

Examples of voldemort.store.configuration.ConfigurationStorageEngine


                }
            }
        }

        // Create a STORES configuration engine for STORES sub-directory
        StorageEngine<String, String, String> storesEngine = new ConfigurationStorageEngine(MetadataStore.STORE_DEFINITIONS_STORE_NAME,
                                                                                            storeDefDirPath);

        Store<String, String, String> innerStore = new ConfigurationStorageEngine(MetadataStore.METADATA_STORE_NAME,
                                                                                  dir.getAbsolutePath());
        return new MetadataStore(innerStore, storesEngine, nodeId);
    }
View Full Code Here


        this.checkHostName();
        this.validateRestServiceConfiguration();
        this.storeRepository = new StoreRepository(config.isJmxEnabled());
        // update cluster details in metaDataStore
        ConfigurationStorageEngine metadataInnerEngine = new ConfigurationStorageEngine("metadata-config-store",
                                                                                        voldemortConfig.getMetadataDirectory());
        // transforms are not required here
        VectorClock version = new VectorClock();
        version.incrementVersion(voldemortConfig.getNodeId(), System.currentTimeMillis());
        metadataInnerEngine.put(MetadataStore.CLUSTER_KEY,
                                new Versioned<String>(new ClusterMapper().writeCluster(cluster),
                                                      version),
                                null);
        this.metadata = new MetadataStore(metadataInnerEngine, voldemortConfig.getNodeId());
View Full Code Here

TOP

Related Classes of voldemort.store.configuration.ConfigurationStorageEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.