Skip to content

Commit

Permalink
Change all confreg to registry (sofastack#255)
Browse files Browse the repository at this point in the history
* fix some code typo

replace all CONFREG to REGISTRY

* formatcode
  • Loading branch information
liangyuanpeng authored and JervyShi committed Aug 12, 2018
1 parent 672adfd commit ed6d858
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public class LogCodes {
public static final String INFO_ROUTE_REGISTRY_PUB_START = "00205";
public static final String INFO_ROUTE_REGISTRY_PUB_OVER = "00206";
public static final String LOCALFILEREGISTRY_WRITE_FILEOVER = "00207";
public static final String INFO_CONFREG_IGNORE = "00208";
public static final String INFO_REGISTRY_IGNORE = "00208";
public static final String INFO_CONNECT_PUT_TO_ALIVE = "00209";
public static final String INFO_CONNECT_PUT_TO_RETRY = "00210";
public static final String INFO_CONNECT_RETRY_START = "00211";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
00205=Start publish RPC service[{0}]
00206=Stop publish RPC service[{0}]
00207=Register service address to file cost:[{0}] SEC
00208=rpc_register_confreg_ignore is true, ignore register confreg
00208=rpc_register_registry_ignore is true, ignore register registry
00209=Put url to alive list: {0} with channel {1}
00210=Put url to retry list: {0} with old channel {1}
00211=Retry connect to {0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
00205=RPC 服务[{0}]发布开始
00206=RPC 服务[{0}]发布结束
00207=本地注册完成,文件写入耗费:[{0}] SEC
00208=rpc_register_confreg_ignore等于true, 忽略注册配置中心
00208=rpc_register_Registry_ignore等于true, 忽略注册配置中心
00209=将地址放入已连列表:{0},对应长连接:{1}
00210=将地址放入重连列表:{0},对应长连接:{1}
00211=尝试重连地址:{0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void register(ProviderConfig config) {
String appName = config.getAppName();
if (!registryConfig.isRegister()) {
if (LOGGER.isInfoEnabled(appName)) {
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE));
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
}
return;
}
Expand Down Expand Up @@ -230,7 +230,7 @@ public void unRegister(ProviderConfig config) {
String appName = config.getAppName();
if (!registryConfig.isRegister()) { // 注册中心不注册
if (LOGGER.isInfoEnabled(appName)) {
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE));
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
}
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public void register(ProviderConfig config) {
String appName = config.getAppName();
if (!registryConfig.isRegister()) {
if (LOGGER.isInfoEnabled(appName)) {
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE));
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
}
return;
}
Expand Down Expand Up @@ -401,7 +401,7 @@ public void unRegister(ProviderConfig config) {
if (!registryConfig.isRegister()) {
// 注册中心不注册
if (LOGGER.isInfoEnabled(appName)) {
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE));
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
}
return;
}
Expand Down Expand Up @@ -458,7 +458,7 @@ public List<ProviderGroup> subscribe(final ConsumerConfig config) {
if (!registryConfig.isSubscribe()) {
// 注册中心不订阅
if (LOGGER.isInfoEnabled(appName)) {
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_CONFREG_IGNORE));
LOGGER.infoWithApp(appName, LogCodes.getLog(LogCodes.INFO_REGISTRY_IGNORE));
}
return null;
}
Expand Down

0 comments on commit ed6d858

Please sign in to comment.