@Service public class GroupCapacityPersistService extends Object
| Constructor and Description |
|---|
GroupCapacityPersistService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
correctUsage(String group,
Timestamp gmtModified) |
boolean |
decrementUsage(GroupCapacity groupCapacity) |
boolean |
deleteGroupCapacity(String group) |
List<GroupCapacity> |
getCapacityList4CorrectUsage(long lastId,
int pageSize)
获取GroupCapacity列表,只有id、groupId有值
|
Capacity |
getClusterCapacity() |
int |
getClusterUsage() |
GroupCapacity |
getGroupCapacity(String groupId) |
boolean |
incrementUsage(GroupCapacity groupCapacity) |
boolean |
incrementUsageWithDefaultQuotaLimit(GroupCapacity groupCapacity) |
boolean |
incrementUsageWithQuotaLimit(GroupCapacity groupCapacity) |
void |
init() |
boolean |
insertGroupCapacity(GroupCapacity capacity) |
boolean |
updateGroupCapacity(String group,
Integer quota,
Integer maxSize,
Integer maxAggrCount,
Integer maxAggrSize) |
boolean |
updateMaxSize(String group,
Integer maxSize) |
boolean |
updateQuota(String group,
Integer quota) |
@PostConstruct public void init()
public GroupCapacity getGroupCapacity(String groupId)
public Capacity getClusterCapacity()
public boolean insertGroupCapacity(GroupCapacity capacity)
public int getClusterUsage()
public boolean incrementUsageWithDefaultQuotaLimit(GroupCapacity groupCapacity)
public boolean incrementUsageWithQuotaLimit(GroupCapacity groupCapacity)
public boolean incrementUsage(GroupCapacity groupCapacity)
public boolean decrementUsage(GroupCapacity groupCapacity)
public boolean updateGroupCapacity(String group, Integer quota, Integer maxSize, Integer maxAggrCount, Integer maxAggrSize)
public List<GroupCapacity> getCapacityList4CorrectUsage(long lastId, int pageSize)
lastId - id > lastIdpageSize - 页数public boolean deleteGroupCapacity(String group)
Copyright © 2018–2019 Alibaba Group. All rights reserved.