Examples of LongStat


Examples of com.sleepycat.je.utilint.LongStat

        logger = LoggerUtils.getLogger(getClass());

        statistics = new StatGroup(VLSNIndexStatDefinition.GROUP_NAME,
                                   VLSNIndexStatDefinition.GROUP_DESC);
        nHeadBucketsDeleted =
            new LongStat(statistics,
                         VLSNIndexStatDefinition.N_HEAD_BUCKETS_DELETED);
        nTailBucketsDeleted =
            new LongStat(statistics,
                         VLSNIndexStatDefinition.N_TAIL_BUCKETS_DELETED);

        init(mappingDbName,
             vlsnStride,
             vlsnMaxMappings,
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        StatGroup stats = new StatGroup(EvictorStatDefinition.GROUP_NAME,
                              EvictorStatDefinition.GROUP_DESC);

        long bstat = nCachedBINs.get();
        long istat = nCachedUpperINs.get();
        new LongStat(stats, EvictorStatDefinition.CACHED_UPPER_INS,
                     istat);
        new LongStat(stats, EvictorStatDefinition.CACHED_BINS,
                     bstat);

        // verifyPrint(istat, bstat);

        return stats;
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        stats = new StatGroup(LogStatDefinition.LBF_GROUP_NAME,
                              LogStatDefinition.LBF_GROUP_DESC);
        nNotResident = new AtomicLongStat(stats, LBFP_NOT_RESIDENT);
        nCacheMiss = new AtomicLongStat(stats, LBFP_MISS);
        logBuffers = new IntStat(stats, LBFP_LOG_BUFFERS);
        nBufferBytes = new LongStat(stats, LBFP_BUFFER_BYTES);
    }
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        this.envImpl = envImpl;

        /* Do the stats definitions. */
        stats = new StatGroup(GROUP_NAME, GROUP_DESC);
        nEvictPasses = new LongStat(stats, EVICTOR_EVICT_PASSES);
        nNodesScanned = new LongStat(stats, EVICTOR_NODES_SCANNED);
        nNodesEvicted = new LongStat(stats, EVICTOR_NODES_EVICTED);
        nRootNodesEvicted = new LongStat(stats, EVICTOR_ROOT_NODES_EVICTED);
        nBINsStripped = new LongStat(stats, EVICTOR_BINS_STRIPPED);

        nLNFetch = new AtomicLongStat(stats, LN_FETCH);
        nBINFetch = new AtomicLongStat(stats, BIN_FETCH);
        nUpperINFetch = new AtomicLongStat(stats, UPPER_IN_FETCH);
        nLNFetchMiss = new AtomicLongStat(stats, LN_FETCH_MISS);
        nBINFetchMiss = new AtomicLongStat(stats, BIN_FETCH_MISS);
        nUpperINFetchMiss = new AtomicLongStat(stats, UPPER_IN_FETCH_MISS);
        nThreadUnavailable = new AtomicLongStat(stats, THREAD_UNAVAILABLE);

        nINSparseTarget =  new AtomicLong(0);
        nINNoTarget = new AtomicLong(0);
        nINCompactKey = new AtomicLong(0);

        EnumSet<EvictionSource> allSources =
            EnumSet.allOf(EvictionSource.class);
        int numSources = allSources.size();
           
        binEvictSources = new AtomicLongStat[numSources];
        inEvictSources = new AtomicLongStat[numSources];
        numBatches = new AtomicLong[numSources];   
        numBatchTargets = new AtomicLong[numSources];
        batchesPerSource = new LongStat[numSources];
        avgBatchPerSource = new LongStat[numSources];
           
        for (EvictionSource source : allSources) {
            int index = source.ordinal();
            binEvictSources[index] =
                new AtomicLongStat(stats, source.getBINStatDef());
            inEvictSources[index] =
                new AtomicLongStat(stats, source.getUpperINStatDef());
            numBatches[index] = new AtomicLong();
            numBatchTargets[index] = new AtomicLong();
            batchesPerSource[index] =
                new LongStat(stats, source.getNumBatchesStatDef());
            avgBatchPerSource[index] =
                new LongStat(stats, source.getAvgBatchStatDef());
        }

        selector = makeSelector();
        arbiter = new Arbiter(envImpl);

View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        /*
         * These stats are not cleared. They represent the current state of
         * the cache.
         */
        new LongStat(copy, CACHED_IN_SPARSE_TARGET, nINSparseTarget.get());
        new LongStat(copy, CACHED_IN_NO_TARGET, nINNoTarget.get());
        new LongStat(copy, CACHED_IN_COMPACT_KEY, nINCompactKey.get());
        copy.addAll(selector.loadStats(config));
        copy.addAll(arbiter.loadStats(config));

        /*
         * The number and average size of batches, by type of caller, is
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        nodesPerScan = configManager.getInt
            (EnvironmentParams.EVICTOR_NODES_PER_SCAN);
        evictByLruOnly = configManager.getBoolean
            (EnvironmentParams.EVICTOR_LRU_ONLY);
        stats = new StatGroup(GROUP_NAME, GROUP_DESC);
        nNodesSelected = new LongStat(stats, EVICTOR_NODES_SELECTED);
    }
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

            exceptionListenerUsers = new HashSet<ExceptionListenerUser>();

            /* Do the stats definition. */
            stats = new StatGroup(ENV_GROUP_NAME, ENV_GROUP_DESC);
            relatchesRequired =
                new LongStat(stats, ENVIMPL_RELATCHES_REQUIRED);

            /* Set up configuration parameters */
            configManager = initConfigManager(envConfig, repConfigProxy);
            configObservers = new ArrayList<EnvConfigObserver>();
            addConfigObserver(this);
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        this.root = null;
        this.database = database;

        /* Do the stats definitions. */
        stats = new StatGroup(GROUP_NAME, GROUP_DESC);
        relatchesRequired = new LongStat(stats, BTREE_RELATCHES_REQUIRED);
        rootSplits = new IntStat(stats, BTREE_ROOT_SPLITS);
    }
View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        }
        this.envImpl = envImpl;
        memoryBudget = envImpl.getMemoryBudget();

        stats = new StatGroup(GROUP_NAME, GROUP_DESC);
        nRequests = new LongStat(stats, LOCK_REQUESTS);
        nWaits = new LongStat(stats, LOCK_WAITS);

        /* Initialize mutable properties and register for notifications. */
        envConfigUpdate(configMgr, null);
        envImpl.addConfigObserver(this);

View Full Code Here

Examples of com.sleepycat.je.utilint.LongStat

        nActiveSerializable = new AtomicInteger(0);

        /* Do the stats definition. */
        stats = new StatGroup("Transaction", "Transaction statistics");
        nActive = new IntStat(stats, TXN_ACTIVE);
        numBegins = new LongStat(stats, TXN_BEGINS);
        numCommits = new LongStat(stats, TXN_COMMITS);
        numAborts = new LongStat(stats, TXN_ABORTS);
        numXAPrepares = new LongStat(stats, TXN_XAPREPARES);
        numXACommits = new LongStat(stats, TXN_XACOMMITS);
        numXAAborts = new LongStat(stats, TXN_XAABORTS);
        activeTxns = new ActiveTxnArrayStat(stats, TXN_ACTIVE_TXNS);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.