本文整理汇总了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 );
}
示例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);
}
示例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 );
}
示例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);
}
示例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);
}
示例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())
);
}
}
}
示例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() );
}
示例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());
}
示例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());
}
示例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() );
}
示例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() );
}