类 ExternalHistoryConfigInfoPersistServiceImpl
- java.lang.Object
-
- com.alibaba.nacos.config.server.service.repository.extrnal.ExternalHistoryConfigInfoPersistServiceImpl
-
- 所有已实现的接口:
HistoryConfigInfoPersistService
@Conditional(ConditionOnExternalStorage.class) @Service("externalHistoryConfigInfoPersistServiceImpl") public class ExternalHistoryConfigInfoPersistServiceImpl extends java.lang.Object implements HistoryConfigInfoPersistService
ExternalHistoryConfigInfoPersistServiceImpl.- 作者:
- lixiaoshuang
-
-
字段概要
字段 修饰符和类型 字段 说明 private DataSourceServicedataSourceServiceprotected org.springframework.jdbc.core.JdbcTemplatejtprivate com.alibaba.nacos.plugin.datasource.MapperManagermapperManagerprotected org.springframework.transaction.support.TransactionTemplatetjt
-
构造器概要
构造器 构造器 说明 ExternalHistoryConfigInfoPersistServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.List<ConfigInfo>convertDeletedConfig(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> list)Convert delete config.<E> PaginationHelper<E>createPaginationHelper()create Pagination utils.ConfigHistoryInfodetailConfigHistory(java.lang.Long nid)Get history config detail.ConfigHistoryInfodetailPreviousConfigHistory(java.lang.Long id)Get previous config detail.Page<ConfigHistoryInfo>findConfigHistory(java.lang.String dataId, java.lang.String group, java.lang.String tenant, int pageNo, int pageSize)List configuration history change record.intfindConfigHistoryCountByTime(java.sql.Timestamp startTime)Get the number of configurations before the specified time.java.util.List<ConfigInfo>findDeletedConfig(java.sql.Timestamp startTime, java.sql.Timestamp endTime)Query deleted config.voidinsertConfigHistoryAtomic(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.voidremoveConfigHistory(java.sql.Timestamp startTime, int limitSize)Delete data before startTime.
-
-
-
字段详细资料
-
dataSourceService
private DataSourceService dataSourceService
-
jt
protected org.springframework.jdbc.core.JdbcTemplate jt
-
tjt
protected org.springframework.transaction.support.TransactionTemplate tjt
-
mapperManager
private com.alibaba.nacos.plugin.datasource.MapperManager mapperManager
-
-
方法详细资料
-
createPaginationHelper
public <E> PaginationHelper<E> createPaginationHelper()
从接口复制的说明:HistoryConfigInfoPersistServicecreate Pagination utils.- 指定者:
createPaginationHelper在接口中HistoryConfigInfoPersistService- 类型参数:
E- Generic object- 返回:
PaginationHelper
-
convertDeletedConfig
public java.util.List<ConfigInfo> convertDeletedConfig(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> list)
从接口复制的说明:HistoryConfigInfoPersistServiceConvert delete config.- 指定者:
convertDeletedConfig在接口中HistoryConfigInfoPersistService- 参数:
list- origin data- 返回:
ConfigInfolist
-
insertConfigHistoryAtomic
public void insertConfigHistoryAtomic(long id, ConfigInfo configInfo, java.lang.String srcIp, java.lang.String srcUser, java.sql.Timestamp time, java.lang.String ops)从接口复制的说明:HistoryConfigInfoPersistServiceUpdate change records; database atomic operations, minimal sql actions, no business encapsulation.- 指定者:
insertConfigHistoryAtomic在接口中HistoryConfigInfoPersistService- 参数:
id- idconfigInfo- config infosrcIp- ipsrcUser- usertime- timeops- ops type
-
removeConfigHistory
public void removeConfigHistory(java.sql.Timestamp startTime, int limitSize)从接口复制的说明:HistoryConfigInfoPersistServiceDelete data before startTime.- 指定者:
removeConfigHistory在接口中HistoryConfigInfoPersistService- 参数:
startTime- start timelimitSize- limit size
-
findDeletedConfig
public java.util.List<ConfigInfo> findDeletedConfig(java.sql.Timestamp startTime, java.sql.Timestamp endTime)
从接口复制的说明:HistoryConfigInfoPersistServiceQuery deleted config.- 指定者:
findDeletedConfig在接口中HistoryConfigInfoPersistService- 参数:
startTime- start timeendTime- end time- 返回:
ConfigInfolist
-
findConfigHistory
public Page<ConfigHistoryInfo> findConfigHistory(java.lang.String dataId, java.lang.String group, java.lang.String tenant, int pageNo, int pageSize)
从接口复制的说明:HistoryConfigInfoPersistServiceList configuration history change record.- 指定者:
findConfigHistory在接口中HistoryConfigInfoPersistService- 参数:
dataId- data Idgroup- grouptenant- tenantpageNo- nopageSize- size- 返回:
PagewithConfigHistoryInfogeneration
-
detailConfigHistory
public ConfigHistoryInfo detailConfigHistory(java.lang.Long nid)
从接口复制的说明:HistoryConfigInfoPersistServiceGet history config detail.- 指定者:
detailConfigHistory在接口中HistoryConfigInfoPersistService- 参数:
nid- nid- 返回:
ConfigHistoryInfo
-
detailPreviousConfigHistory
public ConfigHistoryInfo detailPreviousConfigHistory(java.lang.Long id)
从接口复制的说明:HistoryConfigInfoPersistServiceGet previous config detail.- 指定者:
detailPreviousConfigHistory在接口中HistoryConfigInfoPersistService- 参数:
id- id- 返回:
ConfigHistoryInfo
-
findConfigHistoryCountByTime
public int findConfigHistoryCountByTime(java.sql.Timestamp startTime)
从接口复制的说明:HistoryConfigInfoPersistServiceGet the number of configurations before the specified time.- 指定者:
findConfigHistoryCountByTime在接口中HistoryConfigInfoPersistService- 参数:
startTime- start time- 返回:
- count of history config that meet the conditions
-
-