voldemort.client.protocol.admin
Class AdminClient.QuotaManagementOperations
java.lang.Object
voldemort.client.protocol.admin.AdminClient.QuotaManagementOperations
- Enclosing class:
- AdminClient
public class AdminClient.QuotaManagementOperations
- extends java.lang.Object
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 |
AdminClient.QuotaManagementOperations
public AdminClient.QuotaManagementOperations()
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 clusterstores
- list of stores for which to reservesizeInMB
- 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 clusterstoreNames
- list of stores for which to reservesizeInMB
- size of reservation
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu