Package com.rackspacecloud.blueflood.cache

Examples of com.rackspacecloud.blueflood.cache.MetadataCache


        // state management for active shards, slots, etc.
        ShardStateIO shardstateIO = new AstyanaxShardStateIO(); // todo: use configuration setting.
        StateManager stateManager = new StateManager(rollupContext, shardstateIO);
        environment.lifecycle().manage(stateManager);
       
        MetadataCache cache = MetadataCache.getInstance();
       
        // create resources.
        final NotDOAHealthCheck notDOA = new NotDOAHealthCheck();
        final BasicIngestResource basicIngestResource = new BasicIngestResource(
                ingestConfiguration,
View Full Code Here


    @Test
    public void testBatchedMetaWritesAndReads() throws Exception {
        final AstyanaxMetadataIO metadataIO = new AstyanaxMetadataIO();
        Table<Locator, String, String> metaTable = HashBasedTable.create();
        final Set<Locator> locators = new HashSet<Locator>();
        MetadataCache cache = MetadataCache.getInstance();

        for (int i = 0; i < 10; i++) {
            Locator loc = Locator.createLocatorFromDbKey(
                    "12345.rackspace.monitoring.enities.enFoo.check_type.agent.cpu.check.chBar.metric.met" + i);
            locators.add(loc);
View Full Code Here

            .withUnboundedQueue()
            .build());


        // RollupRunnable keeps a static one of these. It would be nice if we could register it and share.
        MetadataCache rollupTypeCache = MetadataCache.createLoadingCacheInstance(
                new TimeValue(48, TimeUnit.HOURS),
                Configuration.getInstance().getIntegerProperty(CoreConfig.MAX_ROLLUP_READ_THREADS));
        rollupTypeCacher = new RollupTypeCacher(
                new ThreadPoolBuilder().withName("Rollup type persistence").build(),
                rollupTypeCache,
View Full Code Here

TOP

Related Classes of com.rackspacecloud.blueflood.cache.MetadataCache

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.