当前位置: 首页>>代码示例>>C++>>正文


C++ SipxProcess::GetCurrentState方法代码示例

本文整理汇总了C++中SipxProcess::GetCurrentState方法的典型用法代码示例。如果您正苦于以下问题:C++ SipxProcess::GetCurrentState方法的具体用法?C++ SipxProcess::GetCurrentState怎么用?C++ SipxProcess::GetCurrentState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SipxProcess的用法示例。


在下文中一共展示了SipxProcess::GetCurrentState方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: evRestartProcess

void SipxProcessFsm::evRestartProcess( SipxProcess& impl ) const
{
   OsSysLog::add(FAC_SUPERVISOR,PRI_INFO,"'%s': Received event evRestartProcess while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );

   ChangeState( impl, impl.pConfigurationMismatch );
}
开发者ID:LordGaav,项目名称:sipxecs,代码行数:7,代码来源:SipxProcessFsm.cpp

示例2: evProcessStopped

void SipxProcessFsm::evProcessStopped( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR,PRI_WARNING,"'%s': Received unexpected event evProcessStopped while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );

   ChangeState( impl, impl.pFailed);
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:7,代码来源:SipxProcessFsm.cpp

示例3: evResyncProcess

void SipxProcessFsm::evResyncProcess( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR,PRI_INFO,"'%s': Received event evResyncProcess while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );

   ChangeState( impl, impl.pConfigurationMismatch );
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:7,代码来源:SipxProcessFsm.cpp

示例4: evStopProcess

void SipxProcessFsm::evStopProcess( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR,PRI_INFO,"'%s': Received event evStopProcess while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );

   ChangeState( impl, impl.pStopping);
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:7,代码来源:SipxProcessFsm.cpp

示例5: evShutdown

void SipxProcessFsm::evShutdown( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR,PRI_DEBUG,"'%s': Received event evShutdown while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );

   ChangeState( impl, impl.pShutDown);
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:7,代码来源:SipxProcessFsm.cpp

示例6: getProcessStateAll

// Fill in a map of process names and states (as UtlStrings)
void SipxProcessManager::getProcessStateAll(UtlHashMap& processStates //< key->name, value->state string
                         )
{
   processStates.destroyAll();
   SipxProcess* process;

   // the lock is not required with the Iterator
   UtlHashBagIterator processes(mProcesses);
   while ((process = dynamic_cast<SipxProcess*>(processes())))
   {
      if ( 0 != process->compareTo(SUPERVISOR_PROCESS_NAME) )
      {
         processStates.insertKeyAndValue(new UtlString(process->data()),
                                      new UtlString(process->GetCurrentState()->name())
                                      );
      }
   }
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:19,代码来源:SipxProcessManager.cpp

示例7: evTimeout

void SipxProcessFsm::evTimeout( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR,PRI_WARNING,"'%s': Received unexpected event evTimeout while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:5,代码来源:SipxProcessFsm.cpp

示例8: evStopCompleted

void ShutDown::evStopCompleted( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR, PRI_DEBUG,"'%s': evStopCompleted in state '%s', ignored",
                 impl.name(), impl.GetCurrentState()->name());
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:5,代码来源:SipxProcessFsm.cpp

示例9: evConfigurationChanged

void Running::evConfigurationChanged( SipxProcess& impl ) const
{
   Os::Logger::instance().log(FAC_SUPERVISOR, PRI_NOTICE,"'%s': configuration changed in state '%s', ignored",
                 impl.name(), impl.GetCurrentState()->name());
}
开发者ID:ATHLSolutions,项目名称:sipxecs,代码行数:5,代码来源:SipxProcessFsm.cpp

示例10: evConfigurationChanged

void SipxProcessFsm::evConfigurationChanged( SipxProcess& impl, const SipxResource* resource ) const
{
   OsSysLog::add(FAC_SUPERVISOR,PRI_INFO,"'%s': Received event evConfigurationChanged while in state '%s', ignored",
         impl.name(), impl.GetCurrentState()->name() );
}
开发者ID:LordGaav,项目名称:sipxecs,代码行数:5,代码来源:SipxProcessFsm.cpp

示例11: evStopCompleted

void SipxProcessFsm::evStopCompleted( SipxProcess& impl ) const
{
   OsSysLog::add(FAC_SUPERVISOR,PRI_WARNING,"'%s': Received unexpected event evStopCompleted while in state '%s'",
         impl.name(), impl.GetCurrentState()->name() );
}
开发者ID:LordGaav,项目名称:sipxecs,代码行数:5,代码来源:SipxProcessFsm.cpp


注:本文中的SipxProcess::GetCurrentState方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。