public class EmbeddedStorageContextUtils extends Object
| 构造器和说明 |
|---|
EmbeddedStorageContextUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addSqlContext(String sql,
Object... args)
Add sql context.
|
static void |
cleanAllContext() |
static boolean |
containsExtendInfo(String key)
Determine if key is included.
|
static Map<String,String> |
getCurrentExtendInfo() |
static List<ModifyRequest> |
getCurrentSqlContext() |
static void |
onBatchDeleteConfigInfo(List<ConfigInfo> configInfos)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onDeleteConfigBetaInfo(String namespaceId,
String group,
String dataId,
long time)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onDeleteConfigInfo(String namespaceId,
String group,
String dataId,
String srcIp,
Timestamp time)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onDeleteConfigTagInfo(String namespaceId,
String group,
String dataId,
String tag,
String srcIp)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onModifyConfigBetaInfo(ConfigInfo configInfo,
String betaIps,
String srcIp,
Timestamp time)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onModifyConfigInfo(ConfigInfo configInfo,
String srcIp,
Timestamp time)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
onModifyConfigTagInfo(ConfigInfo configInfo,
String tag,
String srcIp,
Timestamp time)
In the case of the in-cluster storage mode, the logic of horizontal notification is implemented asynchronously
via the raft state machine, along with the information.
|
static void |
putAllExtendInfo(Map<String,String> map)
Put all extend info.
|
static void |
putExtendInfo(String key,
String value)
Put extend info.
|
public static void addSqlContext(String sql, Object... args)
sql - sqlargs - argument listpublic static void putExtendInfo(String key, String value)
key - keyvalue - valuepublic static void putAllExtendInfo(Map<String,String> map)
map - all extend infopublic static void onModifyConfigInfo(ConfigInfo configInfo, String srcIp, Timestamp time)
configInfo - ConfigInfosrcIp - The IP of the operatortime - Operating timepublic static void onModifyConfigBetaInfo(ConfigInfo configInfo, String betaIps, String srcIp, Timestamp time)
configInfo - ConfigInfobetaIps - Receive client IP for grayscale configuration publishingsrcIp - The IP of the operatortime - Operating timepublic static void onModifyConfigTagInfo(ConfigInfo configInfo, String tag, String srcIp, Timestamp time)
configInfo - ConfigInfotag - tag infosrcIp - The IP of the operatortime - Operating timepublic static void onDeleteConfigInfo(String namespaceId, String group, String dataId, String srcIp, Timestamp time)
namespaceId - namespaceIdgroup - groupNamedataId - dataIdsrcIp - The IP of the operatortime - Operating timepublic static void onBatchDeleteConfigInfo(List<ConfigInfo> configInfos)
configInfos - ConfigInfo listpublic static void onDeleteConfigBetaInfo(String namespaceId, String group, String dataId, long time)
namespaceId - namespaceIdgroup - groupdataId - dataIdtime - Operating timepublic static void onDeleteConfigTagInfo(String namespaceId, String group, String dataId, String tag, String srcIp)
namespaceId - namespaceIdgroup - groupdataId - dataIdtag - tag infosrcIp - The IP of the operatorpublic static boolean containsExtendInfo(String key)
key - keytrue if contains keypublic static List<ModifyRequest> getCurrentSqlContext()
public static void cleanAllContext()
Copyright © 2018–2022 Alibaba Group. All rights reserved.