Class ClusterSchemaQuotaStatistics

java.lang.Object
org.apache.iotdb.confignode.manager.schema.ClusterSchemaQuotaStatistics

public class ClusterSchemaQuotaStatistics extends Object
  • Constructor Details

    • ClusterSchemaQuotaStatistics

      public ClusterSchemaQuotaStatistics(long seriesThreshold, long deviceThreshold)
  • Method Details

    • updateTimeSeriesUsage

      public void updateTimeSeriesUsage(@NotNull @NotNull Map<Integer,Long> seriesUsage)
    • updateDeviceUsage

      public void updateDeviceUsage(@NotNull @NotNull Map<Integer,Long> deviceUsage)
    • getSeriesQuotaRemain

      public long getSeriesQuotaRemain(Set<Integer> consensusGroupIdSet)
      Get the remain quota of series and device for the given consensus group.
      Parameters:
      consensusGroupIdSet - the consensus group id set
      Returns:
      the remain quota, >=0
    • getDeviceQuotaRemain

      public long getDeviceQuotaRemain(Set<Integer> consensusGroupIdSet)
      Get the remain quota of device for the given consensus group.
      Parameters:
      consensusGroupIdSet - the consensus group id set
      Returns:
      the remain quota, >=0
    • getSeriesThreshold

      public long getSeriesThreshold()
    • setSeriesThreshold

      public void setSeriesThreshold(long seriesThreshold)
    • getDeviceThreshold

      public long getDeviceThreshold()
    • setDeviceThreshold

      public void setDeviceThreshold(long deviceThreshold)
    • clear

      public void clear()