Example #1
0
 public function getPlaybackHost()
 {
     $playbackHostName = $this->getPlaybackHostName() . "/" . self::EDGE_SERVER_DEFAULT_LIVE_CACHE_APPLICATION_NAME . "/";
     if ($this->parent_id) {
         $parentEdge = EdgeServerPeer::retrieveByPK($this->parent_id);
         if ($parentEdge) {
             $playbackHostName = $playbackHostName . $parentEdge->getPlaybackHost();
         }
     }
     return $playbackHostName;
 }
Example #2
0
 /**
  * delete edge server by id
  *
  * @action delete
  * @param string $edgeServerId
  * @throws KalturaErrors::INVALID_OBJECT_ID
  */
 function deleteAction($edgeServerId)
 {
     $dbEdgeServer = EdgeServerPeer::retrieveByPK($edgeServerId);
     if (!$dbEdgeServer) {
         throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $edgeServerId);
     }
     $dbEdgeServer->setStatus(EdgeServerStatus::DELETED);
     $dbEdgeServer->save();
 }