Class StorageGroupInfo


  • public class StorageGroupInfo
    extends java.lang.Object
    The storageGroupInfo records the total memory cost of the Storage Group.
    • 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 -