Class StorageGroupInfo
- java.lang.Object
-
- org.apache.iotdb.db.engine.storagegroup.StorageGroupInfo
-
public class StorageGroupInfo extends java.lang.ObjectThe storageGroupInfo records the total memory cost of the Storage Group.
-
-
Constructor Summary
Constructors Constructor Description StorageGroupInfo(DataRegion dataRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStorageGroupMemCost(long cost)voidcloseTsFileProcessorAndReportToSystem(TsFileProcessor tsFileProcessor)When a TsFileProcessor is closing, remove it from reportedTsps, and report to systemInfo to update SG cost.java.util.List<TsFileProcessor>getAllReportedTsp()DataRegiongetDataRegion()longgetMemCost()voidinitTsFileProcessorInfo(TsFileProcessor tsFileProcessor)When create a new TsFileProcessor, call this methodbooleanneedToReportToSystem()voidreleaseStorageGroupMemCost(long cost)voidsetLastReportedSize(long size)
-
-
-
Constructor Detail
-
StorageGroupInfo
public StorageGroupInfo(DataRegion dataRegion)
-
-
Method Detail
-
getDataRegion
public DataRegion getDataRegion()
-
initTsFileProcessorInfo
public void initTsFileProcessorInfo(TsFileProcessor tsFileProcessor)
When create a new TsFileProcessor, call this method
-
addStorageGroupMemCost
public void addStorageGroupMemCost(long cost)
-
releaseStorageGroupMemCost
public void releaseStorageGroupMemCost(long cost)
-
getMemCost
public long getMemCost()
-
getAllReportedTsp
public java.util.List<TsFileProcessor> getAllReportedTsp()
-
needToReportToSystem
public boolean needToReportToSystem()
-
setLastReportedSize
public void setLastReportedSize(long size)
-
closeTsFileProcessorAndReportToSystem
public void closeTsFileProcessorAndReportToSystem(TsFileProcessor tsFileProcessor)
When a TsFileProcessor is closing, remove it from reportedTsps, and report to systemInfo to update SG cost.- Parameters:
tsFileProcessor-
-
-