Class ClusterSchemaQuotaStatistics
java.lang.Object
org.apache.iotdb.confignode.manager.schema.ClusterSchemaQuotaStatistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()longgetDeviceQuotaRemain(Set<Integer> consensusGroupIdSet) Get the remain quota of device for the given consensus group.longlonggetSeriesQuotaRemain(Set<Integer> consensusGroupIdSet) Get the remain quota of series and device for the given consensus group.longvoidsetDeviceThreshold(long deviceThreshold) voidsetSeriesThreshold(long seriesThreshold) voidupdateDeviceUsage(@NotNull Map<Integer, Long> deviceUsage) voidupdateTimeSeriesUsage(@NotNull Map<Integer, Long> seriesUsage)
-
Constructor Details
-
ClusterSchemaQuotaStatistics
public ClusterSchemaQuotaStatistics(long seriesThreshold, long deviceThreshold)
-
-
Method Details
-
updateTimeSeriesUsage
-
updateDeviceUsage
-
getSeriesQuotaRemain
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
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()
-