Class GroupCapacityPersistService


  • @Service
    public class GroupCapacityPersistService
    extends Object
    Group Capacity Service
    Author:
    hexu.hxy
    • Constructor Detail

      • GroupCapacityPersistService

        public GroupCapacityPersistService()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getClusterCapacity

        public Capacity getClusterCapacity()
      • insertGroupCapacity

        public boolean insertGroupCapacity​(GroupCapacity capacity)
      • getClusterUsage

        public int getClusterUsage()
      • incrementUsageWithDefaultQuotaLimit

        public boolean incrementUsageWithDefaultQuotaLimit​(GroupCapacity groupCapacity)
      • incrementUsageWithQuotaLimit

        public boolean incrementUsageWithQuotaLimit​(GroupCapacity groupCapacity)
      • incrementUsage

        public boolean incrementUsage​(GroupCapacity groupCapacity)
      • decrementUsage

        public boolean decrementUsage​(GroupCapacity groupCapacity)
      • updateQuota

        public boolean updateQuota​(String group,
                                   Integer quota)
      • updateMaxSize

        public boolean updateMaxSize​(String group,
                                     Integer maxSize)
      • correctUsage

        public boolean correctUsage​(String group,
                                    Timestamp gmtModified)
      • getCapacityList4CorrectUsage

        public List<GroupCapacity> getCapacityList4CorrectUsage​(long lastId,
                                                                int pageSize)
        获取GroupCapacity列表,只有id、groupId有值
        Parameters:
        lastId - id > lastId
        pageSize - 页数
        Returns:
        GroupCapacity列表
      • deleteGroupCapacity

        public boolean deleteGroupCapacity​(String group)