Package voldemort.store.quota

Examples of voldemort.store.quota.QuotaType


    }

    public class QuotaManagementOperations {

        public void setQuota(String storeName, String quotaTypeStr, String quotaValue) {
            QuotaType quotaType = QuotaType.valueOf(quotaTypeStr);
            if(quotaType != QuotaType.GET_THROUGHPUT && quotaType != QuotaType.PUT_THROUGHPUT) {
                // TODO : Convert this to warning to exception once existing
                // clients are upgraded. Probably around End of 2014.
                logger.warn(" Quota only supports GET (Read) / PUT (Write) throughputs. Other throughput types are deprecated for easier use"
                            + "StoreName: " + storeName + " QuotaType: " + quotaType);
View Full Code Here


        throughPutMap.put(new Pair<Integer, QuotaType>(1, QuotaType.GET_THROUGHPUT), 20);

        for(Entry<Pair<Integer, QuotaType>, Integer> throughPut: throughPutMap.entrySet()) {

            int nodeId = throughPut.getKey().getFirst();
            QuotaType type = throughPut.getKey().getSecond();
            int value = throughPut.getValue();

            VectorClock clock = VectorClockUtils.makeClockWithCurrentTime(cluster.getNodeIds());
            NodeValue<ByteArray, byte[]> operationValue = new NodeValue<ByteArray, byte[]>(nodeId,
                                                                                           new ByteArray(getKeyBytes(type)),
View Full Code Here

TOP

Related Classes of voldemort.store.quota.QuotaType

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.