Package com.volantis.mcs.runtime.policies.cache

Examples of com.volantis.mcs.runtime.policies.cache.PolicyCachePartitionConstraintsImpl


        // The default partition size of a partition is 50% of the total
        // size of the partition, or a minimum of 1.
        int defaultPartitionSize = Math.max(totalSize / 2, 1);

        PolicyCachePartitionConstraints partitionConstraints
                = new PolicyCachePartitionConstraintsImpl(maxPartitionSize,
                        defaultPartitionSize, cacheControlConstraints);
        return partitionConstraints;
    }
View Full Code Here


        configuration.setDefaultRetryInterval(new Integer(2));

        constraints = new CacheControlConstraints(configuration);

        PolicyCachePartitionConstraints partitionConstraints =
                new PolicyCachePartitionConstraintsImpl(50, 60, constraints);

        builder.setLocalPartitionConstraints(partitionConstraints);
        builder.setRemotePartitionConstraints(partitionConstraints);
        builder.addDefaultLocalPolicySpecificGroup(PolicyType.AUDIO, 5);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.policies.cache.PolicyCachePartitionConstraintsImpl

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.