CC-2750: Ability to query health status for pypo,
liquidsoap, media monitor, and recorder -renamed CcComponent to CcServiceRegister
This commit is contained in:
parent
a31920e982
commit
1bdcff1119
13 changed files with 236 additions and 182 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue