voldemort.client.protocol.admin
Class AdminClient.QuotaManagementOperations

java.lang.Object
  extended by voldemort.client.protocol.admin.AdminClient.QuotaManagementOperations
Enclosing class:
AdminClient

public class AdminClient.QuotaManagementOperations
extends java.lang.Object


Constructor Summary
AdminClient.QuotaManagementOperations()
           
 
Method Summary
 Versioned<java.lang.String> getQuota(java.lang.String storeName, java.lang.String quotaType)
           
 void reserveMemory(int nodeId, java.util.List<java.lang.String> stores, long sizeInMB)
          Reserve memory for the stores TODO this should also now use the voldsys$_quotas system store
 void reserveMemory(java.util.List<java.lang.Integer> nodeIds, java.util.List<java.lang.String> storeNames, long sizeInMB)
          Reserve memory for the stores TODO this should also now use the voldsys$_quotas system store
 void setQuota(java.lang.String storeName, java.lang.String quotaTypeStr, java.lang.String quotaValue)
           
 void unsetQuota(java.lang.String storeName, java.lang.String quotaType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminClient.QuotaManagementOperations

public AdminClient.QuotaManagementOperations()
Method Detail

setQuota

public void setQuota(java.lang.String storeName,
                     java.lang.String quotaTypeStr,
                     java.lang.String quotaValue)

unsetQuota

public void unsetQuota(java.lang.String storeName,
                       java.lang.String quotaType)

getQuota

public Versioned<java.lang.String> getQuota(java.lang.String storeName,
                                            java.lang.String quotaType)

reserveMemory

public void reserveMemory(int nodeId,
                          java.util.List<java.lang.String> stores,
                          long sizeInMB)
Reserve memory for the stores TODO this should also now use the voldsys$_quotas system store

Parameters:
nodeId - The node id to reserve, -1 for entire cluster
stores - list of stores for which to reserve
sizeInMB - size of reservation

reserveMemory

public void reserveMemory(java.util.List<java.lang.Integer> nodeIds,
                          java.util.List<java.lang.String> storeNames,
                          long sizeInMB)
Reserve memory for the stores TODO this should also now use the voldsys$_quotas system store

Parameters:
nodeIds - The node ids to reserve, -1 for entire cluster
storeNames - list of stores for which to reserve
sizeInMB - size of reservation


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu