Package voldemort.store.stats

Examples of voldemort.store.stats.StoreStats


    private HashMap<String, SerializerDefinition> valueSerializerMap;

    public RESTClientFactory(RESTClientFactoryConfig config) {
        this.restClientFactoryConfig = config;
        this.config = new RESTClientConfig(restClientFactoryConfig.getClientConfig());
        this.stats = new StoreStats("aggregate.rest-client-factory");
        this.rawStoreList = new ArrayList<R2Store>();
        // Create the R2 (Netty) Factory object
        // TODO: Add monitoring for R2 factory
        this._clientFactory = new HttpClientFactory();
        this.RESTClientFactoryStats = new StoreClientFactoryStats();
View Full Code Here


    public CoordinatorProxyService(CoordinatorConfig config,
                                   StoreClientConfigService storeClientConfigs) {
        super(ServiceType.COORDINATOR_PROXY, config);
        this.storeClientConfigs = storeClientConfigs;
        this.coordinatorConfig = config;
        this.coordinatorPerfStats = new StoreStats("aggregate.proxy-service");
        this.coordinatorMetadata = new CoordinatorMetadata();
        storeClientConfigs.registerListener(ServiceType.COORDINATOR_PROXY, this);
    }
View Full Code Here

        FailureDetectorConfig failureDetectorConfig = new FailureDetectorConfig(voldemortConfig).setCluster(metadata.getCluster())
                                                                                                .setStoreVerifier(new ServerStoreVerifier(storeFactory,
                                                                                                                                          metadata,
                                                                                                                                          config));
        this.failureDetector = create(failureDetectorConfig, config.isJmxEnabled());
        this.storeStats = new StoreStats("aggregate.storage-service");
        this.routedStoreFactory = new RoutedStoreFactory();
        this.routedStoreFactory.setThreadPool(this.clientThreadPool);
        this.routedStoreConfig = new RoutedStoreConfig(this.voldemortConfig,
                                                       this.metadata.getCluster());
View Full Code Here

            }

            // Wrap everything under the rate limiting store (barring the
            // metadata store)
            if(voldemortConfig.isEnableQuotaLimiting() && !isMetadata) {
                StoreStats currentStoreStats = statStore.getStats();
                FileBackedCachingStorageEngine quotaStore = (FileBackedCachingStorageEngine) storeRepository.getStorageEngine(SystemStoreConstants.SystemStoreName.voldsys$_store_quotas.toString());
                QuotaLimitStats quotaStats = new QuotaLimitStats(this.aggregatedQuotaStats);
                QuotaLimitingStore rateLimitingStore = new QuotaLimitingStore(store,
                                                                              currentStoreStats,
                                                                              quotaStats,
View Full Code Here

            this.identifierString = str;
        } else {
            this.identifierString = "-" + str;
        }
        this.maxBootstrapRetries = config.getMaxBootstrapRetries();
        this.aggregateStats = new StoreStats("aggregate.abstract-store-client-factory");
        this.storeClientFactoryStats = new StoreClientFactoryStats();
        this.clientContextName = config.getClientContextName();
        this.routedStoreConfig = new RoutedStoreConfig(config);
        this.routedStoreConfig.setIdentifierString(this.identifierString);
View Full Code Here

                                                         config.getNumRestServiceStorageThreads(),
                                                         0L,
                                                         TimeUnit.MILLISECONDS,
                                                         new LinkedBlockingQueue<Runnable>(config.getRestServiceStorageThreadPoolQueueSize()),
                                                         threadFactory);
        this.aggregatedStoreStats = new StoreStats("aggregate.rest-pipeline-factory");
        createAndRegisterMBeansForAllStoreStats(config, storeDefinitions);

        storageExecutionHandler = new StorageExecutionHandler(threadPoolExecutor,
                                                              storeStatsMap,
                                                              aggregatedStoreStats,
View Full Code Here

        boolean isJmxEnabled = config.isJmxEnabled();
        for(StoreDefinition storeDefinition: Utils.nonNull(storeDefinitions)) {
            String storeName = storeDefinition.getName();

            // Add to concurrentHashMap
            storeStatsMap.put(storeName, new StoreStats(storeName, aggregatedStoreStats));

            // Register storeStats MBeans for every store
            if(isJmxEnabled) {
                JmxUtils.registerMbean(new StoreStatsJmx(storeStatsMap.get(storeName)),
                                       JmxUtils.createObjectName(JmxUtils.getPackageName(this.getClass())
View Full Code Here

                String storeName = store.getName();

                performanceStats = storeStatsMap.get(storeName);
                if(performanceStats == null) {
                    // Add to concurrentHashMap
                    storeStatsMap.putIfAbsent(storeName, new StoreStats(storeName, aggregatedStoreStats));
                    performanceStats = storeStatsMap.get(storeName);

                    // Register MBeans for new store performance stats
                    if(isJmxEnabled) {
                        JmxUtils.registerMbean(new StoreStatsJmx(performanceStats),
View Full Code Here

TOP

Related Classes of voldemort.store.stats.StoreStats

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.