|
@@ -64,7 +64,7 @@ namespace Task
|
|
|
return;
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("InitFSMTask")("init new upgradeTaskMgr FSM succ");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI("InitFSMTask")("init new upgradeTaskMgr FSM succ");
|
|
|
Mgr->m_initSucc = true;
|
|
|
}
|
|
|
|
|
@@ -218,7 +218,7 @@ void CUpgradeMgrEntity::OnStarted()
|
|
|
if (pFunc->GetSysVar("UIState", strValue) == Error_Succeed && strValue.Compare("M") ==0)
|
|
|
{
|
|
|
// 已经进入首页状态
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("system page isStartup 1");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("system page isStartup 1");
|
|
|
m_bStartUp =true;
|
|
|
}
|
|
|
else
|
|
@@ -230,7 +230,7 @@ void CUpgradeMgrEntity::OnStarted()
|
|
|
LogWarn(Severity_Middle, rc, ERR_WRAN_REGIST_SYS_VAR_FAIL, CSimpleStringA::Format("RegistSysVarEvent UIState is fail,%d",(int)rc).GetData());
|
|
|
m_testResult=Error_InvalidState;//自检失败
|
|
|
}else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("RegistSysVarEvent UIState succ");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("RegistSysVarEvent UIState succ");
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -267,7 +267,7 @@ void CUpgradeMgrEntity::OnSysVarEvent(const char *pszKey, const char *pszValue,c
|
|
|
if(strcmp("UIState",pszKey)==0){
|
|
|
if(!m_bStartUp){
|
|
|
if (strcmp(pszValue, "M") ==0){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("system page isStartup 2");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("system page isStartup 2");
|
|
|
m_bStartUp = true;
|
|
|
}
|
|
|
}
|
|
@@ -317,44 +317,6 @@ char CUpgradeMgrEntity::GetInstallStateVal(const InstallStateEnum enumVal)
|
|
|
return ' '; // error
|
|
|
}
|
|
|
|
|
|
-//新状态机不处理
|
|
|
-ErrorCodeEnum CUpgradeMgrEntity::RegistLocalPack(const CSimpleStringA &strPackFile)
|
|
|
-{
|
|
|
- if(m_initSucc){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("RegistLocalPack new UpgradeMgr is not deal with");
|
|
|
- return Error_NotImpl;
|
|
|
- }else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("initFSM is not end");
|
|
|
- return Error_Pending;//状态机还未启动
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-//新状态机不处理
|
|
|
-DWORD CUpgradeMgrEntity::RegistManualPack(const CSimpleStringA &strPackFile)
|
|
|
-{
|
|
|
- if(m_initSucc){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("RegistManualPack new UpgradeMgr is not deal with");
|
|
|
- return UPGRADE_MGR_NOT_IMPLEMENT;
|
|
|
- }else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("initFSM is not end");
|
|
|
- return Error_Pending;//状态机还未启动
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-//新状态机不处理
|
|
|
-ErrorCodeEnum CUpgradeMgrEntity::CancelUpdate(const CSimpleStringA &strPackFile)
|
|
|
-{
|
|
|
- if(m_initSucc){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("CancelUpdate new UpgradeMgr is not deal with");
|
|
|
- return Error_NotImpl;
|
|
|
- }else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("initFSM is not end");
|
|
|
- return Error_Pending;//状态机还未启动
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//新状态机处理
|
|
|
ErrorCodeEnum CUpgradeMgrEntity::RollbackUpdate(const CSimpleStringA &strVersion)
|
|
|
{
|
|
@@ -439,34 +401,11 @@ ErrorCodeEnum CUpgradeMgrEntity::RollbackUpdate(const CSimpleStringA &strVersion
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//新状态机不处理
|
|
|
-DWORD CUpgradeMgrEntity::GetManualPacks(CSimpleStringA &strManualPacks)
|
|
|
-{
|
|
|
- if(m_initSucc){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("GetManualPacks new UpgradeMgr is not deal with");
|
|
|
- return UPGRADE_MGR_NOT_IMPLEMENT;
|
|
|
- }else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("initFSM is not end");
|
|
|
- return Error_Pending;//状态机还未启动
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
CServerSessionBase* CUpgradeMgrEntity::OnNewSession(const char* /*pszRemoteEntityName*/, const char * /*pszParam*/)
|
|
|
{
|
|
|
return new CUpgradeMgrSession(this);
|
|
|
}
|
|
|
|
|
|
-//新状态机不处理
|
|
|
-ErrorCodeEnum CUpgradeMgrEntity::SwitchUpgrade(const CSimpleStringA &strPack)
|
|
|
-{
|
|
|
- if(m_initSucc){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("SwitchUpgrade new UpgradeMgr is not deal with");
|
|
|
- return Error_NotImpl;
|
|
|
- }else{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("initFSM is not end");
|
|
|
- return Error_Pending;//状态机还未启动
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
//新状态机处理
|
|
|
ErrorCodeEnum CUpgradeMgrEntity::GetUpgradeState(bool &bInstalling, CSimpleStringA &strPackFile, CSimpleStringA &strExecID,
|