接口 HistoryConfigInfoPersistService

    • 方法详细资料

      • convertDeletedConfig

        java.util.List<ConfigInfo> convertDeletedConfig​(java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> list)
        Convert delete config.
        参数:
        list - origin data
        返回:
        ConfigInfo list
      • insertConfigHistoryAtomic

        void insertConfigHistoryAtomic​(long id,
                                       ConfigInfo configInfo,
                                       java.lang.String srcIp,
                                       java.lang.String srcUser,
                                       java.sql.Timestamp time,
                                       java.lang.String ops)
        Update change records; database atomic operations, minimal sql actions, no business encapsulation.
        参数:
        id - id
        configInfo - config info
        srcIp - ip
        srcUser - user
        time - time
        ops - ops type
      • removeConfigHistory

        void removeConfigHistory​(java.sql.Timestamp startTime,
                                 int limitSize)
        Delete data before startTime.
        参数:
        startTime - start time
        limitSize - limit size
      • findDeletedConfig

        java.util.List<ConfigInfo> findDeletedConfig​(java.sql.Timestamp startTime,
                                                     java.sql.Timestamp endTime)
        Query deleted config.
        参数:
        startTime - start time
        endTime - end time
        返回:
        ConfigInfo list
      • findConfigHistory

        Page<ConfigHistoryInfo> findConfigHistory​(java.lang.String dataId,
                                                  java.lang.String group,
                                                  java.lang.String tenant,
                                                  int pageNo,
                                                  int pageSize)
        List configuration history change record.
        参数:
        dataId - data Id
        group - group
        tenant - tenant
        pageNo - no
        pageSize - size
        返回:
        Page with ConfigHistoryInfo generation
      • findConfigHistoryCountByTime

        @Deprecated
        int findConfigHistoryCountByTime​(java.sql.Timestamp startTime)
        已过时。
        Get the number of configurations before the specified time.
        参数:
        startTime - start time
        返回:
        count of history config that meet the conditions