[code_opt_3.3.0] change the chain log
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package com.mogo.aicloud.services.socket;
|
||||
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE_CLOUD_CONNECT_ERROR;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE_CLOUD_CONNECT_FAIL;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE_CLOUD_CONNECT_LOST;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE_CLOUD_CONNECT_SUCCESS;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_ALIAS_CODE_CLOUD_SOCKET_INIT;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_LINK_CLOUD;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_LINK_LOG_CONNECT_STATUS;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_CONNECT_ERROR;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_CONNECT_FAIL;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_CONNECT_LOST;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_CONNECT_SUCCESS;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_PASSPORT_TOKEN;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_CODE_CLOUD_SOCKET_INIT;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_SOURCE_CLOUD;
|
||||
import static com.mogo.eagle.core.data.deva.chain.ChainConstant.CHAIN_TYPE_INIT_STATUS;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
@@ -77,9 +78,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
|
||||
private final Map<Long, IMogoMsgAckListener> mAckListeners = new ConcurrentHashMap<>();
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = CHAIN_LINK_LOG_CONNECT_STATUS,
|
||||
linkCode = CHAIN_LINK_CLOUD,
|
||||
nodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_SOCKET_INIT,
|
||||
linkChainLog = CHAIN_TYPE_INIT_STATUS,
|
||||
linkCode = CHAIN_SOURCE_CLOUD,
|
||||
parentNodeAliasCode = CHAIN_CODE_CLOUD_PASSPORT_TOKEN,
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_SOCKET_INIT,
|
||||
paramIndexes = {1, 2, 3, 4},
|
||||
endPoint = false
|
||||
)
|
||||
@@ -209,11 +211,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
|
||||
};
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = CHAIN_LINK_LOG_CONNECT_STATUS,
|
||||
linkCode = CHAIN_LINK_CLOUD,
|
||||
nodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_CONNECT_SUCCESS,
|
||||
paramIndexes = {-1},
|
||||
endPoint = false
|
||||
linkChainLog = CHAIN_TYPE_INIT_STATUS,
|
||||
linkCode = CHAIN_SOURCE_CLOUD,
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_CONNECT_SUCCESS,
|
||||
paramIndexes = {-1}
|
||||
)
|
||||
@Override
|
||||
public void onConnectSuccess() {
|
||||
@@ -227,11 +228,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
|
||||
}
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = CHAIN_LINK_LOG_CONNECT_STATUS,
|
||||
linkCode = CHAIN_LINK_CLOUD,
|
||||
nodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_CONNECT_FAIL,
|
||||
paramIndexes = {-1},
|
||||
endPoint = false
|
||||
linkChainLog = CHAIN_TYPE_INIT_STATUS,
|
||||
linkCode = CHAIN_SOURCE_CLOUD,
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_CONNECT_FAIL,
|
||||
paramIndexes = {-1}
|
||||
)
|
||||
@Override
|
||||
public void onConnectFailure() {
|
||||
@@ -245,11 +245,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
|
||||
}
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = CHAIN_LINK_LOG_CONNECT_STATUS,
|
||||
linkCode = CHAIN_LINK_CLOUD,
|
||||
nodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_CONNECT_LOST,
|
||||
paramIndexes = {-1},
|
||||
endPoint = false
|
||||
linkChainLog = CHAIN_TYPE_INIT_STATUS,
|
||||
linkCode = CHAIN_SOURCE_CLOUD,
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_CONNECT_LOST,
|
||||
paramIndexes = {-1}
|
||||
)
|
||||
@Override
|
||||
public void onConnectLost(boolean reconnect) {
|
||||
@@ -263,10 +262,10 @@ public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implem
|
||||
}
|
||||
|
||||
@ChainLog(
|
||||
linkChainLog = CHAIN_LINK_LOG_CONNECT_STATUS,
|
||||
linkCode = CHAIN_LINK_CLOUD,
|
||||
parentNodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_SOCKET_INIT,
|
||||
nodeAliasCode = CHAIN_ALIAS_CODE_CLOUD_CONNECT_ERROR,
|
||||
linkChainLog = CHAIN_TYPE_INIT_STATUS,
|
||||
linkCode = CHAIN_SOURCE_CLOUD,
|
||||
parentNodeAliasCode = CHAIN_CODE_CLOUD_SOCKET_INIT,
|
||||
nodeAliasCode = CHAIN_CODE_CLOUD_CONNECT_ERROR,
|
||||
paramIndexes = {0, 1}
|
||||
)
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user