CC-2750: Ability to query health status for pypo,

liquidsoap, media monitor, and recorder

-renamed CcComponent to CcServiceRegister
This commit is contained in:
martin 2011-09-30 14:08:15 -04:00
parent a31920e982
commit 1bdcff1119
13 changed files with 236 additions and 182 deletions

View file

@ -3,10 +3,10 @@ class Application_Model_Component {
public static function Register($p_componentName, $p_ipAddress){
$component = CcComponentQuery::create()->findOneByDbName($p_componentName);
$component = CcServiceRegisterQuery::create()->findOneByDbName($p_componentName);
if ($component == NULL){
$component = new CcComponent();
$component = new CcServiceRegister();
$component->setDbName($p_componentName);
}