Package org.gridgain.grid.cache

Examples of org.gridgain.grid.cache.GridCacheMode


                // Exception will be caught in this method.
                throw new GridException("No cache nodes in topology for cache name: " + cacheName);

            GridNode n = it.next();

            GridCacheMode mode = U.cacheMode(n, cacheName);

            assert mode != null;

            // Map all keys to a single node, if the cache mode is LOCAL.
            if (mode == LOCAL) {
View Full Code Here


    /**
     * Outputs warnings if potential configuration problems are detected.
     */
    private void reportConfigurationProblems() {
        GridCacheMode mode = cctx.config().getCacheMode();

        if (plcEnabled && !cctx.isNear() && mode == PARTITIONED) {
            if (!evictSync) {
                U.warn(log, "Evictions are not synchronized with other nodes in topology " +
                    "which provides 2x-3x better performance but may cause data inconsistency if cache store " +
View Full Code Here

        prj = prj.forCache(ctx.name());

        if (prj.nodes().isEmpty())
            throw new GridTopologyException("Failed to execute query (projection is empty): " + this);

        GridCacheMode mode = ctx.config().getCacheMode();

        if (mode == LOCAL || mode == REPLICATED) {
            Collection<GridNode> nodes = prj.nodes();

            GridNode node = nodes.contains(ctx.localNode()) ? ctx.localNode() : F.rand(nodes);
View Full Code Here

TOP

Related Classes of org.gridgain.grid.cache.GridCacheMode

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.