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 ); }
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); }
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 ); }
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); }
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); }
// 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()) ); } } }
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() ); }
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()); }
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()); }
void Disabled::evProcessStopped( SipxProcess& impl ) const { Os::Logger::instance().log(FAC_SUPERVISOR, PRI_DEBUG,"'%s': process stopped in state '%s', ignored", impl.name(), impl.GetCurrentState()->name()); }
void SipxProcessFsm::evConfigurationChanged( SipxProcess& impl ) const { Os::Logger::instance().log(FAC_SUPERVISOR,PRI_INFO,"'%s': Received event evConfigurationChanged while in state '%s', ignored", impl.name(), impl.GetCurrentState()->name() ); }
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() ); }
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() ); }
void Running::evConfigurationChanged( SipxProcess& impl, const SipxResource* resource ) const { OsSysLog::add(FAC_SUPERVISOR, PRI_INFO,"'%s': configuration changed in state '%s'", impl.name(), impl.GetCurrentState()->name()); impl.notifyConfigChanged(resource); }
void Stopping::evRestartProcess( SipxProcess& impl ) const { OsSysLog::add(FAC_SUPERVISOR,PRI_INFO,"'%s': Retrying event evRestartProcess while in state '%s'", impl.name(), impl.GetCurrentState()->name() ); ChangeState( impl, impl.pStopping ); }